/*
Theme Name: Gianmaria Theme Dynamic
Theme URI: https://gianmarialunetta.it
Author: Gianmaria Lunetta
Description: Tema WordPress ricreato 1:1 dal sito HTML originale
Version: 1.41
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&family=Montserrat:wght@300;400&family=Libre+Baskerville&family=Alegreya+Sans:wght@700&display=swap');


/* RESET BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* UTILITY */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display:none !important; }

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  position: relative;
  z-index: 1000;
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo | Menu | Pulsante */
  align-items: center;
}

/* Logo */
.header__logo { justify-self: start; margin-left: -25px; }
.header__logo img { height: 50px; width: auto; display: block; }

/* Menu desktop */
.header__nav { justify-self: end; margin-right: 20px; }
.header__nav .menu {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__nav .menu li a {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 1.6;
  color: #949494;
  text-decoration: none;
  transition: color 0.3s ease;
}
.header__nav .menu li a:hover { color: #3c73ad; }

/* CTA */
.header__cta { justify-self: end; margin-left: 40px; margin-right: -46px; }
.header__cta .btn {
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  background-color: #425cbb; border: 1px solid #425cbb; color: #fff;
  padding: 15px 20px; border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header__cta .btn:hover { background-color: #b5b9bb; border-color: #b5b9bb; color: #fff; }

/* HERO */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 617px; /* come da tua regolazione */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 60px;
  color: #fff;
}

/* Contenuto */
.hero__content {
  max-width: 900px;
  text-align: left;
}

/* Riga sopra */
.hero__subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 24px;     /* 150% ≈ 24px */
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}

/* Titolo */
.hero__title {
  font-family: 'Libre Baskerville', serif;
  font-size: 52px;     /* 400% ≈ 52px */
  font-weight: 400;    /* non bold */
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}

/* Riga sotto */
.hero__tagline {
  font-family: 'Lato', sans-serif;
  font-size: 24px;     /* 150% ≈ 24px */
  font-weight: 300;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
  color: #fff;
}


/* SEZIONI */
section { padding: 60px 0; }
.section__title { font-size: 2rem; margin-bottom: 20px; text-align: center; }

/* === SERVIZI === */
section#servizi.services {
  --svx: #d8d2c8; /* laterali */
  --svc: #b4a99a; /* centrale */
  position: relative;
  padding: 15px 0;
  background: none;
}
section#servizi.services::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background-color: var(--svx);
  background-image: linear-gradient(
    to right,
    var(--svx) 0 300px,
    var(--svc) 300px 800px,
    var(--svx) 800px 1100px
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1100px 100%;
  pointer-events: none;
  z-index: 0;
}
section#servizi.services > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
section#servizi.services > .container > .services__group {
  background: transparent;
  border: 0;
  padding: 25px 20px 30px; /* meno spazio sopra, leggero margine sotto */
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* forza allineamento alto */
}

section#servizi.services .services__group h2 {
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  margin: 0 0 32px;
  letter-spacing: normal;
  text-align: center;
  position: relative;
}
section#servizi.services > .container > .services__group ul {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: inline-block;
  text-align: center;
  max-width: 320px;
}
section#servizi.services > .container > .services__group li {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: normal;
  margin: 16px 0;
  line-height: 37px;
}
/* Spostamenti ottici */
section#servizi.services > .container > .services__group:first-child h2,
section#servizi.services > .container > .services__group:first-child ul {
  transform: translateX(-120px);
}
section#servizi.services > .container > .services__group:last-child h2,
section#servizi.services > .container > .services__group:last-child ul {
  transform: translateX(120px);
}
/* === CHI SONO === */
section#chi-sono {
  background: #f7f9fc; /* come nell'HTML originale */
  padding: 60px 0;
}

/* Layout due colonne */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* immagine + testo */
  align-items: center;
  gap: 40px;
}

.about__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Titolo */
section#chi-sono h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;          /* come HTML originale */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #425cbb;
  margin-bottom: 20px;
  text-align: left;
}
section#chi-sono h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #425cbb;
  margin-top: 8px;
}
/* Responsive: su mobile centrato */
@media (max-width: 768px) {
  section#chi-sono h2::after {
    margin: 8px auto 0; /* top | left-right | bottom */
  }
}

/* Sottotitolo */
section#chi-sono p:first-of-type {
  font-family: 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #425cbb;
  margin-bottom: 16px;
}

