/* Stile speciale per la label Recensioni */
.section__label.recensioni-label {
  background: var(--blue) !important;
  color: #fff !important;
}
.service-block__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
/* ============================================================
   DOPOSCUOLA SPAGNUGI – style.css
   Colori brand:
     Blu:    #0d0bf0
     Verde:  #026e20
     Chiaro: #ffbcbc
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:      #0d0bf0;
  --blue-dark: #0a09c2;
  --green:     #026e20;
  --green-dark:#025018;
  --light:     #ffbcbc;
  --light-bg:  #fff5f5;
  --white:     #ffffff;
  --text:      #1a1a2e;
  --muted:     #555566;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(13,11,240,.10);
  --font-display: Georgia, serif;
  --font-body:    'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  max-width: 100vw;
  padding-top: 82px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  letter-spacing: .03em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

.btn--hero {
  background: var(--green);
  color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  box-shadow: 0 4px 20px rgba(2,110,32,.18);
}
/* Forza colore bianco per la voce Contattaci nel menù */
.btn--nav {
  background: var(--blue);
  color: #fff !important;
  padding: .55rem 1.4rem;
}
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  padding: .9rem 2.2rem;
  box-shadow: 0 4px 16px rgba(2,110,32,.25);
}

/* ---- Section shared ---- */
.section {
  padding: 90px 0;
}

.section__label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(13,11,240,.08);
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section__label--light {
  color: var(--white);
  background: rgba(255,255,255,.2);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.8rem;
  color: var(--text);
}
.section__title--center { text-align: center; }

/* ---- Lists ---- */
.list {
  padding-left: 1.4rem;
  list-style: disc;
  margin: .8rem 0 1rem;
  color: var(--muted);
}
.list li { margin-bottom: .5rem; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--light);
  box-shadow: 0 2px 12px rgba(13,11,240,.07);
}
.navbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar__logo img {
  height: 56px;
  width: auto;
  border-radius: 8px;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.navbar__links a {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: color .2s;
}
.navbar__links a:hover { color: var(--blue); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 16/9;
}
 .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9;
}
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,11,240,.78) 0%, rgba(2,110,32,.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 2rem 2rem 8vw;
  color: var(--white);
  background: rgba(13,11,240,0.65);
  /* border-radius rimosso */
  box-shadow: 0 4px 24px rgba(13,11,240,0.10);
}
.hero__brand {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: .92;
  margin-bottom: 2rem;
}

/* ===========================
   CHI SIAMO
=========================== */
.chi-siamo { background: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.two-col__img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.two-col__text p { margin-bottom: 1rem; color: var(--muted); }

.chi-siamo__servizi {
  background: var(--light-bg);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.2rem 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.tag {
  background: rgba(13,11,240,.07);
  color: var(--blue-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 50px;
  border: 1px solid rgba(13,11,240,.15);
}

/* ===========================
   PERCHÉ SCEGLIERCI
=========================== */
.perche {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
}
.perche .section__title { color: var(--white); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.card:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px);
}
.card__icon { font-size: 1.8rem; margin-bottom: .7rem; }
.card p { font-size: .92rem; color: rgba(255,255,255,.9); line-height: 1.5; }

/* ===========================
   SERVIZI
=========================== */
.servizi { background: var(--light-bg); }

.service-block {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.service-block--reverse {
  grid-template-columns: 1fr 360px;
}
.service-block--reverse .service-block__img { order: 2; }

/* Immagine centrata e dimensione massima */
/* Immagini box servizi con stesso raggio della foto chi_siamo.jpeg */
.service-block__img img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}
}
.service-block__content {
  padding: 2rem 2rem 2rem 0;
}
.service-block--reverse .service-block__content { padding: 2rem 0 2rem 2rem; }

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue);
  margin-bottom: 1rem;
}
.service-block p { color: var(--muted); margin-bottom: .7rem; font-size: .95rem; }
.service-block__for { font-style: italic; color: var(--green); }
.service-block__mode {
  margin-top: 1rem;
  padding: .5rem 1rem;
  background: rgba(2,110,32,.08);
  border-radius: 8px;
  display: inline-block;
  color: var(--green-dark);
  font-size: .88rem;
}

