:root {
  --bg: #F6EFE6;
  /* cream */
  --accent: #7AA27A;
  /* sage green */
  --accent-dark: #5F8C66;
  --muted: #6B6B6B;
  --card: #FFFFFF;
  --max-width: 1100px;
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 18px;
  line-height: 1.75;
  color: #222;
  background-image: url('assets/background.png');
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem
}

.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem
}

.home-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: white;
  /*linear-gradient(135deg, var(--accent), var(--accent-dark)); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.brand-text h1 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 1.35rem
}

.tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted)
}

.main-nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none
}

.main-nav a:hover {
  color: var(--accent-dark)
}

/* Active nav item (scrollspy) */
.main-nav a.active {
  color: var(--accent-dark);
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  bottom: -4px;
  /* closer to the link so it isn't hidden by small nav height */
  background: var(--accent);
  border-radius: 3px;
  z-index: 60;
}

.hero {
  padding: 3rem 0;
  background: linear-gradient(120deg, rgba(122, 162, 122, 0.06), rgba(96, 84, 160, 0.02));
  border-bottom: 1px solid rgba(0, 0, 0, 0.03)
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: center
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin: 0 0 .6rem
}

.hero-content p {
  color: var(--muted);
  margin: 0 0 1rem
}

.section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 .6rem;
  color: #2b2b2b
}

/* Center the small lead tagline between sections */
#lead-tagline {
  text-align: center;
  margin-top: 0.6rem;
} 

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none
}

.cta.small {
  padding: .45rem .7rem;
  font-size: .95rem
}

.hero-media .photo-placeholder {
  height: 220px;
  border-radius: 12px;
  /*background: linear-gradient(135deg, #EAF3EA, #F6EFE6);*/
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted)
}

/* Section spacing and anchor offset */
.section {
  padding: 2rem 0;
  /* Ensure anchored sections start below the sticky header */
  scroll-margin-top: calc(var(--header-height) + 8px);
}

:root {
  --header-height: 88px;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .9, .3, 1)
}

/* Client-side deterrent: disable text selection on main content areas (preserve form inputs) */
main,
.section,
.services-grid,
.runaura,
.event-info,
.about,
.testimonials,
.hero,
.brand-text {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Ensure interactive controls remain usable */
input,
textarea,
button,
a,
select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: none
}

/* Stagger service cards when parent becomes visible */
.services-grid .service-card {
  transform: translateY(6px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease
}

.animate-on-scroll.in-view .services-grid .service-card {
  transform: none;
  opacity: 1
}

.services-grid .service-card:nth-child(1) {
  transition-delay: .05s
}

.services-grid .service-card:nth-child(2) {
  transition-delay: .12s
}

.services-grid .service-card:nth-child(3) {
  transition-delay: .18s
}

.services-grid .service-card:nth-child(4) {
  transition-delay: .24s
}

.services-grid .service-card:nth-child(5) {
  transition-delay: .30s
}

.about p {
  color: var(--muted)
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem
}

.service-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04)
}

.service-ico {
  font-size: 1.6rem;
  margin-bottom: .4rem
}

.service-card h4 {
  margin: 0 0 .4rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem
}

.events-list {
  margin-top: 1rem
}

.event-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.event-photo {
  width: 220px;
  /* increased placeholder width */
  /* Keep a stable aspect ratio for the placeholder */
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: none;
  /* remove white background so cover fills visually */
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  position: relative;
  padding: 0;
}

.event-photo img {
  display: block;
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
  /* fill and crop */
  object-position: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* If you want the image to stretch (no crop), add .stretch to the .event-photo element */
.event-photo.stretch img {
  object-fit: fill;
  /* stretches image to fill placeholder (may distort) */
}

.event-info {
  flex: 1;
  margin-right: 1rem
}

.event-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-cta.hidden {
  display: none !important
}

.testimonials blockquote {
  background: var(--card);
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--muted)
}

/* Interviste section: video left, content right */
.interviews {
  background:  linear-gradient(180deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.95)); 
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.interview-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.interview-video {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.interview-video video {
  width: 100%;
  height: auto;
  display: block;
}

.interview-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
  color: #2b2b2b;
}

.interview-content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}

/* Tablet: stack vertically */
@media (max-width:900px) {
  .interview-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .interviews {
    padding: 1rem;
  }
}

/* Mobile: reduce padding */
@media (max-width:600px) {
  .interview-content h4 {
    font-size: 1.15rem;
  }
  
  .interview-item {
    gap: 1rem;
  }
}


.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  color: var(--muted)
}