/* Paragrafi */
section#chi-sono p {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Citazione */
section#chi-sono blockquote {
  border-left: 4px solid #425cbb;
  padding-left: 16px;
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-style: italic;
  color: #333;
  margin: 20px 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr; /* una colonna */
    text-align: center;
  }
  .about__image {
    margin-bottom: 20px;
  }
  section#chi-sono h2 {
    text-align: center;
  }
}

/* GRID */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* CARDS */
.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card__media { text-align: center; padding: 10px; }
.card__body { padding: 16px; flex: 1; }
.card__title { font-size: 1.2rem; margin-bottom: 10px; }

/* TRATTAMENTI */
#trattamenti h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: lowercase; /* tutto minuscolo */
  letter-spacing: 0;
  color: #425cbb;
  margin-bottom: 20px;
  text-align: left;
}
#trattamenti h2::first-letter {
  text-transform: uppercase; /* solo la prima lettera maiuscola */
}
#trattamenti h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #425cbb;
  margin-top: 8px;
}
@media (max-width: 768px) {
  #trattamenti h2 { text-align: center; }
  #trattamenti h2::after { margin: 8px auto 0; }
}

/* Griglia generale Trattamenti */
#trattamenti .cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px; /* spazio tra le colonne e righe */
}

/* Card interna (desktop: immagine a sinistra, testo a destra) */
#trattamenti .card {
  display: flex;
  flex-direction: row !important; /* forza layout orizzontale su desktop */
  align-items: flex-start;
  gap: 15px;
  border: none;
  box-shadow: none;
}

/* Media (icona) */
#trattamenti .card__media {
  flex: 0 0 70px;
  text-align: center;
}
#trattamenti .card__media img {
  max-width: 70px;
  height: auto;
}

/* Corpo (titolo + sottotitolo + testo) */
#trattamenti .card__body {
  flex: 1;
  text-align: left;
}
#trattamenti .card__title {
  font-family: 'Lato', sans-serif;
  font-size: 20px;        /* come nell’HTML originale */
  font-weight: 700;       /* Bold */
  color: rgb(30, 36, 40); /* quasi nero */
  margin-bottom: 6px;
}
#trattamenti .card__subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;       /* Light */
  color: #616161;         /* grigio scuro */
  margin-bottom: 6px;
}
#trattamenti .card__body p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;       /* Light */
  color: #616161;         /* grigio scuro */
  line-height: 1.6;
  margin: 0;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  #trattamenti .cards__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  #trattamenti .card {
    flex-direction: column !important; /* verticale su mobile */
    align-items: center;
    text-align: center;
  }
  #trattamenti .card__media {
    margin-bottom: 10px;
  }
  #trattamenti .card__body {
    text-align: center;
  }
}
/* CONTATTI */
#contatti {
  min-height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

#contatti::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* overlay scuro */
  z-index: 0;
}

#contatti .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Icona Psi */
#contatti .contact-icon {
  margin-bottom: 20px;
}
#contatti .contact-icon img {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Titolo principale */
#contatti h2 {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
  color: #fff !important;        /* forza bianco */
  text-align: center !important; /* centra testo */
  line-height: 1.6;
  width: 100% !important;        /* prende tutta la riga */
  max-width: 100% !important;    /* elimina restrizioni */
  display: block;
}
#contatti h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #fff !important;   /* forza bianco */
  margin: 8px auto 0 !important; /* centra trattino */
}

/* Sottotitolo */
#contatti h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
}

/* Numero di telefono */
#contatti .phone {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

/* Pulsante */
#contatti .btn {
  display: inline-block;
  margin: 20px auto 0;
  padding: 12px 30px;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
  text-align: center;
}
#contatti .btn:hover {
  background: #ddd;
}

/* APPROFONDIMENTI */
#approfondimenti {
  padding: 60px 0;
}

/* Container più ampio per immagini più grandi */
#approfondimenti .container {
  max-width: 1200px;   /* più largo rispetto al default */
  padding: 0 10px;     /* meno margine laterale */
}

/* Titolo sezione */
#approfondimenti h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: lowercase; /* tutto minuscolo */
  color: #425cbb;
  margin-bottom: 20px;
  text-align: center;
}
#approfondimenti h2::first-letter {
  text-transform: uppercase; /* solo la prima lettera maiuscola */
}
#approfondimenti h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #425cbb;
  margin: 8px auto 0;
}

