/*
Theme Name: Compagnia Tenuta Cardinali
Theme URI: https://www.lacompagniatenutacardinali.com/
Author: La Compagnia Tenuta Cardinali APS
Description: Tema WordPress personalizzato basato sull'anteprima multipagina della Compagnia Tenuta Cardinali APS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tenuta-cardinali
*/

:root{--forest:#244d3b;--leaf:#6f8f52;--sage:#dce6d4;--cream:#f7f5ed;--soil:#a66b43;--ink:#26342c;--muted:#657268;--white:#fff;--line:#e3e6df;--radius:20px;--shadow:0 14px 36px rgba(28,55,40,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}a{color:var(--forest);text-underline-offset:4px}a:hover{color:var(--soil)}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(247,245,237,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(36,77,59,.13)}.head-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:86px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;color:var(--forest);line-height:1.1}.brand img{width:58px;height:58px;object-fit:contain}.brand span{max-width:205px;font-size:.96rem}.menu{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:900px}.menu a,.dropbtn{font-size:.78rem;text-decoration:none;font-weight:750;color:var(--forest);background:none;border:0;cursor:pointer;padding:7px 0;font-family:inherit}.menu a:hover,.dropbtn:hover{color:var(--soil)}.menu .nav-cta,.button{display:inline-flex;align-items:center;justify-content:center;background:var(--forest);color:#fff;padding:11px 17px;border-radius:999px;text-decoration:none;font-weight:750;border:0;cursor:pointer}.button:hover,.menu .nav-cta:hover{background:var(--soil);color:#fff}.dropdown{position:relative}.dropcontent{display:none;position:absolute;top:100%;left:-12px;min-width:220px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:var(--shadow)}.dropcontent a{display:block;padding:9px 12px;border-radius:8px;white-space:nowrap}.dropcontent a:hover{background:var(--sage)}.dropdown:hover .dropcontent,.dropdown:focus-within .dropcontent{display:block}.menu-toggle{display:none;background:transparent;border:1px solid var(--line);padding:8px 12px;border-radius:10px;color:var(--forest)}.hero{padding:62px 0 52px}.hero-grid{display:grid;grid-template-columns:1.03fr .97fr;gap:44px;align-items:center}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.13em;font-weight:850;color:var(--soil);font-size:.75rem}.hero h1{font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.02;letter-spacing:-.045em;margin:14px 0 22px;color:var(--forest)}.hero p{font-size:1.12rem;color:#4d5c51;max-width:650px}.hero-image{height:475px;border-radius:30px;overflow:hidden;box-shadow:var(--shadow);background:linear-gradient(135deg,#b8c8a7,#e8dfc9)}.hero-image img{width:100%;height:100%;object-fit:cover}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.button.secondary{background:transparent;color:var(--forest);border:1px solid #b6c3b5}.pill-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.pill{padding:7px 12px;background:#e8ede3;color:var(--forest);border-radius:99px;font-size:.88rem;font-weight:750}.section{padding:62px 0}.section.white{background:#fff}.section-head{max-width:760px;margin-bottom:30px}.section h2,.page-title{font-size:clamp(2rem,3.4vw,3rem);line-height:1.12;letter-spacing:-.03em;color:var(--forest);margin:8px 0 14px}.section-intro{color:var(--muted);font-size:1.05rem;max-width:780px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 22px rgba(28,55,40,.04);display:flex;flex-direction:column}.card img{width:100%;height:190px;object-fit:cover;background:var(--sage)}.card-body{padding:22px;display:flex;flex-direction:column;flex:1}.card h3{color:var(--forest);font-size:1.22rem;margin:0 0 8px}.card p{color:var(--muted);margin:0 0 16px}.card-link{font-weight:850;text-decoration:none;margin-top:auto}.split{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}.split-image{border-radius:26px;overflow:hidden;min-height:330px;background:var(--sage)}.split-image img{width:100%;height:100%;min-height:330px;object-fit:cover}.callout{background:var(--forest);color:#fff;border-radius:28px;padding:34px;display:flex;justify-content:space-between;align-items:center;gap:28px}.callout h2{color:#fff;margin-top:0}.callout p{color:#e4eadf;max-width:720px}.callout .button{background:#fff;color:var(--forest);white-space:nowrap}.page-hero{padding:50px 0 22px}.page-hero .page-title{max-width:900px}.content{max-width:880px}.content h2,.content h3{color:var(--forest)}.content p,.content li{font-size:1.02rem}.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:0;list-style:none}.feature-list li{padding:17px;border-radius:14px;background:#fff;border:1px solid var(--line)}.feature-list li:before{content:"✓";font-weight:900;color:var(--leaf);margin-right:10px}.notice{padding:14px 17px;background:#edf3e8;border-left:4px solid var(--leaf);border-radius:8px;margin:18px 0}.transparency-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.doc-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;gap:14px;align-items:flex-start}.doc-icon{background:var(--sage);padding:11px;border-radius:12px;font-size:1.2rem}.doc-card h3{margin:0;color:var(--forest)}.doc-card p{margin:5px 0 0;color:var(--muted);font-size:.92rem}.form-panel{background:#fff;border:1px solid var(--line);padding:26px;border-radius:22px;box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:750;font-size:.92rem}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd5ca;background:#fff;border-radius:10px;padding:12px 13px;color:var(--ink);font:inherit}.field textarea{min-height:100px}.site-footer{background:#1c3d2e;color:#e9efe7;padding:48px 0 22px}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px}.site-footer h3{color:#fff}.site-footer a{color:#e9efe7}.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:28px;padding-top:17px;font-size:.85rem;color:#c5d2c5}.subnav{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 26px}.subnav a{background:#e8ede3;border-radius:99px;padding:8px 13px;text-decoration:none;font-size:.9rem;font-weight:750}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery img{width:100%;height:245px;object-fit:cover;border-radius:16px;background:var(--sage)}.area-card{padding:23px;border:1px solid var(--line);border-radius:18px;background:white}.area-card h3{margin-top:0;color:var(--forest)}.section-anchor{scroll-margin-top:110px}.login-mock{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;max-width:480px}.login-mock input{display:block;width:100%;padding:12px;border:1px solid #ccd5ca;border-radius:9px;margin:6px 0 14px}.preview-note{font-size:.86rem;color:var(--muted)}
/* Header aggiornato: menu più leggibile, logo e navigazione allineati */
.head-inner{align-items:center;gap:26px;min-height:112px}.brand{flex:0 0 270px;min-width:250px}.brand img{width:78px;height:78px}.brand span{max-width:180px;font-size:1.02rem}.menu{flex:1;max-width:none;gap:6px 15px;justify-content:flex-end;align-content:center}.menu a,.dropbtn{font-size:.91rem;padding:8px 0;line-height:1.3}.dropdown{position:relative}.dropcontent{z-index:25}.dropcontent a{font-size:.9rem;padding:10px 12px}.menu .nav-cta{padding:10px 15px;white-space:nowrap}.dropdown .dropbtn{display:inline-flex;align-items:center;gap:5px}.dropdown:hover .dropcontent,.dropdown:focus-within .dropcontent{display:block}
@media(max-width:1120px){.head-inner{gap:16px}.brand{flex-basis:220px;min-width:220px}.brand img{width:68px;height:68px}.brand span{font-size:.94rem;max-width:145px}.menu{gap:5px 10px}.menu a,.dropbtn{font-size:.83rem}}@media(max-width:850px){.head-inner{min-height:82px}.brand{flex:1;min-width:0}.brand img{width:62px;height:62px}.brand span{font-size:.9rem;max-width:175px}.menu-toggle{display:block}.menu{display:none;position:absolute;top:82px;left:0;right:0;background:var(--cream);padding:18px 22px 22px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:6px;max-height:calc(100vh - 82px);overflow:auto}.menu.open{display:flex}.menu a,.dropbtn{font-size:1rem;text-align:left;padding:9px 8px}.dropcontent{position:static;box-shadow:none;border:0;background:transparent;padding:0 0 5px 15px}.dropdown:hover .dropcontent,.dropdown.mobile-open .dropcontent{display:block}.hero{padding-top:35px}.hero-grid,.split{grid-template-columns:1fr}.hero-image{height:340px;order:-1}.cards{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.callout{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.wrap{width:min(100% - 28px,1180px)}.cards,.feature-list,.transparency-grid,.form-grid,.footer-grid,.gallery{grid-template-columns:1fr}.hero h1{font-size:2.55rem}.hero-image{height:270px}.section{padding:43px 0}.card img{height:190px}.form-panel{padding:18px}.callout{padding:25px}.gallery img{height:250px}}

/* Sottomenu evidenti e realmente apribili con clic, tastiera e touch */
.menu{gap:7px 13px;align-items:center}
.menu>a,.drophead>a,.dropbtn{font-size:.94rem;font-weight:800;white-space:nowrap}
.dropdown{position:relative;display:block}
.drophead{display:flex;align-items:center;gap:2px}
.drophead>a{display:inline-flex;align-items:center;padding:9px 2px;text-decoration:none;color:var(--forest)}
.submenu-toggle{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #cbd7c7;border-radius:8px;background:#edf2e9;color:var(--forest);font-size:1.1rem;font-weight:900;cursor:pointer;transition:transform .15s,background .15s}
.submenu-toggle[aria-expanded="true"]{background:var(--forest);color:#fff;transform:rotate(180deg)}
.dropcontent{display:none;position:absolute;top:calc(100% + 5px);left:0;min-width:255px;max-width:320px;background:#fff;border:1px solid #d6dfd2;border-top:4px solid var(--leaf);border-radius:0 0 14px 14px;padding:9px;box-shadow:0 18px 38px rgba(28,55,40,.18);z-index:50}
.dropdown.open .dropcontent,.dropdown:hover .dropcontent,.dropdown:focus-within .dropcontent{display:block}
.dropcontent a{display:block;white-space:normal;padding:11px 13px;border-radius:8px;font-size:.9rem;line-height:1.35;font-weight:700;color:var(--forest);text-decoration:none}
.dropcontent a:hover,.dropcontent a:focus-visible{background:var(--sage);color:var(--forest);outline:2px solid transparent}
.menu a:focus-visible,.submenu-toggle:focus-visible,.menu-toggle:focus-visible{outline:3px solid var(--soil);outline-offset:3px}
@media(max-width:1120px){.menu{gap:5px 9px}.menu>a,.drophead>a{font-size:.85rem}.submenu-toggle{width:27px;height:27px}}
@media(max-width:850px){.menu{align-items:stretch;gap:4px}.menu>a,.drophead>a{font-size:1rem;padding:11px 8px}.dropdown{width:100%}.drophead{width:100%;justify-content:space-between}.drophead>a{flex:1}.submenu-toggle{width:36px;height:36px;font-size:1.2rem}.dropcontent{position:static;max-width:none;min-width:0;width:100%;border-radius:12px;border-top:3px solid var(--leaf);box-shadow:none;margin:0 0 8px;padding:6px 8px;background:#fff}.dropdown:hover .dropcontent{display:none}.dropdown.open .dropcontent,.dropdown:focus-within .dropcontent{display:block}.dropcontent a{font-size:.97rem;padding:11px 14px;border-bottom:1px solid #edf0ea}.dropcontent a:last-child{border-bottom:0}}


/* NAVIGAZIONE RIPROGETTATA: gerarchia semplice, due fasce, mega-menu puliti */
.site-header{background:rgba(250,249,244,.98);box-shadow:0 5px 22px rgba(36,77,59,.06);border-bottom:1px solid #e0e6dc}
.header-top{background:var(--cream)}
.header-top-inner{min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{flex:0 0 auto;display:flex;align-items:center;gap:15px;min-width:0}
.brand img{width:76px;height:76px;object-fit:contain}
.brand span{max-width:none;font-size:1.02rem;line-height:1.18;letter-spacing:-.015em}
.brand strong{font-weight:850}
.header-actions{display:flex;align-items:center;gap:24px;margin-left:auto}
.utility-link{font-size:.88rem;font-weight:700;color:#4c6252;text-decoration:none}
.utility-link:hover{color:var(--soil)}
.header-cta{display:inline-flex;align-items:center;gap:9px;background:var(--forest);color:#fff;text-decoration:none;border-radius:7px;padding:12px 17px;font-size:.9rem;font-weight:800;letter-spacing:.01em;transition:background .2s}
.header-cta:hover{background:var(--soil);color:#fff}
.nav-band{background:#fff;border-top:1px solid #edf0e9}
.nav-band-inner{display:block}
.menu{display:flex;align-items:stretch;justify-content:flex-start;gap:0;max-width:none;flex-wrap:nowrap;min-height:58px}
.menu>a,.menu .drophead>a{display:flex;align-items:center;min-height:58px;padding:0 17px;font-size:.91rem;line-height:1.2;font-weight:760;color:#2c4f3b;text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent;transition:background .16s,color .16s,border-color .16s}
.menu>a:hover,.menu .drophead>a:hover,.dropdown.open>.drophead>a{background:#f4f7f1;color:var(--forest);border-bottom-color:var(--leaf)}
.menu .nav-home{padding-left:4px;padding-right:20px}
.dropdown{position:relative;display:flex;align-items:stretch}
.drophead{display:flex;align-items:stretch;gap:0}
.drophead>a{padding-right:5px}
.submenu-toggle{width:31px;height:58px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#4e7056;font-size:1rem;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .16s,color .16s}
.submenu-toggle:hover,.submenu-toggle[aria-expanded="true"]{background:#f4f7f1;color:var(--forest);border-bottom-color:var(--leaf)}
.submenu-toggle[aria-expanded="true"]{transform:none}
.dropcontent{display:none;position:absolute;top:calc(100% - 1px);left:0;min-width:290px;width:330px;background:#fff;border:1px solid #e3e9df;border-top:3px solid var(--leaf);border-radius:0 0 12px 12px;padding:12px;box-shadow:0 18px 35px rgba(28,55,40,.14);z-index:40}
.dropdown.open .dropcontent,.dropdown:focus-within .dropcontent{display:block}
.dropdown:hover .dropcontent{display:none}
.dropdown:hover.open .dropcontent{display:block}
.drop-label{padding:7px 12px 10px;color:#8a6a4e;font-size:.68rem;font-weight:850;letter-spacing:.12em}
.dropcontent a{display:block;padding:11px 12px;border-radius:7px;font-size:.92rem;line-height:1.35;font-weight:780;white-space:normal;color:var(--forest);text-decoration:none}
.dropcontent a small{display:block;margin-top:4px;color:#788279;font-size:.78rem;font-weight:500}
.dropcontent a:hover{background:#f1f5ed;color:var(--forest)}
.menu-toggle{display:none}
@media(min-width:851px){
 .dropdown:focus-within .dropcontent{display:block}
 .menu>a:focus-visible,.drophead>a:focus-visible,.submenu-toggle:focus-visible{outline:3px solid #b27b4e;outline-offset:-3px}
}
@media(max-width:1180px) and (min-width:851px){
 .header-top-inner{min-height:84px}
 .brand img{width:66px;height:66px}
 .header-actions{gap:15px}
 .menu>a,.menu .drophead>a{padding-left:11px;padding-right:11px;font-size:.84rem}
 .menu .nav-home{padding-left:0;padding-right:14px}
 .submenu-toggle{width:25px}
}
@media(max-width:850px){
 .header-top-inner{min-height:82px;gap:12px}
 .brand{gap:10px}
 .brand img{width:58px;height:58px}
 .brand span{font-size:.88rem;max-width:175px}
 .header-actions{display:none}
 .menu-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #cad5c7;background:#fff;color:var(--forest);font-weight:800;border-radius:8px;padding:11px 13px;cursor:pointer}
 .nav-band{border-top:0}
 .nav-band-inner{width:100%;margin:0}
 .menu{display:none;position:absolute;top:82px;left:0;right:0;min-height:0;background:#fff;box-shadow:0 18px 28px rgba(28,55,40,.14);padding:10px 18px 22px;flex-direction:column;align-items:stretch;gap:0;max-height:calc(100vh - 82px);overflow:auto;z-index:45}
 .menu.open{display:flex}
 .menu>a,.menu .drophead>a{min-height:48px;padding:12px 9px;font-size:.98rem;border-bottom:1px solid #edf0e9}
 .menu .nav-home{padding-left:9px}
 .dropdown{display:block;width:100%}
 .drophead{width:100%;align-items:center}
 .drophead>a{flex:1}
 .submenu-toggle{height:48px;width:42px;border-bottom:1px solid #edf0e9;border-radius:0;font-size:1.2rem}
 .dropcontent,.dropdown:hover .dropcontent{position:static;width:100%;min-width:0;border:0;border-left:3px solid var(--leaf);border-radius:0;background:#f8faf6;box-shadow:none;margin:0 0 8px;padding:5px 8px;display:none}
 .dropdown.open .dropcontent,.dropdown:focus-within .dropcontent{display:block}
 .drop-label{padding:8px 12px}
 .dropcontent a{padding:11px 12px;border-bottom:1px solid #e9eee5}
 .dropcontent a:last-child{border-bottom:0}
}


/* Navigazione a livello unico: logo e tutte le voci sulla stessa fascia */
.single-level-header{position:sticky;top:0;z-index:50;background:rgba(247,245,237,.98);backdrop-filter:blur(12px);border-bottom:1px solid rgba(36,77,59,.14)}
.single-level-header .head-inner{display:flex;align-items:center;justify-content:flex-start;gap:20px;min-height:94px;width:min(1600px,calc(100% - 28px))}
.single-level-header .brand{flex:0 0 215px;min-width:215px;gap:10px}
.single-level-header .brand img{width:64px;height:64px}
.single-level-header .brand span{font-size:.87rem;max-width:145px;line-height:1.2}
.single-level-menu{display:flex;align-items:center;justify-content:flex-start;flex:1;min-width:0;max-width:none;flex-wrap:nowrap;gap:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin;scrollbar-color:#bdcbb7 transparent;padding:8px 0}
.single-level-menu>a{display:inline-flex;align-items:center;flex:0 0 auto;font-size:.735rem;font-weight:780;padding:9px 7px;text-decoration:none;color:var(--forest);border-radius:7px;line-height:1.15;white-space:nowrap}
.single-level-menu>a:hover{background:#e8ede3;color:var(--soil)}
.single-level-menu>a.nav-cta{background:var(--forest);color:#fff;border-radius:7px;padding:10px 11px}
.single-level-menu>a.nav-cta:hover{background:var(--soil)}
.single-level-menu>a.nav-5x1000{background:#e8ede3;color:var(--forest);font-weight:900;border:1px solid #cad7c4}
.single-level-menu>a.nav-5x1000:hover{background:#d9e5d1}
.single-level-header .menu-toggle{display:none}
.social-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.social-link{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid rgba(255,255,255,.28);border-radius:999px;text-decoration:none;font-size:.9rem;font-weight:750}
.social-link:hover{background:rgba(255,255,255,.12);color:#fff}
.mille-card{background:#f1f4eb;border:1px solid #d7e1d0;border-radius:24px;padding:clamp(24px,4vw,42px);display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}
.mille-card h2{margin-top:6px;color:var(--forest)}
.mille-number{background:var(--forest);color:#fff;padding:18px 22px;border-radius:16px;text-align:center;min-width:170px}
.mille-number strong{display:block;font-size:1.6rem;letter-spacing:.03em}
.mille-number span{font-size:.78rem;opacity:.9}
.mille-note{font-size:.85rem;color:var(--muted);margin:14px 0 0}
@media(max-width:1350px) and (min-width:851px){.single-level-header .head-inner{gap:12px}.single-level-header .brand{flex-basis:175px;min-width:175px}.single-level-header .brand img{width:54px;height:54px}.single-level-header .brand span{font-size:.78rem}.single-level-menu>a{font-size:.68rem;padding:8px 5px}.single-level-menu>a.nav-cta{padding:9px 8px}}
@media(max-width:850px){.single-level-header .head-inner{min-height:80px;gap:12px;position:relative}.single-level-header .brand{flex:1;min-width:0}.single-level-header .brand img{width:58px;height:58px}.single-level-header .brand span{font-size:.88rem;max-width:180px}.single-level-header .menu-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #cbd5ca;background:#fff;color:var(--forest);font-weight:800;border-radius:8px;padding:11px 13px;cursor:pointer}.single-level-menu{display:none;position:absolute;top:80px;left:0;right:0;background:var(--cream);padding:12px 16px 18px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:3px;max-height:calc(100vh - 80px);overflow:auto;white-space:normal}.single-level-menu.open{display:flex}.single-level-menu>a{display:flex;width:100%;font-size:.98rem;padding:11px 10px;white-space:normal;border-bottom:1px solid #e5e9e0}.single-level-menu>a.nav-cta,.single-level-menu>a.nav-5x1000{justify-content:flex-start;margin-top:4px}.mille-card{grid-template-columns:1fr}.mille-number{justify-self:start}}


/* MENU TEMATICO: pochi gruppi chiari, dropdown di un solo livello */
.thematic-header{background:rgba(247,245,237,.98);box-shadow:0 5px 22px rgba(28,55,40,.06)}
.thematic-header .head-inner{min-height:96px;gap:20px}
.thematic-header .brand{flex:0 0 250px;gap:12px}
.thematic-header .brand img{width:70px;height:70px}
.thematic-header .brand span{font-size:.94rem;max-width:165px;line-height:1.18}
.thematic-menu{flex:1;max-width:none;gap:4px;flex-wrap:nowrap;justify-content:flex-end;align-self:stretch}
.thematic-menu .top-link,.thematic-menu .dropbtn{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 8px;font-size:.78rem;line-height:1.15;font-weight:780;white-space:nowrap;color:var(--forest);border:0;border-bottom:3px solid transparent;background:transparent;text-decoration:none}
.thematic-menu .top-link:hover,.thematic-menu .dropdown.open .top-link{background:#eef3e9;border-bottom-color:var(--leaf);color:var(--forest)}
.thematic-menu .drophead{display:flex;align-items:stretch}
.thematic-menu .drophead .top-link{padding-right:2px}
.thematic-menu .dropbtn{width:24px;padding:0;font-size:1rem;cursor:pointer;border-radius:0}
.thematic-menu .dropbtn:hover,.thematic-menu .dropbtn[aria-expanded="true"]{background:#eef3e9;border-bottom-color:var(--leaf)}
.thematic-menu .nav-5x1000{color:#875b35;font-weight:900}
.thematic-menu .nav-cta{align-self:center;white-space:nowrap;padding:10px 12px;font-size:.78rem;border-radius:8px;flex:0 0 auto}
.thematic-menu .dropdown{position:relative;display:flex;align-items:stretch}
.thematic-menu .dropcontent{display:none;position:absolute;top:100%;left:0;z-index:50;width:300px;min-width:270px;white-space:normal;padding:12px;background:#fff;border:1px solid #e1e7dd;border-top:3px solid var(--leaf);border-radius:0 0 12px 12px;box-shadow:0 18px 34px rgba(28,55,40,.15)}
.thematic-menu .dropdown.open .dropcontent,.thematic-menu .dropdown:focus-within .dropcontent{display:block}
.thematic-menu .drop-label{display:block;padding:7px 11px 9px;color:var(--soil);font-size:.67rem;font-weight:900;letter-spacing:.1em}
.thematic-menu .dropcontent a{display:block;padding:10px 11px;border-radius:7px;white-space:normal;font-size:.87rem;font-weight:780;line-height:1.3;color:var(--forest);text-decoration:none}
.thematic-menu .dropcontent a small{display:block;margin-top:3px;font-size:.75rem;font-weight:500;color:var(--muted)}
.thematic-menu .dropcontent a:hover{background:#f0f4ec;color:var(--forest)}
@media(max-width:1250px) and (min-width:851px){
 .thematic-header .head-inner{gap:10px}
 .thematic-header .brand{flex-basis:205px;gap:8px}
 .thematic-header .brand img{width:58px;height:58px}
 .thematic-header .brand span{font-size:.83rem}
 .thematic-menu{gap:0}
 .thematic-menu .top-link,.thematic-menu .dropbtn{padding-left:5px;padding-right:5px;font-size:.72rem}
 .thematic-menu .drophead .top-link{padding-right:1px}
 .thematic-menu .dropbtn{width:19px}
 .thematic-menu .nav-cta{padding:9px 8px;font-size:.71rem}
}
@media(max-width:850px){
 .thematic-header .head-inner{min-height:80px;position:relative;gap:10px}
 .thematic-header .brand{flex-basis:auto;gap:9px}
 .thematic-header .brand img{width:56px;height:56px}
 .thematic-header .brand span{font-size:.84rem;max-width:155px}
 .thematic-header .menu-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #cbd6c7;background:#fff;color:var(--forest);font-size:.9rem;font-weight:800;padding:10px 12px;border-radius:8px;cursor:pointer}
 .thematic-menu{display:none;position:absolute;top:80px;left:-20px;right:-20px;z-index:60;max-height:calc(100vh - 80px);overflow:auto;background:#fff;padding:8px 18px 18px;box-shadow:0 18px 30px rgba(28,55,40,.14);flex-direction:column;align-items:stretch;gap:0}
 .thematic-menu.open{display:flex}
 .thematic-menu .top-link,.thematic-menu .dropbtn{min-height:46px;font-size:.95rem;padding:11px 9px;justify-content:flex-start;border-bottom:1px solid #e9eee6}
 .thematic-menu .drophead{width:100%;align-items:center}
 .thematic-menu .drophead .top-link{flex:1}
 .thematic-menu .dropbtn{width:44px;justify-content:center;font-size:1.1rem}
 .thematic-menu .dropdown{display:block}
 .thematic-menu .dropcontent{position:static;width:100%;min-width:0;border:0;border-left:3px solid var(--leaf);border-radius:0;background:#f7f9f5;box-shadow:none;margin:0 0 7px;padding:6px;display:none}
 .thematic-menu .dropdown.open .dropcontent,.thematic-menu .dropdown:focus-within .dropcontent{display:block}
 .thematic-menu .dropcontent a{padding:11px 10px;border-bottom:1px solid #e7ece3}
 .thematic-menu .nav-cta{align-self:stretch;justify-content:center;margin-top:10px}
}


/* Rifinitura grafica navigazione: pulsanti sobri e freccia sottile */
.thematic-menu .top-link{
  border-radius:7px;
  padding-left:10px!important;
  padding-right:10px!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.thematic-menu .top-link:hover,
.thematic-menu .dropdown.open .top-link{
  background:#eaf0e5;
  box-shadow:inset 0 0 0 1px #dbe5d5;
  border-bottom-color:transparent;
}
.thematic-menu .dropbtn{
  position:relative;
  width:22px;
  min-width:22px;
  margin-left:2px;
  padding:0!important;
  font-size:0!important;
  border:0!important;
  border-radius:6px;
  color:transparent;
  background:transparent;
}
.thematic-menu .dropbtn::before{
  content:"";
  display:block;
  width:7px;
  height:7px;
  border-right:1.7px solid #55735a;
  border-bottom:1.7px solid #55735a;
  transform:rotate(45deg) translate(-1px,-1px);
  transition:transform .18s ease,border-color .18s ease;
}
.thematic-menu .dropbtn:hover,
.thematic-menu .dropbtn[aria-expanded="true"]{
  background:#eaf0e5;
}
.thematic-menu .dropbtn[aria-expanded="true"]::before{
  transform:rotate(225deg) translate(-1px,-1px);
  border-color:#244d3b;
}
.thematic-menu .nav-5x1000{
  color:#875b35!important;
  border-radius:7px;
  background:#f4eee4!important;
  box-shadow:inset 0 0 0 1px #eadbca;
}
.thematic-menu .nav-5x1000:hover{background:#ede1d1!important}
.thematic-menu .nav-cta{
  border-radius:7px!important;
  padding:10px 13px!important;
  background:#244d3b!important;
  box-shadow:0 3px 0 #183829;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.thematic-menu .nav-cta:hover{
  background:#32664d!important;
  transform:translateY(-1px);
  box-shadow:0 4px 0 #183829;
}
.thematic-menu .dropcontent{
  margin-top:5px;
  border-top:2px solid #6f8f52;
  border-radius:10px;
  padding:10px;
  box-shadow:0 16px 34px rgba(28,55,40,.13);
}
.thematic-menu .dropcontent a{
  border-radius:7px;
  transition:background .15s ease,padding-left .15s ease;
}
.thematic-menu .dropcontent a:hover{padding-left:15px}
@media(max-width:1250px) and (min-width:851px){
 .thematic-menu .dropbtn{width:19px;min-width:19px}
 .thematic-menu .top-link{padding-left:6px!important;padding-right:6px!important}
}
@media(max-width:850px){
 .thematic-menu .dropbtn{width:42px;min-width:42px;border-left:1px solid #e3e9df!important;border-radius:7px}
 .thematic-menu .dropbtn::before{width:8px;height:8px}
 .thematic-menu .top-link:hover,.thematic-menu .dropdown.open .top-link{box-shadow:none}
 .thematic-menu .nav-cta{box-shadow:0 3px 0 #183829}
}



/* Pannello di consenso cookie */
.cookie-banner[hidden],.cookie-modal[hidden]{display:none!important}
.cookie-banner{position:fixed;z-index:1000;left:20px;right:20px;bottom:20px;max-width:1160px;margin:auto;background:#fff;border:1px solid #dce4d7;border-top:5px solid var(--leaf);border-radius:16px;box-shadow:0 18px 55px rgba(22,45,31,.24);padding:22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cookie-copy{max-width:720px}.cookie-copy strong{font-size:1.05rem;color:var(--forest)}.cookie-copy p{margin:6px 0 8px;font-size:.9rem;color:#5b685e}.cookie-copy a{font-size:.88rem;font-weight:750}
.cookie-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cookie-button{font:inherit;font-size:.86rem;font-weight:800;border:1px solid #cbd7c6;border-radius:8px;padding:11px 13px;cursor:pointer;white-space:nowrap}.cookie-button.primary{background:var(--forest);color:#fff;border-color:var(--forest)}.cookie-button.primary:hover{background:var(--soil);border-color:var(--soil)}.cookie-button.secondary{background:#fff;color:var(--forest)}.cookie-button.secondary:hover{background:#f1f5ed}
.cookie-modal{position:fixed;z-index:1001;inset:0;background:rgba(17,34,23,.56);display:flex;align-items:center;justify-content:center;padding:18px}.cookie-modal-card{position:relative;width:min(100%,620px);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:30px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.cookie-modal-card h2{color:var(--forest);margin:8px 0}.cookie-close{position:absolute;right:17px;top:12px;border:0;background:transparent;font-size:1.8rem;cursor:pointer;color:var(--forest)}.cookie-option{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.cookie-option p{margin:4px 0 0;color:var(--muted);font-size:.9rem}.switch{position:relative;display:inline-block;width:44px;height:25px;flex:0 0 auto}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#c9d1c7;border-radius:99px;cursor:pointer;transition:.2s}.switch span:before{content:"";position:absolute;height:19px;width:19px;left:3px;top:3px;background:white;border-radius:50%;transition:.2s;box-shadow:0 1px 3px #888}.switch input:checked+span{background:var(--leaf)}.switch input:checked+span:before{transform:translateX(19px)}.switch input:disabled+span{opacity:.65;cursor:not-allowed}
@media(max-width:800px){.cookie-banner{left:10px;right:10px;bottom:10px;display:block;padding:18px}.cookie-actions{margin-top:13px}.cookie-button{flex:1}.cookie-modal-card{padding:24px 18px}}