.badge {
  background: var(--light);
  color: #a00;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  vertical-align: middle;
  font-family: var(--font-body);
}

/* ===========================
   COME LAVORIAMO
=========================== */
.come-lavoriamo {
  background: var(--blue);
  color: var(--white);
}
.come-lavoriamo .section__title { color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.step {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s;
}
.step:hover { background: rgba(255,255,255,.18); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--light);
  line-height: 1;
  margin-bottom: .6rem;
}
.step p { font-size: .93rem; color: rgba(255,255,255,.9); }

/* ===========================
   RECENSIONI
=========================== */
.recensioni {
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.recensioni .section__title { color: var(--white); }
.recensioni__text {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   CONTATTI
=========================== */
.contatti { background: var(--light-bg); }

.contatti__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.contatto-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s;
}
.contatto-card:hover { transform: translateY(-4px); }
.contatto-card__icon { font-size: 2.2rem; margin-bottom: .8rem; }
.contatto-card__icon .whatsapp-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.contatto-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: .5rem;
}
.contatto-card a {
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
  word-break: break-all;
  transition: color .2s;
}
.contatto-card a:hover { color: var(--green-dark); }
.contatto-card p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem 2rem;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .3rem;
  font-weight: bold;
}

.footer__site {
  margin-bottom: .8rem;
}

.footer__info, .footer__fiscale {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  font-size: .97rem;
}
.footer__info li, .footer__fiscale li {
  margin-bottom: .3rem;
  line-height: 1.4;
}
.footer__info a, .footer__fiscale a {
  color: var(--light);
  text-decoration: underline;
  word-break: break-all;
}
.footer__info a:hover, .footer__fiscale a:hover {
  color: var(--white);
}

.footer__note {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}

/* Layout a colonne per il footer */
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem 2rem;
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.2rem;
  }
}
@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
  }
}

/* Per allineare meglio le colonne e i testi */
.footer__brand, .footer__site {
  margin-bottom: .5rem;
}
.footer__legal {
  grid-column: 1/-1;
  margin-top: 1.2rem;
}
}
.footer__site { margin-bottom: .8rem; }
.footer__site a {
  color: var(--light);
  font-weight: 700;
  transition: color .2s;
}
.footer__site a:hover { color: var(--white); }

.footer__note,
.footer__legal {
  font-size: .78rem;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: .6;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col__img img { aspect-ratio: 16/9; }

  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
  }
  .service-block--reverse .service-block__img { order: 0; }
  .service-block__content,
  .service-block--reverse .service-block__content { padding: 1.5rem; }

  .hero__content {
    padding: 1.2rem 1rem;
    max-width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
  }
  .hero {
    aspect-ratio: unset;
    min-height: auto;
  }
  .hero__bg {
    aspect-ratio: unset;
  }
}

/* ===========================
   HAMBURGER BUTTON
=========================== */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem .3rem;
  z-index: 200;
}
.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.navbar__hamburger--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar__hamburger--open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 600px) {
  .navbar__hamburger { display: flex; }
  .navbar__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--light);
    box-shadow: 0 8px 24px rgba(13,11,240,.10);
    padding: .5rem 0 1rem;
    gap: 0;
    z-index: 150;
  }
  .navbar__links--open { display: flex; }
  .navbar__links a {
    padding: .85rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(13,11,240,.06);
  }
  .navbar__links a.btn--nav {
    margin: .75rem 1.5rem 0;
    text-align: center;
    border-bottom: none;
  }
  .section { padding: 60px 0; }
  .hero {
    aspect-ratio: unset;
    min-height: auto;
  }
  .hero__bg {
    aspect-ratio: unset;
  }
  .hero__content {
    max-width: 100%;
    width: 100%;
    padding: 1rem .75rem;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .contatti__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