/* Griglia: 3 colonne desktop, 1 mobile */
#approfondimenti .cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* card più larghe */
  gap: 30px 25px;
}
@media (max-width: 768px) {
  #approfondimenti .cards__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Card pulite */
#approfondimenti .card {
  border: none;
  box-shadow: none;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Immagine card */
#approfondimenti .card__media img {
  width: 100%;
  aspect-ratio: 4 / 3; /* proporzione fedele all’HTML originale */
  object-fit: cover;
}

/* Corpo card: meno spazio sopra il titolo */
#approfondimenti .card__body {
  padding: 8px 16px 16px;
  width: 100%;
}

/* Titolo card */
#approfondimenti .card__body h3 {
  font-family: 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 700;   /* Bold */
  color: #425cbb;
  margin-bottom: 8px;
  text-align: left;
}

/* Bottone card */
#approfondimenti .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #3fb5e8;      /* azzurro chiaro */
  color: #425cbb;           /* testo blu */
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
#approfondimenti .btn:hover {
  background: #2fa0cc; /* azzurro più scuro */
}

/* === CONTACT FORM === */
#contatti-form {
  background: #42a5d5; /* sfondo azzurro */
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

#contatti-form h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

#contatti-form .divider {
  width: 40px;
  height: 2px;
  background: #fff;
  margin: 0 auto 30px;
}

/* === CONTACT FORM DIMENSIONI UNIFORMI === */
#contatti-form .wpcf7-form {
  max-width: 1100px;   /* come la sezione approfondimenti */
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;     /* stessi margini laterali di .container */
}

#contatti-form .wpcf7-form input,
#contatti-form .wpcf7-form select,
#contatti-form .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;  /* distanza uniforme tra tutti i box */
  border: none;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-sizing: border-box;
  resize: none;
}
#contatti-form .wpcf7-form textarea {
  height: 80px;   /* dimezzata rispetto a prima */
}
/* Stile specifico per il box SELECT */
#contatti-form .wpcf7-form select {
  background: #2f81a6;  /* azzurro più scuro rispetto alla sezione */
  color: #fff;
}

#contatti-form .wpcf7-form select option {
  background: #2f81a6;
  color: #fff;
}

/* Placeholder coerenti con HTML originale */
#contatti-form .wpcf7-form input::placeholder,
#contatti-form .wpcf7-form textarea::placeholder,
#contatti-form .wpcf7-form select {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #f0f0f0;
}

/* Pulsante invia */
#contatti-form .wpcf7-form input[type="submit"] {
  width: auto;          /* non largo come i box */
  display: inline-block;
  background: #fff;
  color: #42a5d5;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;   /* più alto, proporzionato ai box */
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;      /* meno spazio sopra */
}

#contatti-form .wpcf7-form input[type="submit"]:hover {
  background: #e0e0e0;
}

/* Messaggio di conferma Contact Form 7 */
.wpcf7 form.sent .wpcf7-response-output {
  color: #1e7e34;        /* verde leggibile */
  font-weight: 600;      /* semibold */
  font-size: 16px;
  text-align: center;
  border: none !important;
  background: transparent !important;
  margin-top: 15px;
}

/* === MAPPA STUDIO === */
#studio {
  background: #fff;
  text-align: center;
  padding: 60px 0;
}

#studio h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  color: rgb(66, 92, 187);
  margin: 0 auto 20px;
  line-height: 1.4;
  text-align: center;
}

#studio h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: rgb(66, 92, 187);
  margin: 10px auto 0;
}

.studio__map iframe {
  width: 100%;     /* copre tutto lo schermo */
  height: 510px;   /* più alta su desktop */
  border: 0;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .studio__map iframe {
    height: 350px; /* più piccola su mobile */
  }
}

