/* =============================================
   Scuola dell'Infanzia Sant'Andrea
   Stile ispirato a Asilo Nido Incanto
   — Bianco · Verde salvia · Salmone · Sabbia
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Nunito:wght@400;500;600;700&display=swap');

/* ─── Variables ─── */
:root {
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --green:       #6E9E64;
  --green-dark:  #4D7544;
  --green-pale:  rgba(110, 158, 100, 0.16);
  --green-mid:   #A8C4A2;
  --salmon:      #C8806A;
  --salmon-dark: #A8624E;
  --sand:        #D4C4A4;
  --sand-light:  #EDE4CE;
  --sand-dark:   #B8A882;
  --pebble:      #C4B494;
  --dark:        #2A2A2A;
  --gray:        #666666;
  --light-gray:  #F0EDE8;

  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Nunito', sans-serif;

  --blob1: 67% 33% 44% 56% / 56% 44% 56% 44%;
  --blob2: 44% 56% 67% 33% / 44% 56% 44% 56%;
  --blob3: 56% 44% 30% 70% / 60% 40% 60% 40%;
  --blob4: 40% 60% 70% 30% / 50% 60% 40% 50%;
  --blob5: 60% 40% 40% 60% / 40% 60% 60% 40%;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-b); background: var(--white); color: var(--dark); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 900; text-transform: uppercase; color: var(--green); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 900; text-transform: uppercase; color: var(--green); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; text-transform: uppercase; color: var(--green); }
h4 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: var(--green); }
p  { font-size: 1rem; color: var(--dark); line-height: 1.8; }

.label {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--salmon);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Layout ─── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.container--narrow{ max-width: 780px;  margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section          { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero + .section,
.page-hero + .section--alt { padding-top: 0; }
.section--alt     { background: var(--off-white); }
.text-center      { text-align: center; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 130px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo img {
  height: 121px;
  width: auto;
  display: block;
  transition: opacity 0.25s;
}

.nav__logo img:hover { opacity: 0.82; }

.nav__logo-circle {
  width: 54px; height: 54px;
  border: 2px solid var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--white);
  transition: border-color 0.3s;
}

.nav__logo-circle::before {
  content: '🌿';
  font-size: 1.1rem;
  position: absolute;
  top: -10px; right: -8px;
}

.nav__logo-circle::after {
  content: '🌸';
  font-size: 0.85rem;
  position: absolute;
  bottom: -8px; left: -8px;
}

.nav__logo:hover .nav__logo-circle { border-color: var(--green); }

.nav__logo-inner {
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  line-height: 1.2;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav__logo-main {
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.06em;
}

.nav__logo-sub {
  font-family: var(--font-b);
  font-size: 0.7rem;
  color: var(--salmon);
  letter-spacing: 0.1em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--green); }

.nav__cta {
  background: var(--salmon) !important;
  color: white !important;
  border-radius: 99px !important;
}

.nav__cta:hover { background: var(--salmon-dark) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  align-items: center;
}
.nav__hamburger span {
  background: var(--green);
  display: block;
  width: 24px; height: 2.5px;
  border-radius: 99px;
  transition: transform 0.3s;
}
/* Il testo "Menu" dentro il button non deve prendere gli stili degli span-linea */
.nav__hamburger .nav__menu-label {
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  transition: none !important;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2vh, 1rem);
  padding-top: 100px;
  overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 5vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--salmon); }
.nav__mobile a.active { color: var(--green-dark); }
.nav__mobile-close {
  position: absolute;
  top: 24px; right: clamp(1.25rem, 5vw, 3rem);
  background: none; border: none;
  font-size: 1.8rem; cursor: pointer;
  color: var(--dark);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn--dashed {
  background: transparent;
  color: var(--sand-dark);
  border: 2.5px dashed var(--sand);
}
.btn--dashed:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--green);
  color: white;
}
.btn--solid:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110,158,100,0.3);
}

.btn--salmon {
  background: var(--salmon);
  color: white;
}
.btn--salmon:hover {
  background: var(--salmon-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,128,106,0.3);
}

