/* Poppins ospitato in locale (SIL Open Font License 1.1): nessuna richiesta a server Google */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2");
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f4f8fb;
    --color-primary: #1f3c5b;
    --color-primary-soft: #e3edf7;
    --color-accent: #2f6fbf;
    --color-text: #1f2933;
    --color-text-soft: #4b5563;
    --color-border: #e5e7eb;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-card: 16px;
    --radius-pill: 999px;
    --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* ================================================
   LAYOUT BASE
   ================================================ */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-light,
.section.alt,
.section-alt {
    background-color: #f9fafb;
}

.hero-quote {
  font-style: italic;
  font-size: 1.50rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 700px;
  margin: 20px auto 0;
  padding: 15px 20px;
 /* border-left: 4px solid #8aa89b; *//* verde salvia psicologico */
 /* background: rgba(138, 168, 155, 0.08); *//* leggero sfondo soft */
  border-radius: 6px;
  animation: fadeInQuote 0.8s ease forwards;
}

/* Micro-animazione elegante */
@keyframes fadeInQuote {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.page-hero {
    padding: 3.5rem 0 2.5rem;
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-hero.small-hero {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: var(--color-primary);
}

.page-hero p {
    margin: 0;
    color: var(--color-text-soft);
    max-width: 720px;
}

.section-cta {
    background: linear-gradient(135deg, #1f3c5b, #2f6fbf);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.section-cta .btn.ghost {
    border-color: #ffffff;
    color: #ffffff;
}

.section-cta .btn.ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-final {
    background-color: #1f3c5b;
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-final h2 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: #25D366;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

.header-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: auto;
    height: 70px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.main-nav {
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--color-text-soft);
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
}


/* Riduce l'interlinea nei paragrafi delle aree di intervento */
.areas-section p {
  line-height: 1.3; /* più compatto */
  margin-bottom: 0.0rem; /* riduce lo spazio sotto */
}

/* Riduce l'interlinea negli elenchi puntati */
.areas-section ul.list li {
  line-height: 1.10;
  margin-bottom: 0.3rem;
}

/* Riduce lo spazio sotto i titoli */
.areas-section h2 {
  margin-bottom: 0.4rem;
}


/* Interlinea e leggibilità dei paragrafi della sezione disturbi-ansia */
#disturbi-ansia p {
  text-align: left;
  line-height: 1.6;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-home {
    background-color: #000;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/home-background.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 60, 91, 0.35), rgba(47, 111, 191, 0.20));
}

.hero-content {
    position: relative;
    max-width: 640px;
    padding: 5rem 0 4rem;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-text {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: flex-end; /* <— questa riga fa tutto */
}

.hero-meta {
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--color-primary);
}

h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--color-text-soft);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--color-text-soft);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
   /* background-color: var(--color-accent);*/
   background-color:  #a9c3b6;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
   /* background-color: #245a96;*/
   background-color: #7c998d;
}

.btn.secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn.secondary:hover {
    background-color: var(--color-primary-soft);
}

.btn.ghost {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn.ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
}

/* ================================================
   CARDS & GRIDS
   ================================================ */

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 0.75rem;
}

.card .muted-text,
.text-no-margin {
    color: #8b95a8;
    font-size: 0.95rem;
    margin: 0;
}

.card-link {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
}

.card-link:hover {
    text-decoration: underline;
}

.link-accent {
    color: #2f6fbf;
    font-weight: 500;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.link-accent:hover {
    text-decoration: underline;
}

/* ================================================
   LISTS
   ================================================ */

.benefits-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.benefits-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--color-text-soft);
}

.benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
}

.list {
    padding-left: 1.2rem;
    margin: 0 0 0.75rem;
}

.list li {
    margin-bottom: 0.35rem;
}

.list.small li {
    font-size: 0.9rem;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--color-text-soft);
}

.check-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.numbered-list {
    padding-left: 1.2rem;
    margin: 0;
}

.numbered-list li {
    margin-bottom: 0.4rem;
}

/* ================================================
   STEPS & PROGRESS
   ================================================ */

.steps {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0;
    counter-reset: step-counter;
}

.steps li {
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 1.2rem;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

/* ================================================
   SERVICES & GRID
   ================================================ */


.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
}