/* ===== DICONO DI ME ===== */
.testimonials-section {
  background: #616262; /* sfondo grigio */
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.testimonials-section .section-title {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 15px;
}

.testimonials-section .divider {
  width: 60px;
  height: 3px;
  background: rgb(66, 92, 187); /* blu */
  margin: 0 auto 40px;
}

.testimonial-text {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 20px;
  color: #fff;
}

.testimonial-author {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

/* Swiper slider */
.testimonials-slider {
  max-width: 1000px;
  margin: 0 auto;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: rgb(66, 92, 187);
  opacity: 1;
}


/* CONTATTI */
#contatti h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: lowercase; /* tutto minuscolo */
  letter-spacing: 0;
  color: #425cbb;
  margin-bottom: 20px;
  text-align: left;
}
#contatti h2::first-letter {
  text-transform: uppercase; /* solo la prima maiuscola */
}
#contatti h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #425cbb;
  margin-top: 8px;
}
@media (max-width: 768px) {
  #contatti h2 { text-align: center; }
  #contatti h2::after { margin: 8px auto 0; }
}

/* === TERAPIA ONLINE === */
#online {
  background: rgb(66, 165, 213); /* azzurro definito */
  text-align: center;
  padding: 60px 20px; /* meno alto */
  color: #fff;
}

/* Titolo sezione */
#online h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 auto 20px;
  color: #fff;
  line-height: 46.4px;
  text-align: center;
}

#online h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #fff;
  margin: 8px auto 0;
}

/* Testo descrittivo */
#online h4 {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.91);
  line-height: 33px;
  margin: 0 auto 25px;
  max-width: 750px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  hyphens: manual;
}

/* Immagine */
.online__image {
  margin-top: 20px;
  text-align: center;
}

.online__image img {
  max-width: 480px; /* più grande */
  width: 100%;
  height: auto;
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.online__image img:hover {
  transform: scale(1.03); /* piccolo effetto hover */
}

/* Responsive */
@media (max-width: 768px) {
  #online {
    padding: 40px 15px;
  }
  #online h2 {
    font-size: 24px;
    line-height: 36px;
  }
  #online h4 {
    font-size: 18px;
    line-height: 28px;
  }
  .online__image img {
    max-width: 300px;
  }
}

/* TESTIMONIANZE */
.testimonianze blockquote { border-left: 4px solid #ccc; padding-left: 16px; margin: 20px 0;
  font-style: italic; font-family: 'Libre Baskerville', serif; font-size: 17px; line-length 1.6; color: #444; }
.testimonianze h2 {
  font-family: 'Lato', sans-serif;
  font-size: 29px;
  font-weight: 700;
  text-transform: lowercase; /* tutto minuscolo */
  letter-spacing: 0;
  color: #425cbb;
  margin-bottom: 20px;
  text-align: left;
}
.testimonianze h2::first-letter {
  text-transform: uppercase; /* solo la prima maiuscola */
}

.testimonianze h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #425cbb;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .testimonianze h2 { text-align: center; }
  .testimonianze h2::after { margin: 8px auto 0; }
}

/* === FOOTER === */
.site-footer.default {
  background: #fff;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
}

.footer-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px; /* base, poi gestiamo margini colonna centrale */
  padding: 60px 0;
}

.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
  text-align: left;
}

.footer-brand img {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-quote {
  font-size: 16px;
  font-weight: 300;
  line-height: 30.4px;
  margin: 12px 0;
  color: #000;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: #ccc;
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin: 8px 0;
}
.footer-menu a {
  font-size: 16px;
  font-weight: 300;
  color: #000;
  text-decoration: none;
}
.footer-menu a:hover {
  color: #425cbb;
}

.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contacts li {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 300;
  color: #000;
}

/* Footer: titoli */
.footer-title {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 25px 0;
  text-transform: uppercase; /* default: Mappa del sito */
}

/* Solo per il titolo "Contatti" */
.footer-col:last-child .footer-title {
  text-transform: capitalize; /* es. "Contatti" */
}

/* Divider sotto i titoli */
.footer-divider {
  width: 40px;
  height: 2px;
  background: #ccc;
  margin-bottom: 20px;
}

/* Layout colonne footer */
.footer-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px; /* spazio equilibrato tra colonne */
  padding: 60px 0;
}

.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
  text-align: left;
}

/* Footer basso */
.footer-bottom {
  background: #616262; /* stesso colore di "Dicono di me" */
  padding: 15px 0;
}
.footer-copyright {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  text-align: right;
}


/* BOTTONI */
.btn { display: inline-block; padding: 10px 20px; background: #004080; color: #fff; border-radius: 4px; text-decoration: none;
  font-weight: 600; transition: background 0.3s ease; }