.btn--outline-green {
  background: transparent;
  color: var(--green);
  border: 2.5px solid var(--green);
}
.btn--outline-green:hover {
  background: var(--green);
  color: white;
  transform: translateY(-2px);
}

/* ─── BLOB IMAGE FRAMES ─── */
.blob-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 480px;
}

.blob-deco-bg {
  position: absolute;
  background: var(--green-pale);
  border-radius: var(--blob2);
  z-index: 0;
}

.blob-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--blob1);
  background: var(--sand);
  padding: 14px;
  overflow: hidden;
}

.blob-frame--2 { border-radius: var(--blob2); }
.blob-frame--3 { border-radius: var(--blob3); }

.blob-frame__inner {
  border-radius: inherit;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-light);
  font-size: 8rem;
}

.blob-frame__inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Decorative pebble dots */
.pebble {
  position: absolute;
  background: var(--pebble);
  border-radius: 50%;
  z-index: 2;
  opacity: 0.7;
}
.pebble--sm  { width: 14px; height: 14px; }
.pebble--md  { width: 22px; height: 22px; }
.pebble--lg  { width: 32px; height: 24px; border-radius: 40% 60% 60% 40%; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero__content { z-index: 1; }

.hero__content h1 {
  margin-bottom: 0.4rem;
  line-height: 1.05;
}

.hero__subtitle {
  font-family: var(--font-h);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  font-style: italic;
  text-transform: none;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero blob background large */
.hero__bg-blob {
  position: absolute;
  width: 420px; height: 420px;
  background: var(--green-pale);
  border-radius: var(--blob4);
  right: -60px; top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* ─── SECTION SPLITS (text + image) ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__content p { color: var(--gray); margin: 1rem 0 2rem; }

/* ─── FEATURES ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--dark);
  color: white;
}

.feature:nth-child(1) { background: var(--green); }
.feature:nth-child(2) { background: var(--salmon); }
.feature:nth-child(3) { background: var(--sand-light); }
.feature:nth-child(4) { background: var(--sand); }
/* Testo scuro su tutti e 4 i box */
.feature h4 { color: var(--dark) !important; }
.feature p  { color: var(--dark) !important; opacity: 0.75; }
.feature:nth-child(3) .feature__icon,
.feature:nth-child(4) .feature__icon { background: rgba(110,158,100,0.12); }

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.feature__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature__icon img {
  filter: brightness(0) invert(1);
}

.feature h4 {
  color: white;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}

.feature p {
  font-size: 0.92rem;
  color: var(--gray);
}

/* ─── SERVICES ─── */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-item {
  text-align: center;
}

.service-item .blob-frame__inner {
  font-size: 7rem;
  aspect-ratio: 4/3;
  margin-bottom: 0;
}

.service-item__label {
  display: inline-block;
  background: var(--sand-light);
  color: var(--sand-dark);
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin: 1.5rem 0 0.6rem;
}

.service-item h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.service-item p { font-size: 0.95rem; color: var(--gray); max-width: 320px; margin: 0 auto 1.5rem; }

/* ─── TIMELINE ─── */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; }

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.timeline-item__dot {
  width: 10px; height: 10px;
  background: var(--salmon);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.timeline-item__year {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--salmon);
  min-width: 40px;
}

.timeline-item__text {
  font-size: 0.92rem;
  color: var(--gray);
}

/* ─── VALUES GRID ─── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 2px solid var(--sand-light);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  background: var(--white);
}

.value-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-4px);
}

.value-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.88rem; color: var(--gray); }

.value-card--photo {
  background-size: cover;
  background-position: center;
  border: none;
  position: relative;
  overflow: hidden;
  color: white;
}
.value-card--photo:hover { border-color: transparent; }
.value-card--photo::before { display: none; }
.value-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  z-index: 1;
}
.value-card--photo .value-card__icon,
.value-card--photo h4,
.value-card--photo p { position: relative; z-index: 2; }
.value-card--photo h4 { color: white; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.value-card--photo p  { color: rgba(255,255,255,0.92); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

@media(max-width:600px){
  .photo-strip { grid-template-columns: repeat(2,1fr) !important; }
  .photo-strip > div:last-child { display: none; }
  .photo-strip > div { margin-top: 0 !important; }
}

/* ─── NEWS CARDS ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--sand-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

.news-card__thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.news-card__thumb--green { background: rgba(110,158,100,0.12); }
.news-card__thumb--sand  { background: var(--sand-light); }
.news-card__thumb--salmon{ background: rgba(200,128,106,0.12); }

.news-card__body { padding: 1.5rem; }

.news-card__date {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 0.5rem;
}

.news-card h4 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.news-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }

.news-card__link {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.news-card__link:hover { gap: 10px; }

/* ─── CTA SECTION ─── */
.cta-section {
  overflow: hidden;
  background: var(--green);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.cta-section::before { width: 400px; height: 400px; top: -150px; left: -100px; }
.cta-section::after  { width: 300px; height: 300px; bottom: -120px; right: -20px; }

.cta-section .label { color: rgba(255,255,255,0.75); }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.82); max-width: 500px; margin: 0 auto 2.5rem; }

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--white {
  background: white;
  color: var(--green);
}
.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

.btn--white-dashed {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2.5px dashed rgba(255,255,255,0.5);
}
.btn--white-dashed:hover {
  border-color: white;
  color: white;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 42px; height: 42px;
  background: var(--sand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item__label {
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 2px;
}

.contact-item__value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
}
.contact-item__value a:hover { color: var(--green); }

/* Form */
.contact-form {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 28px;
  border: 2px solid var(--sand-light);
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-group label {
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-b);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid var(--sand-light);
  border-radius: 12px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(110,158,100,0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

/* ─── PAGE HERO ─── */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 0;
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 300px;
  background: var(--green-pale);
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  top: -80px; left: -120px;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(212,196,164,0.2);
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  bottom: -60px; right: -20px;
  z-index: 0;
}

.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { max-width: 580px; margin: 0 auto; color: var(--gray); font-size: 1.1rem; }

/* Sub-nav */
.sub-nav {
  background: var(--white);
  border-bottom: 2px solid var(--sand-light);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.sub-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.sub-nav__inner::-webkit-scrollbar { display: none; }

.sub-nav a {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.25rem;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ─── ENROLL STEPS ─── */
.enroll-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}

.enroll-step {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: var(--white);
  border-radius: 24px;
  border: 2px solid var(--sand-light);
  position: relative;
  counter-increment: steps;
}

.enroll-step::before {
  content: counter(steps);
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  background: var(--salmon);
  color: white;
  border-radius: 50%;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enroll-step__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.enroll-step h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
.enroll-step p  { font-size: 0.88rem; color: var(--gray); }

/* ─── ALERT / INFO BOXES ─── */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.info-box--green {
  background: rgba(110,158,100,0.1);
  border-left: 4px solid var(--green);
}

.info-box--salmon {
  background: rgba(200,128,106,0.1);
  border-left: 4px solid var(--salmon);
}

.info-box__icon { font-size: 1.3rem; flex-shrink: 0; }
.info-box__text p { font-size: 0.92rem; color: var(--dark); }
.info-box__text strong { color: var(--dark); }

/* ─── FAQ ─── */
details {
  background: var(--white);
  border: 2px solid var(--sand-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

details[open] { border-color: var(--green-mid); }

summary {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--salmon);
  flex-shrink: 0;
  transition: transform 0.3s;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  padding: 7px 14px;
  border-radius: 99px;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

.footer__col h4 {
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--green-mid); }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}
.footer__social a:hover {
  background: var(--green);
  color: white;
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero__inner     { grid-template-columns: 1fr; text-align: center; }
  .hero__visual {
    display: flex !important;
    justify-content: center;
    max-height: 240px;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 1.5rem;
  }
  .hero__visual .blob-wrap { max-width: 100% !important; }
  .hero__visual img { max-height: 240px; width: 100%; object-fit: cover; border-radius: 20px; }
  .hero__desc      { margin: 0 auto 2.5rem; }
  .hero__actions   { justify-content: center; }
  .split           { grid-template-columns: 1fr; }
  .split--reverse  { direction: ltr; }
  .services        { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer__grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links      { display: none; }
  .nav__hamburger  { display: flex; }
  .form-row        { grid-template-columns: 1fr; }
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer__grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .values-grid     { grid-template-columns: 1fr; }
  .footer__grid    { grid-template-columns: 1fr; }
  .hero__actions   { flex-direction: column; align-items: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
}






/* ═══════════════════════════════════════════════════════
   FIX DEFINITIVO — scroll laterale e responsive mobile
   ═══════════════════════════════════════════════════════ */

/* 1. Contieni tutti gli elementi decorativi nelle sezioni */
.hero, .section, .section--alt, .page-hero,
.cta-section, .footer, main {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2. Griglia info-cards contatti → 2 col su tablet, 1 su mobile */
.info-cards {
  grid-template-columns: repeat(4,1fr);
}
@media (max-width: 900px) {
  .info-cards { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 500px) {
  .info-cards { grid-template-columns: 1fr !important; }
}

/* 3. Griglia contact-grid (mappa + form) → 1 col su mobile */
.contact-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}


/* Griglia due colonne generica — collassa su mobile */
.two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* 4. Tutte le griglie a 3-5 colonne → auto su mobile */
@media (max-width: 768px) {
  /* Griglia features */
  .features { grid-template-columns: 1fr 1fr !important; gap: 1rem; }

  /* Griglia valori */
  .values-grid { grid-template-columns: 1fr 1fr !important; }

  /* Griglia footer */
  .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem; }

  /* Griglia news */
  .news-grid { grid-template-columns: 1fr !important; }

  /* Form row → 1 colonna */
  .form-row { grid-template-columns: 1fr !important; }

  /* Photo strip — flex wrap su mobile */
  .photo-strip-wrap { flex-wrap: wrap !important; justify-content: center !important; }
  .photo-strip-wrap > div { flex: 0 0 calc(50% - .4rem) !important; width: calc(50% - .4rem) !important; height: 140px !important; margin-top: 0 !important; }
  .photo-strip-wrap > div:last-child { display: none; }

  /* Gallerie */
  .gallery-grid, .gallery-grid-2 { grid-template-columns: 1fr !important; }
  .gallery-grid > div:nth-child(n+2),
  .gallery-grid-2 > div:nth-child(n+2) { display: none; }

  /* Split layout */
  .split { grid-template-columns: 1fr !important; }
  .split__visual {
    display: flex !important;
    justify-content: center;
    max-height: 260px;
    overflow: hidden;
    border-radius: 20px;
  }
  .split__visual .blob-wrap { max-width: 100% !important; max-height: 260px; }
  .split__visual .blob-frame { max-height: 260px; }
  .split__visual img { max-height: 260px; width: 100%; object-fit: cover; }

  /* Servizi */
  .services { grid-template-columns: 1fr !important; }

  /* Bottoni */
  .cta-section__actions { flex-direction: column !important; align-items: stretch !important; }
  .cta-section__actions .btn { text-align: center; justify-content: center; width: 100% !important; }
  .hero__actions { flex-direction: column !important; align-items: stretch !important; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  /* Testi hero */
  .hero__content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  /* hero__visual visibile su mobile */
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .footer__grid { grid-template-columns: 1fr !important; }
  .pebble, .hero__bg-blob, .blob-deco-bg { display: none !important; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
  h2 { font-size: clamp(1.2rem, 5.5vw, 1.7rem) !important; }
  .container, .container--narrow { padding: 0 1rem !important; }
}

/* Footer social buttons */
.footer__social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  padding: 4px 10px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background .18s;
}
.footer__social-btn:hover { background: rgba(255,255,255,0.2); }

/* Footer mobile — una colonna */
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  /* Le due colonne link affiancate su mobile */
  .footer__cols-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .footer { padding: 2rem 0 1rem !important; }
  .footer__brand h3 { font-size: 1rem !important; }
}
