/* =========================================================
   CMCP — Stylesheet principale
   Mobile-first, CSS custom properties, no framework
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABILI E RESET
   --------------------------------------------------------- */
:root {
    --color-primary:      #4a7c3f;
    --color-primary-dark: #2d5a27;
    --color-secondary:    #c8a951;
    --color-accent:       #8b4513;
    --color-bg:           #f9f6f0;
    --color-bg-dark:      #385838;
    --color-text:         #2c2c2c;
    --color-text-light:   #6b6b6b;
    --color-white:        #ffffff;
    --color-border:       #ddd8cc;

    --font-serif:   'Lora', Georgia, serif;
    --font-sans:    'Inter', system-ui, sans-serif;

    --header-h:     130px;
    --container-w:  1200px;
    --radius:       6px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
    --shadow-md:    0 4px 20px rgba(0,0,0,.12);
    --transition:   .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

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

/* ---------------------------------------------------------
   2. TIPOGRAFIA
   --------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { max-width: 70ch; }

/* ---------------------------------------------------------
   3. UTILITÀ
   --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section-title {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 60ch;
}

.btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--color-white);
}

/* Animazione fade-in su scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   4. HEADER
   --------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--color-bg-dark);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link { display: flex; align-items: center; }

.logo-img {
    height: 116px;
    max-height: 116px;
    width: auto;
    max-width: 460px;
}

/* Nav desktop: nascosta su mobile */
.main-nav { display: none; }

.nav-list {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    display: block;
    padding: .5rem .85rem;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(255,255,255,.1);
}

.nav-link--cta {
    background: var(--color-secondary);
    color: var(--color-bg-dark) !important;
    font-weight: 600;
    margin-left: .5rem;
}
.nav-link--cta:hover {
    background: #b8952e;
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav mobile aperta */
.main-nav.open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
}
.main-nav.open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
}
.main-nav.open .nav-link {
    padding: .75rem 1rem;
    font-size: 1rem;
}
.main-nav.open .nav-link--cta {
    margin-left: 0;
    margin-top: .5rem;
    text-align: center;
}

/* Desktop: mostra nav, nascondi hamburger */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .main-nav   { display: block !important; }
}

/* ---------------------------------------------------------
   5. HERO
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    background-color: var(--color-bg-dark);
    background-image: url('/assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center 60%;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 26, .25);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 3rem 0;
    margin-inline: auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .97rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f0d070;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.9rem);
    color: var(--color-white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-description {
    font-size: 1.32rem;
    color: rgba(255,255,255,.88);
    margin-bottom: 2rem;
    max-width: 55ch;
    margin-inline: auto;
}

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

/* ---------------------------------------------------------
   6. SEZIONE SERVIZI
   --------------------------------------------------------- */
.servizi {
    padding: 5rem 0;
    background: #fdf5d8;
}

.servizi-header {
    text-align: center;
    margin-bottom: 3rem;
}
.servizi-header .section-subtitle { margin-inline: auto; }

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.card-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 { color: var(--color-primary-dark); margin-bottom: .6rem; }
.card p  { color: var(--color-text-light); font-size: .95rem; max-width: none; }

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------
   7. SEZIONE NUMERI
   --------------------------------------------------------- */