.btn:hover { background: #0066cc; }

/* Pulsante hero: visibile solo su mobile */
.hero__content .btn {
  display: none; /* di default nascosto */
}

@media (max-width: 768px) {
  .hero__content .btn {
    display: inline-block; /* mostrato su mobile */
  }
}

/* RESPONSIVE */
@media (max-width: 992px) { .hero__title { font-size: 1.8rem; } }
@media (max-width: 640px) { .hero__title { font-size: 1.5rem; } section { padding: 40px 0; } }

/* ===== HAMBURGER ===== */
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1003;
    margin-left: 15px;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #425cbb;
    border-radius: 2px;
    transition: all .3s;
  }
  .menu-toggle.active span:nth-child(1){ transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2){ opacity: 0; }
  .menu-toggle.active span:nth-child(3){ transform: rotate(-45deg) translate(6px, -6px); }
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {
  nav.header__nav ul.menu {
    position: fixed;
    top: 0;
    right: -100%; /* nascosto */
    bottom: 0;
    width: 75%;
    max-width: 360px;
    height: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    z-index: 3001;
    display: block;
    transition: right 0.3s ease;
    overflow-y: auto;
    flex-direction: column;
  }
  nav.header__nav ul.menu.active { right: 0; }

  /* Overlay solo a sinistra */
  body.menu-open .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 25%; /* 100% - 75% menu */
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
  }

  /* Logo + titolo dentro menu mobile */
.mobile-menu-header {
  display: block;
  text-align: left;        /* allinea tutto a sinistra */
  padding: 20px 20px;      /* più spazio a sinistra */
  border-bottom: 1px solid #eee;
  list-style: none;
  margin-bottom: 20px;
}
.mobile-menu-header img {
  max-width: 80px;
  height: auto;
  margin-bottom: 10px;
  display: block;          /* logo su propria riga */
}
.mobile-menu-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;       /* piccolo spazio sotto */
  color: #222;
  text-align: left;
}
.mobile-menu-header p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;               /* niente margine extra sopra */
  color: #666;
  text-align: left;
}

  /* Voci del menu */
  nav.header__nav ul.menu li { margin: 12px 0; }
  nav.header__nav ul.menu li a {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 5px;
  }
  nav.header__nav ul.menu li a:hover {
    background: #f2f2f2;
    color: #000;
  }

  /* Elimina bullets */
  nav.header__nav ul.menu,
  nav.header__nav ul.menu li,
  nav.header__nav ul.menu li a {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
  }
  nav.header__nav ul.menu li::marker { content: none !important; }

  /* Nascondi CTA su mobile */
  .header__cta { display: none !important; }
}

/* Desktop: nascondi il blocco mobile-menu-header */
@media (min-width: 769px) {
  .mobile-menu-header { display: none !important; }
}

/* Responsive Servizi */
@media (max-width: 992px) {
  section#servizi.services > .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  section#servizi.services > .container {
    grid-template-columns: 1fr;
  }
  section#servizi.services > .container > .services__group {
    align-items: center !important;
    text-align: center !important;
    padding: 20px;
  }
  section#servizi.services > .container > .services__group h2,
  section#servizi.services > .container > .services__group ul {
    transform: none !important;
  }
}
<?php

/* ============================
   LAYOUT PAGINA CHI SONO
============================ */

/* --- HERO CON BANDA BLU --- */
.page-hero {
  position: relative;
  z-index: 5 !important;           /* mantiene la hero sopra overlay e header */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(66, 92, 187, 0.8) !important; /* forzatura per il blu corretto */
  color: #fff !important;
  min-height: 120px !important;
  padding: 30px 60px;
  margin-bottom: 0;
  text-align: left;
  box-sizing: border-box;
  animation: fadeInDown 1.6s ease-in-out forwards !important;
}


.page-hero .container {
  position: relative;
  flex: 1 1 auto;
  max-width: 1100px;
  width: 100%;
  text-align: left;
  padding-left: 20px;
}

.page-hero .page-title {
  font-family: 'Lato', sans-serif;
  font-size: 35px;
  font-weight: 700;
  text-transform: capitalize;
  margin: 0 0 2px;
  line-height: 1;
  color: #fff;
}