.contact-form label.full {
  grid-column: 1 / -1
}

.contact-form input,
.contact-form textarea {
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 160px;
  resize: vertical
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start
}

.form-actions .cta.small {
  padding: .5rem .9rem;
  font-size: 0.95rem
}

.social-placeholder {
  margin-top: 1rem;
  color: var(--muted)
}

/* Declaration (DICHIARAZIONE ETICA) visual style: subtle boxed notice */
.declaration {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.95));
  border-left: 4px solid var(--accent);
  padding: 1rem 1.15rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 1rem;
}

.declaration h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent-dark)
}

.site-footer {
  padding: 1rem 0;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.04)
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem
}

/* Centered footer variant used on main page: social icons centered with copy below */
.footer-inner.footer-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: 0.6rem;
}

.site-footer .social-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.social-icons {
  gap: 1rem
}

.social-link.social-lg {
  width: 48px;
  height: 48px
}

.social-link.social-lg img {
  width: 48px;
  height: 48px
}

.footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem
}


.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem
}

.social-icons {
  display: flex;
  gap: 0.6rem
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  color: var(--muted);
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
}

.social-link img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.social-link:hover {
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.foot-refs {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted)
}

.foot-refs a {
  color: var(--muted);
  text-decoration: none
}

.refs-list {
  padding: 1rem 0 4rem
}

.refs-list ol {
  color: var(--muted)
}


.runaura .container {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  max-width: var(--max-width);
  box-sizing: border-box;
}

.runaura-inner {
  display: grid;
  grid-template-columns: 1fr 220px 360px;
  gap: 1rem;
  align-items: start;
}

.runaura-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 6px;
  display: block;
}

/* Tablet-specific: scale down RunAura image so it doesn't dominate the layout */
@media (min-width:601px) and (max-width:900px) {
  .runaura-media img {
    max-width: 320px;
    width: auto;
    margin: 0.6rem auto;
    display: block;
  }
}

@media (max-width:900px) {
  .runaura-inner {
    grid-template-columns: 1fr
  }

  .runaura-media {
    order: 2
  }

  .runaura-benefits {
    order: 3
  }
}

.runaura-desc p {
  margin: 0;
  color: var(--muted)
}

.runaura-benefits h4 {
  margin: 0 0 .5rem;
  font-size: 1.05rem
}

.runaura-benefits ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.5
}

.runaura-benefits li {
  margin-bottom: .45rem
}

.runaura-sign {
  margin-top: .8rem;
  font-weight: 600;
  color: var(--accent-dark)
}

@media (max-width:900px) {
  .runaura-inner {
    grid-template-columns: 1fr
  }
}

/* Responsive */
@media (max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .contact-form {
    grid-template-columns: 1fr
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start
  }

  /* Make nav compact and prevent wrapping: allow horizontal scroll on small screens */
  .main-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.9rem;
    /* leave room for active underline and avoid clipping */
    margin-top: 0.5rem;
    width: 100%;
  }

  .main-nav a {
    white-space: nowrap;
    display: inline-block;
    padding: 0.35rem 0.5rem;
  }

  /* Events: stack items vertically on small screens */
  .event-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .event-photo {
    width: 100%;
    flex: 0 0 auto;
  }

  .event-photo img {
    height: auto;
    object-fit: cover
  }

  .event-info {
    margin-right: 0
  }

  .event-cta {
    align-self: flex-start
  }
}

/* Tighter mobile rules */
@media (max-width:600px) {
  .main-nav {
    gap: 0.4rem
  }

  .main-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem
  }

  .event-photo {
    aspect-ratio: 16/9
  }

  .event-cta {
    width: auto
  }
}

.main-nav {
  display: flex;
  gap: .5rem;
  margin-top: .5rem
}

/* increase side padding on mobile so content isn't flush to edges */
.container {
  padding: 1.25rem;
}


/* make submit button larger and consistent with event CTA */
.form-actions .cta.small {
  padding: .6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


@media (max-width:420px) {
  body {
    font-size: 16px
  }

  .logo-placeholder {
    width: 52px;
    height: 52px
  }

  .hero-content h2 {
    font-size: 1.9rem
  }
}

@media (min-width:601px) and (max-width:900px) {
  /* Tablet-specific: reduce event image size to avoid large visuals while keeping layout side-by-side */
  .event-photo {
    width: 180px;
    aspect-ratio: 16/9;
  }
  .event-photo img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
}

/* Image anti-download overlay used for deterrence */
.img-block-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: transparent
}

.img-no-download-parent {
  position: relative
}