/* Card verde di default */
.service-card {
    background-color: #b7c9c0; /* verde salvia */
    border: 1px solid #7c998d; /* bordo leggermente più scuro */
    color: #ffffff; /* testo bianco per contrasto */
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.service-card:hover {
    background-color: #7c998d; /* verde leggermente più scuro */
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: #ffffff;
    transition: color 0.25s ease;
}

/*    bianco sporco/verde chiarissimo */
.service-card:hover h3 {
    color: #e8f1ed;   
}

.service-card a {
    text-decoration: none;
    color: inherit; /* mantiene il bianco */
}


.service-card h3 {
    margin-bottom: 0.75rem;
}


/* Rende la card un contenitore verticale */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-card {
    justify-content: space-between;
}

/* Sposta il link "Scopri di più" a destra */
.service-card .cta {
    margin-left: auto;
    margin-top: 0.75rem; /* opzionale: spazio sopra il link */
}

/* Rimuove la sottolineatura dal link */
.service-card a {
    text-decoration: none;
    color: inherit; /* mantiene il colore del testo */
}

/* Effetto hover sulla card */
.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/* Animazione al passaggio del mouse */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
     border-color: #8aa89b; /* bordo verde in hover */
}

/* Cambia colore del titolo quando si passa sopra */
.service-card:hover h3 {
  /*  color: var(--color-primary); *//* usa il tuo colore principale */
     color: #8aa89b; /* colore verde */
    transition: color 0.25s ease;
}


/* ================================================
   FORMS
   ================================================ */

/* Card container for the contact form */
.contact-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
    width: 100%;
    margin-top: 1.5rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 0.9rem 1rem;
    font-family: var(--font-main);
    font-size: 0.98rem;
    outline: none;
    background-color: #fbfdff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 6px 18px rgba(47, 111, 191, 0.08);
    background-color: #ffffff;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
    padding-top: 1rem;
}

/* Radio / preference group styled as compact box */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid rgba(15,23,42,0.04);
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background-color: #fbfdff;
    font-size: 0.95rem;
}

.radio-group legend {
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--color-text);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.radio-group input {
    margin: 0;
    transform: scale(1.05);
}

/* Submit button inside form */
.contact-form .btn.primary {
    padding: 0.88rem 1.2rem;
    font-weight: 700;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form .btn.primary {
        width: 100%;
        align-self: stretch;
    }
}

/* ================================================
   MAPS
   ================================================ */

.maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.map-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.map-embed {
    width: 100%;
    height: 250px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-card-content {
    padding: 1.5rem;
    background-color: #ffffff;
}

.map-card-address {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.map-card-contact {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.map-card-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ================================================
   LAYOUT PATTERNS
   ================================================ */

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

.flex-row,
.profile-row,
.orientation-row,
.chi-sono-flex,
.section-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.flex-row.reverse,
.profile-row.reverse,
.orientation-row.reverse,
.chi-sono-flex.reverse,
.section-flex.reverse {
    flex-direction: row-reverse;
}

.flex-col-left,
.profile-photo,
.orientation-photo,
.chi-sono-photo,
.section-flex .col-left {
    flex: 0 0 320px;
    max-width: 320px;
}


.flex-col-right,
.profile-text,
.orientation-text,
.chi-sono-text,
.section-flex .col-right {
    flex: 1;
    min-width: 220px;
}

.flex-row img,
.profile-image,
.orientation-image,
.chi-sono-photo img,
.section-flex img {
    width: 100%;
    border-radius: 1rem;
    display: block;
    object-fit: cover;
}

.online-image {
    display: block;
    margin: 0 auto;       /* centra orizzontalmente */
    width: 60%;           /* riduce la dimensione */
    height: auto;         /* mantiene proporzioni */
}


.dual-images {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap; /* le tiene affiancate */
}

.dipinti-image {
    width: 45%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}


/* ================================================
   UTILITIES
   ================================================ */

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

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.cta-center {
    max-width: 640px;
    margin: 0 auto;
}

.box-highlight {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.box-diagram {
    background-color: var(--color-primary-soft);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

.contact-grid .card {
    text-align: left;
}

.contact-value {
    font-weight: 600;
    color: var(--color-primary);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.faq p {
    margin: 0 0 0.4rem;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
    background-color: #0f172a;
    color: #e5e7eb;
    margin-top: 3rem;
}

.footer-inner {
    align-items: start;
}

.footer-inner,
.footer-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.1fr 1.3fr 1.75fr;
    gap: 1.5rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-col p {
    margin-top: 0;
}

.footer-col h4 {
    margin-top: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}




.site-footer h3,
.site-footer h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


.site-footer li {
    margin-bottom: 0.1rem; /* meno spazio tra le voci */
}



.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: text-decoration 0.2s ease;
    line-height: 1.0; /* interlinea più compatta */
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0.5rem 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.footer-social {
    margin-top: 0.75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    text-decoration: none !important;
    font-size: 0.88rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: #38bdf8;
    transform: translateY(-1px);
}

.footer-social-link .facebook-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.2s ease;
}

.footer-social-link:hover .facebook-icon {
    fill: #1877F2;
}



.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 0;
    font-size: 0.8rem;
    text-align: center;
    color: #cbd5f5;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ================================================
   FLOATING BUTTON
   ================================================ */

.whatsapp-float {
    display: none !important;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 960px) {
    .two-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.55rem 0;
        gap: 0.5rem;
    }

    .logo-img {
        height: 52px;
    }

    .header-right {
        gap: 0.65rem;
    }

    .header-whatsapp {
        padding: 0.42rem 0.8rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .header-whatsapp svg {
        width: 16px;
        height: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: #ffffff;
        padding: 0.75rem 1rem 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
        transform-origin: top right;
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
        gap: 0.5rem;
        min-width: 180px;
    }

    .nav-list.nav-open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .cards-grid.two,
    .cards-grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .flex-row,
    .profile-row,
    .orientation-row,
    .chi-sono-flex,
    .section-flex {
        flex-direction: column;
    }

    .flex-col-left,
    .flex-col-right,
    .profile-photo,
    .profile-text,
    .orientation-photo,
    .orientation-text,
    .chi-sono-photo,
    .chi-sono-text,
    .section-flex .col-left,
    .section-flex .col-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-inner,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        text-align: left;
    }

    .services-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-cta-group,
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 46px;
    }

    .header-whatsapp {
        padding: 0.38rem 0.65rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {
    .header-whatsapp span {
        display: none;
    }
    .header-whatsapp {
        padding: 0.45rem;
        border-radius: 50%;
    }
    .header-whatsapp svg {
        width: 17px;
        height: 17px;
    }
}

/* Allineamento accessibile a sinistra per contrastare i fiumi di bianco (WCAG) */
.section p {
  text-align: left;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .online-image {
    width: 80%;
  }
}

.intro-title {
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
    color: #1a2a44;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Accessibilità & SEO: elementi nascosti alla vista ma leggibili dai motori di ricerca e screen reader */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ================================================
   BLOCCO PRIVACY POLICY NEL FORM CONTATTI
   ================================================ */
.contact-form .form-privacy,
.form-privacy {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin: 0.8rem 0 0.5rem !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.contact-form .form-privacy input[type="checkbox"],
.form-privacy input[type="checkbox"],
.contact-form input[type="checkbox"] {
    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    flex: 0 0 19px !important;
    accent-color: #25D366 !important;
}

.contact-form .form-privacy label,
.form-privacy label {
    display: inline !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: var(--color-text-soft) !important;
    line-height: 1.45 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
}

.contact-form .form-privacy a,
.form-privacy a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
}

.contact-form .form-privacy a:hover,
.form-privacy a:hover {
    color: var(--color-primary);
}

.timeline-year {
    list-style: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem -1rem;
}

@media (max-width: 768px) {
    .site-footer,
    .footer-inner,
    .footer-grid {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

/* ================================================
   BANNER COOKIE (minimale, non bloccante)
   ================================================ */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    font-size: 0.85rem;
    line-height: 1.45;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1 1 320px;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Rifiuta e Accetta: identici per dimensione, colore e peso */
.cookie-banner button {
    font: inherit;
    font-weight: 600;
    min-width: 6rem;
    padding: 0.5rem 1rem;
    color: var(--color-primary);
    background: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    cursor: pointer;
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible {
    background: var(--color-primary-soft);
}

@media (max-width: 520px) {
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-banner button {
        flex: 1;
    }
}

/* ================================================
   Citazione della home usata come H1: stesso aspetto della citazione originale
   ================================================ */
.hero h1.hero-quote {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    max-width: 700px;
    margin: 20px auto 0;
    padding: 15px 20px;
}

/* Footer: WhatsApp sotto Facebook */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-social-link .whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.2s ease;
}

.footer-social-link:hover .whatsapp-icon {
    fill: #25D366;
}

/* Pulsante dentro la scheda indirizzo delle pagine di sede */
.card-cta {
    margin: 1rem 0 0;
}

/* Mappe di Google: si caricano solo dopo il clic dell'utente */
.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    padding: 1rem;
    text-align: center;
}

.map-consent-box p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
}

/* ================================================
   PAGINE DI SEDE
   ================================================ */

/* Informazioni sullo studio: testo a sinistra, schede con icona, nota finale */
.studio-info h2 {
    text-align: left;
    margin: 0 0 1.25rem;
}

.studio-lead {
    max-width: 860px;
    margin: 0 0 2rem;
    padding-left: 1.1rem;
    border-left: 4px solid var(--color-accent);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    text-align: left;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card {
    text-align: left;
    border-top: 4px solid var(--color-accent);
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin: 0;
    font-size: 1.1rem;
    text-align: left;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card .check-list {
    margin: 0;
}

.studio-note {
    margin: 0;
    padding: 1.1rem 1.4rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-card);
    color: var(--color-text-soft);
    text-align: left;
}

/* Passi del percorso: la quinta scheda, colorata, affianca "Prevenzione" */
.steps-grid.steps-grid-cta {
    grid-template-columns: repeat(3, 1fr);
}

.step-card--cta {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: 0;
}

.step-card--cta::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.step-card--cta h3 {
    margin: 0;
    color: #ffffff;
}

.step-card--cta p {
    margin: 0;
    max-width: 34rem;
    color: #e8f0fa;
}

.step-card--cta .btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .steps-grid.steps-grid-cta {
        grid-template-columns: repeat(2, 1fr);
    }
    .step-card--cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .steps-grid.steps-grid-cta {
        grid-template-columns: 1fr;
    }
}

/* Link dentro la CTA finale: leggibile sul fondo scuro */
.cta-final a:not(.btn) {
    color: #ffffff;
    text-decoration: underline;
}

/* Schede contatto delle pagine di sede: link coerenti con il tema */
.studio-contact .contact-value a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.studio-contact .contact-value a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.studio-contact .card a:not(.btn):not(.contact-value a) {
    color: var(--color-accent);
}

/* =====================================================================
   RIFINITURE DELL'ASPETTO (v1.5)
   Solo stile: nessun testo e nessun colore del tema modificato.
   Per annullare tutto basta eliminare questo blocco fino a fine file.
   ===================================================================== */

/* 1. Leggibilita': testo blu scuro sulle superfici verde salvia
      (prima era bianco su verde chiaro, con contrasto troppo basso). */
.btn.primary {
    color: var(--color-primary);
    font-weight: 600;
}

.btn.primary:hover {
    background-color: #8fae9f;
}

.service-card,
.service-card h3,
.service-card:hover h3,
.service-card p {
    color: var(--color-primary);
}

.service-card:hover {
    background-color: #c4d5cc;
}

.service-card .cta {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 2. Tipografia: ritmo piu' regolare e righe di lunghezza confortevole */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h2 {
    margin-bottom: 1.25rem;
}

.profile-text p,
.orientation-text p,
.section-intro p {
    max-width: 68ch;
    line-height: 1.8;
}

/* Titolo e testo delle introduzioni sulla stessa linea di allineamento */
.section-intro {
    text-align: left;
}

/* 3. Pagina "Chi sono": la foto resta in alto e accompagna la lettura */
.profile-row {
    align-items: flex-start;
}

@media (min-width: 961px) {
    .profile-photo {
        position: sticky;
        top: 6rem;
    }
}

/* 4. Contatti: numero, e-mail e WhatsApp nei colori del tema (non link grezzi) */
.contact-value a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-value a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* 5. Home: la citazione resta leggibile anche sulle zone chiare della foto */
.hero h1.hero-quote {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* 6. Accessibilita': focus visibile da tastiera e rispetto di "riduci animazioni" */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