.numeri {
    padding: 5rem 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.numeri-header { text-align: center; margin-bottom: 3rem; }
.numeri-header .section-title    { color: var(--color-white); }
.numeri-header .section-subtitle { color: rgba(255,255,255,.7); margin-inline: auto; }

.numeri-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.numero-valore {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: .35rem;
}
.numero-label {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    letter-spacing: .03em;
}

@media (min-width: 640px) { .numeri-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------
   8. SEZIONE SEDI
   --------------------------------------------------------- */
.sedi {
    padding: 5rem 0;
    background: #fdf5d8;
}
.sedi-header { text-align: center; margin-bottom: 3rem; }
.sedi-header .section-subtitle { margin-inline: auto; }

.sedi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sede-card {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.sede-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.sede-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.sede-img-placeholder svg {
    width: 48px; height: 48px;
    fill: none;
    stroke: rgba(255,255,255,.35);
    stroke-width: 1.5;
}
.sede-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sede-body { padding: 1.5rem; }
.sede-body h3 { color: var(--color-primary-dark); margin-bottom: .5rem; }
.sede-body p  { font-size: .9rem; color: var(--color-text-light); max-width: none; }
.sede-body a  { color: var(--color-primary); font-weight: 500; }
.sede-body a:hover { text-decoration: underline; }

@media (min-width: 640px) { .sedi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------
   9. CERTIFICAZIONI
   --------------------------------------------------------- */
.certificazioni {
    padding: 2.5rem 0;
    background: #fdf5d8;
    border-top: 1px solid #e8d99a;
    border-bottom: 1px solid #e8d99a;
}

.cert-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.cert-item {
    display: grid;
    grid-template-rows: 90px auto auto;
    align-items: center;
    justify-items: center;
    gap: .5rem;
    text-align: center;
}

.cert-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
    transition: transform .2s ease;
    align-self: center;
}
.cert-item:hover .cert-logo { transform: scale(1.05); }

.cert-badge {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--color-white);
    background: var(--color-primary);
    padding: .35rem .9rem;
    border-radius: 20px;
    white-space: nowrap;
}
.cert-name { font-size: .78rem; color: var(--color-text-light); }

@media (max-width: 480px) {
    .cert-inner {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
}

/* ---------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,.75);
    padding-top: 3.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-col--brand { display: flex; flex-direction: column; align-items: center; }

.footer-col--brand .footer-logo {
    height: 116px;
    max-height: 116px;
    width: auto;
    max-width: 460px;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
    max-width: 28ch;
    text-align: center;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.footer-address { font-size: .88rem; line-height: 1.9; }
.footer-address a:hover { color: var(--color-secondary); }

.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-secondary); }

.footer-col--legal p { font-size: .85rem; line-height: 1.8; max-width: none; }

.footer-badges { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-badge  { height: 40px; width: auto; opacity: .9; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
}
.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.38);
}
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

@media (min-width: 640px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 960px) {
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

/* ---------------------------------------------------------
   11. PAGINE INTERNE
   --------------------------------------------------------- */
.page-hero {
    padding: calc(var(--header-h) + 3rem) 0 3rem;
    background: var(--color-bg-dark);
    color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); }
.page-hero p  { color: rgba(255,255,255,.75); margin-top: .75rem; max-width: 60ch; }

.page-content {
    padding: 4rem 0 5rem;
}
.page-content p   { margin-bottom: 1rem; }
.page-content h2  { margin: 2.5rem 0 1rem; color: var(--color-primary-dark); }
.page-content h3  { margin: 2rem 0 .75rem; color: var(--color-primary); }
.page-content ul  { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li  { margin-bottom: .4rem; }

/* ---------------------------------------------------------
   12. RESPONSIVE — padding sezioni su desktop
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .servizi, .numeri, .sedi, .raggiungerci { padding: 6rem 0; }
}

/* ---------------------------------------------------------
   PAGINE INTERNE — stili specifici
   --------------------------------------------------------- */

.content-narrow { max-width: 900px; }

/* Pagine contenuto (Qualità, PSR, Cookie Policy…) */
.policy-block { margin-bottom: 2.5rem; }

.policy-meta {
    background: var(--color-white);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 .5rem .5rem 0;
    font-size: .95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}
.policy-meta strong { color: var(--color-text); }
.policy-meta a { color: var(--color-primary); }

.policy-contact {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    border-radius: .5rem;
    font-style: normal;
    line-height: 1.8;
    margin: 1rem 0;
}
.policy-contact a { color: var(--color-primary); }

/* Tabella cookie */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: .5rem;
    border: 1px solid var(--color-border);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.cookie-table th,
.cookie-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.cookie-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    white-space: nowrap;
}
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table tbody tr:nth-child(even) { background: var(--color-bg); }
.cookie-table code {
    background: rgba(0,0,0,.06);
    padding: .1em .4em;
    border-radius: .25rem;
    font-size: .85em;
}

.cookie-browser-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: .75rem 0 1rem;
}
.cookie-browser-list a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
}

.pilastri-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}
@media (min-width: 640px) { .pilastri-grid { grid-template-columns: repeat(3, 1fr); } }