.page-hero .breadcrumbs {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}
.page-hero .breadcrumbs a {
  color: #fff;
  text-decoration: none;
}
.page-hero .breadcrumbs a:hover {
  text-decoration: underline;
}
.page-hero .breadcrumbs .current {
  font-weight: 700;
  color: #fff;
}
/* === FIX VISIBILITÀ HERO BLU === */
.page-hero {
  position: relative;
  z-index: 5 !important;          /* sopra overlay e header */
  background: rgba(66, 92, 187, 0.8) !important;
  color: #fff !important;
  min-height: 120px !important;   /* aumenta altezza per visibilità */
  display: flex;
  align-items: center;
}

.page-hero .container {
  z-index: 6;                     /* contenuto sopra la banda */
  position: relative;
}

.page-hero .page-title,
.page-hero .breadcrumbs {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important; /* forza visibilità */
}


/* --- GRIGLIA SUPERIORE (IMMAGINE + TESTO GRIGIO) --- */
.about__grid-full {
  display: grid;
  grid-template-columns: 58% 42%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
}

section#chi-sono .about__text {
  background: #6c6c6c;
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.9;
  padding: 70px 120px 70px 70px;
}

section#chi-sono .about__text h1,
section#chi-sono .about__text h2 {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 28px;
}

section#chi-sono .about__text p {
  color: #fff;
  margin-bottom: 25px;
  max-width: 600px;
}

/* --- CONTENUTO INFERIORE (SFONDO BIANCO) --- */
#chi-sono.page-content {
  display: block;
  width: 100%;
  background: #fff;
  padding: 0;
  margin: 0;
  border: none;
}

.about__content {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  background: transparent;
  color: #616262;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  padding: 0 120px 60px 90px; /* sinistra = hero, destra = colonna grigia */
  box-sizing: border-box;
  animation: fadeInUp 0.8s ease-in-out both;
}

.about__content h3,
.about__text h3 {
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #425cbb;
  margin: 40px 0 15px;
  line-height: 1.3;
}

.about__content p,
.about__text p {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.about__content strong,
.about__text strong {
  color: #222;
  font-weight: 700;
}

.about__content ul,
.about__text ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.about__content li,
.about__text li {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 6px;
}

/* --- UNIONE VISIVA CON MODULO CONTATTI --- */
.about__content {
  margin-bottom: 0;
  padding-bottom: 0;
}
.about__content + #contatti-form {
  margin-top: -2px;
  border-top: none;
  box-shadow: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about__grid-full {
    grid-template-columns: 1fr;
  }
  .about__text {
    padding: 30px 20px;
  }
  .page-hero .page-title {
    font-size: 28px;
  }
  .page-hero .breadcrumbs {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 20px 15px;
    text-align: center;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .page-hero .page-title {
    font-size: 22px;
  }
  .page-hero .breadcrumbs {
    font-size: 14px;
  }
  section#chi-sono .about__text {
    text-align: left;
    font-size: 15px;
    padding: 25px 30px;
    line-height: 1.9;
  }
  .about__content {
    padding: 0 25px 40px;
    max-width: 100%;
    animation: none;
  }
}

/* --- ANIMAZIONI --- */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-25px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}



/* ============================
   PAGINA CONTATTI
============================ */

.contact-page {
  padding: 80px 0;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 */
  gap: 60px;
  align-items: flex-start;
}

.contact-page__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
}

.contact-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-page__item {
  margin-bottom: 25px;
}

.contact-page__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  margin-bottom: 5px;
}

.contact-page__value {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  color: #333;
}

.contact-page__value a {
  text-decoration: none;
}

.contact-page__value a:hover {
  text-decoration: underline;
}

.contact-page__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-page__image {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding: 50px 0;
  }

  .contact-page__title {
    font-size: 22px;
  }

  .contact-page__label {
    font-size: 17px;
  }

  .contact-page__value {
    font-size: 15px;
  }
}

/* ============================
   SPAZIATURA GLOBALE CONTENUTI PAGINE
   (titoli + paragrafi)
============================ */

.entry-content h2,
.page-content h2,
.about__content h2 {
  margin: 40px 0 18px;
}

.entry-content h3,
.page-content h3,
.about__content h3 {
  margin: 32px 0 15px;
}

.entry-content p,
.page-content p,
.about__content p {
  margin-bottom: 18px;
  line-height: 1.8;
}

.entry-content ul,
.page-content ul,
.about__content ul {
  margin: 0 0 22px 25px;
}

.entry-content li,
.page-content li,
.about__content li {
  margin-bottom: 8px;
  line-height: 1.8;
}