.pilastro {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.pilastro-icon {
    width: 44px; height: 44px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.pilastro-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pilastro h3 { color: var(--color-primary-dark); margin-bottom: .75rem; }
.pilastro ul { list-style: none; padding: 0; }
.pilastro ul li { font-size: .9rem; color: var(--color-text-light); padding: .3rem 0; border-bottom: 1px solid var(--color-border); }
.pilastro ul li:last-child { border-bottom: none; }
.pilastro ul li::before { content: '✓ '; color: var(--color-primary); font-weight: 700; }

.policy-firma {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: .9rem;
}
.firma-grid { display: flex; gap: 3rem; margin-top: 1rem; }
.firma-ruolo { font-size: .8rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: .07em; }
.firma-nome { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-text); font-weight: 600; }

/* PSR 2014-2020 */
.psr-intro { margin-bottom: 2.5rem; }
.psr-autorita { margin-top: 1rem; font-size: .9rem; color: var(--color-text-light); }

.psr-misura-label {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.psr-misura-label span { font-weight: 700; color: var(--color-secondary); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: .25rem; }
.psr-misura-label p { color: rgba(255,255,255,.8); font-size: .95rem; max-width: none; margin: 0; }

.psr-progetti { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }

.psr-progetto {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.psr-progetto-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    min-width: 2.5rem;
}
.psr-progetto-body h3 { color: var(--color-primary-dark); margin-bottom: .35rem; }
.psr-sede { font-size: .85rem; color: var(--color-secondary); font-weight: 600; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.psr-progetto-body p { font-size: .92rem; color: var(--color-text-light); max-width: none; margin-bottom: .5rem; }
.psr-importo { color: var(--color-text) !important; }

.psr-totale {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 2rem;
    border-radius: calc(var(--radius) * 2);
    gap: .5rem;
}
.psr-totale-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.psr-totale-valore { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-secondary); }

/* SiGeCo DON */
.sigeco-intro { margin-bottom: 2.5rem; font-size: 1.05rem; }

.sigeco-scheda { margin-bottom: 3rem; }
.scheda-table { width: 100%; border-collapse: collapse; }
.scheda-table th, .scheda-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .93rem; }
.scheda-table th { color: var(--color-text-light); font-weight: 600; width: 40%; background: var(--color-bg); }
.scheda-table a { color: var(--color-primary); }
.scheda-table a:hover { text-decoration: underline; }

.obiettivi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}
@media (min-width: 640px) { .obiettivi-grid { grid-template-columns: repeat(2, 1fr); } }

.obiettivo-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.obiettivo-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--color-border); line-height: 1; margin-bottom: .5rem; }
.obiettivo-card h3 { color: var(--color-primary-dark); margin-bottom: .5rem; font-size: 1rem; }
.obiettivo-card p { font-size: .9rem; color: var(--color-text-light); max-width: none; }

/* Contatti */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin-inline: auto;
}
@media (min-width: 640px) { .contatti-grid { grid-template-columns: repeat(3, 1fr); } }

.contatto-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contatto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary-dark);
    color: var(--color-white);
}
.contatto-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.contatto-icon svg { width: 22px; height: 22px; stroke: white; }
.contatto-header h2 { color: var(--color-white); font-size: 1.2rem; margin-bottom: .1rem; }
.contatto-tipo { font-size: .78rem; color: var(--color-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.contatto-info { padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.contatto-row { display: flex; align-items: flex-start; gap: .75rem; font-size: .92rem; }
.contatto-row svg { width: 16px; height: 16px; min-width: 16px; margin-top: .2rem; stroke: var(--color-primary); }
.contatto-row a { color: var(--color-primary); font-weight: 500; }
.contatto-row a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   CANALE TELEGRAM
   --------------------------------------------------------- */
.telegram-promo {
    padding: 4rem 0;
    background: var(--color-bg-dark);
}

.telegram-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.telegram-icon {
    width: 64px;
    height: 64px;
    background: #229ED9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.telegram-icon svg { width: 34px; height: 34px; color: white; }

.telegram-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #229ED9;
    margin-bottom: .4rem;
    max-width: none;
}

.telegram-body h2 {
    color: var(--color-white);
    margin-bottom: .75rem;
}

.telegram-desc {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    max-width: 52ch;
    margin-inline: auto;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #229ED9;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.telegram-btn svg { width: 20px; height: 20px; }
.telegram-btn:hover {
    background: #1a8abf;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .telegram-inner {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }
    .telegram-desc { margin-inline: 0; }
    .telegram-btn { flex-shrink: 0; margin-left: auto; }
}

/* WhatsApp promo */
.whatsapp-promo {
    padding: 4rem 0;
    background: #1b2f1b;
}
.whatsapp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.whatsapp-icon {
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.whatsapp-icon svg { width: 34px; height: 34px; color: white; }

.whatsapp-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #25D366;
    margin-bottom: .4rem;
}
.whatsapp-body h2 {
    color: var(--color-white);
    margin-bottom: .75rem;
}
.whatsapp-desc {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    max-width: 52ch;
    margin-inline: auto;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: .85rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}
.whatsapp-btn svg { width: 20px; height: 20px; }
.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .whatsapp-inner {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }
    .whatsapp-desc { margin-inline: 0; }
    .whatsapp-btn { flex-shrink: 0; margin-left: auto; }
}

/* Mappe Google nei contatti */
.contatto-mappa {
    display: block;
    width: 100%;
    height: 240px;
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 .75rem .75rem;
    z-index: 0; /* evita conflitti z-index con header fisso */
}

/* Utility: transition delay per animazioni fade-in */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.mt-lg   { margin-top: 1.5rem; display: inline-block; }
