/*
Theme Name: Aquae Virtus
Description: Tema di Aquae Virtus – Acquasanta Terme. Benessere, Identità, Comunità.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: aquaevirtus
*/

/* ---------- Font (in locale, solo alfabeto latino ed esteso) ---------- */
@font-face {font-family: 'Noto Sans'; font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; src: url(assets/fonts/noto-sans-italic-100-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Noto Sans'; font-style: italic; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; src: url(assets/fonts/noto-sans-italic-100-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Noto Sans'; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; src: url(assets/fonts/noto-sans-normal-100-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Noto Sans'; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; src: url(assets/fonts/noto-sans-normal-100-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Philosopher'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/philosopher-italic-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Philosopher'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/philosopher-italic-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Philosopher'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/philosopher-normal-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Philosopher'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/philosopher-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Philosopher'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/philosopher-normal-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Philosopher'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/philosopher-normal-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---------- Base ---------- */
html{scroll-behavior:smooth}
body{margin:0;background:#F9FCFF}
a{color:#082530}a:hover{color:#3A8CCB}

/* ---------- Animazioni di caricamento ---------- */
@keyframes tsFade{from{opacity:0}to{opacity:1}}
@keyframes tsHero{from{transform:scale(1.05)}to{transform:scale(1)}}
@keyframes tsWord{from{opacity:0;transform:translateY(10px);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
@keyframes tsPre{to{transform:translateY(-100%)}}
@keyframes tsPreText{0%{opacity:0;transform:translateY(12px)}35%,75%{opacity:1;transform:none}100%{opacity:0}}
.ts-pre{position:fixed;inset:0;z-index:50;background:#F9FCFF;display:flex;align-items:center;justify-content:center;pointer-events:none;animation:tsPre .9s cubic-bezier(.76,0,.24,1) 1.2s both}
.ts-pre span{font-family:'Philosopher',sans-serif;font-size:48px;font-weight:500;letter-spacing: -0.58px;color:#082530;animation:tsPreText 1.5s ease both}
.ts-hero-img{animation:tsHero 1.5s cubic-bezier(.12,.23,.5,1) 1s both}
.home .ts-hero-img{animation-delay:.1s}
.ts-load{animation:tsFade 1.5s cubic-bezier(.22,1,.36,1) var(--d,1s) both}
.ts-word{display:inline-block;animation:tsWord 1.5s cubic-bezier(.22,1,.36,1) calc(1s + var(--i,0) * .08s) both}

/* ---------- Comparsa allo scroll ---------- */
.ts-js [data-reveal]{opacity:0;transition:opacity 1.5s cubic-bezier(.22,1,.36,1) var(--d,0s),transform 1.5s cubic-bezier(.22,1,.36,1) var(--d,0s),filter 1.5s cubic-bezier(.22,1,.36,1) var(--d,0s)}
.ts-js [data-reveal="blur"]{transform:translateY(10px);filter:blur(10px)}
.ts-js [data-reveal][data-in]{opacity:1;transform:none;filter:none}

/* ---------- Bottoni e card ---------- */
.ts-btn .ts-roll{display:flex;flex-direction:column;height:19px;overflow:hidden;line-height:19px}
.ts-btn .ts-roll span{transition:transform .5s cubic-bezier(.22,1,.36,1)}
.ts-btn:hover .ts-roll span{transform:translateY(-100%)}
.ts-card .ts-img{transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
.ts-card:hover .ts-img{transform:scale(1.05)}
.ts-card .ts-quote{opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
.ts-card:hover .ts-quote{opacity:1;transform:none}

/* ---------- Bottone (av_button) ---------- */
.av-bottone,.av-bottone:hover,.av-pagina .wp-block-button__link{display:inline-flex;align-items:center;height:44px;padding:0 16px;border-radius:8px;background:#3A8CCB;color:#EEF5FC;font-size:16px;font-weight:500;text-decoration:none}
.av-bottone-chiaro,.av-bottone-chiaro:hover{background:#A7CCEE;color:#082530}
.av-bottone-bianco,.av-bottone-bianco:hover{background:#EEF5FC;color:#082530}

/* Titoletto di sezione o di card (24px) */
.av-titoletto{margin:0;font-family:'Philosopher',sans-serif;font-weight:500;font-size:24px;line-height:31.2px}

/* ---------- Elementi di pagina ---------- */
@keyframes tsUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.ts-up{animation:tsUp 1.2s cubic-bezier(.22,1,.36,1) var(--d,1.2s) both}
@keyframes tsCard{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.ts-filtered{animation:tsCard .7s cubic-bezier(.22,1,.36,1) var(--d,0s) both}
.ts-tab{transition:background .3s ease,color .3s ease}
.ts-tab:hover{background:#D6E6F5}
@keyframes tsZoom{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.ts-lightbox{animation:tsFade .35s ease both}
.ts-lightbox img{animation:tsZoom .5s cubic-bezier(.22,1,.36,1) both}
@keyframes tsPin{from{opacity:0;transform:translate(-12px,-30%)}to{opacity:1;transform:translate(-12px,-50%)}}
.ts-pin{animation:tsPin 1s cubic-bezier(.22,1,.36,1) var(--d,1.4s) both}
.ts-pin span{transition:background .3s ease,transform .3s ease}
.ts-pin:hover span{background:#2C73AA;transform:translateY(-2px)}
@keyframes tsBig{from{opacity:0;transform:translateY(30px);filter:blur(16px)}to{opacity:1;transform:none;filter:none}}
@keyframes tsFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.ts-big{animation:tsBig 1.6s cubic-bezier(.22,1,.36,1) .4s both,tsFloat 6s ease-in-out 2.2s infinite}
.ts-toc a{transition:color .3s ease,padding .3s ease}
.ts-toc a:hover{color:#3A8CCB;padding-left:6px}

/* ---------- Corpo dei contenuti (testo scritto nell'editor) ---------- */
.av-corpo{display:flex;flex-direction:column;gap:16px}
.av-corpo>*{margin:0}
.av-corpo h2{margin-top:40px;font-family:'Philosopher',sans-serif;font-weight:500;font-size:24px;line-height:31.2px}
.av-corpo h2:first-child{margin-top:0}
.av-corpo h3:where(:not(.av-correlati *)){margin-top:16px;font-family:'Philosopher',sans-serif;font-weight:500;font-size:20px;line-height:26px}
.av-corpo p:where(:not(.av-correlati *)){font-size:16px;line-height:24px;color:#47606B}
.av-corpo strong{color:#082530;font-weight:500}
.av-corpo ul{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px 24px;margin-top:4px}
.av-corpo li{display:flex;align-items:center;gap:8px;font-size:16px;line-height:22.4px;color:#082530}
.av-corpo li::before{content:"";flex-shrink:0;width:24px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347606B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E") no-repeat center/24px}
.av-corpo ol{padding-left:20px;font-size:16px;line-height:24px;color:#47606B}
.av-corpo a{color:#3A8CCB}
.av-corpo img{max-width:100%;height:auto;border-radius:8px}

/* ---------- Corpo delle pagine (blocchi standard e del tema) ---------- */
.av-pagina{display:contents}
.av-pagina>*{margin:0}
.av-pagina h2{margin:0;font-family:'Philosopher',sans-serif;font-weight:400;font-size:36px;line-height:39.6px;letter-spacing:-0.43px}
.av-pagina h2.is-style-grande{font-size:48px;line-height:52.8px;letter-spacing:-0.58px}
.av-pagina p{margin:0;font-size:16px;line-height:22.4px;color:#47606B}
.av-pagina p.is-style-occhiello{font-size:14px;line-height:16.8px;color:#082530}
.av-pagina p.is-style-occhiello::before{content:"› "}
.av-pagina .wp-block-group{display:flex;flex-direction:column;gap:16px}
.av-pagina .wp-block-group__inner-container{display:contents}
.av-pagina .wp-block-group>*,.av-pagina .wp-block-group__inner-container>*{margin:0}
.av-pagina p.is-style-frase{font-family:'Philosopher',sans-serif;font-size:24px;line-height:32px;color:#082530}
.av-pagina .wp-block-group.is-style-intestazione{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px}
.av-pagina .is-style-intestazione .wp-block-group{gap:8px}
.av-pagina .wp-block-group.is-style-intestazione h2{max-width:420px}
.av-pagina .is-style-intestazione>.wp-block-group__inner-container>p,.av-pagina .is-style-intestazione>p{max-width:420px;text-align:right}
.av-pagina .wp-block-group.is-style-sezione{margin-top:72px;gap:40px}
.av-pagina .wp-block-media-text{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.av-pagina .wp-block-media-text__content{flex:999 1 520px;padding:0;display:flex;flex-direction:column;gap:16px}
.av-pagina .wp-block-media-text__content>*{margin:0}
.av-pagina .wp-block-media-text__media{flex:1 1 360px;height:440px;margin:0;border-radius:8px;overflow:hidden;background:#0E3340}
.av-pagina .wp-block-media-text__media img{width:100%;height:100%;object-fit:cover;display:block}
.av-pagina .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media{order:2}
.av-pagina .wp-block-image{height:560px;border-radius:8px;overflow:hidden;background:#0E3340}
.av-pagina .wp-block-image img{width:100%;height:100%;object-fit:cover;display:block}
.av-legale{display:flex;flex-direction:column;gap:10px}
.av-legale>*{margin:0;font-size:16px;line-height:25px;color:#47606B}
@media (max-width:767px){.av-pagina .wp-block-image{height:400px}.av-pagina .is-style-intestazione p{text-align:left!important}.av-pagina .wp-block-group.is-style-sezione{margin-top:32px}.av-pagina h2.is-style-grande{font-size:34px;line-height:38px}.av-pagina h2{font-size:28px;line-height:31px}}

/* ---------- Moduli (Contact Form 7) ---------- */
.wpcf7-form{display:flex;flex-direction:column;gap:14px}
.wpcf7-form label,.av-modulo-campo{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#082530}
.av-modulo-riga{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wpcf7-form-control-wrap{display:block}
.wpcf7-text,.wpcf7-email,.wpcf7-tel,.wpcf7-number,.wpcf7-date,.wpcf7-select,.wpcf7-textarea{box-sizing:border-box;width:100%;height:44px;padding:0 12px;border:1px solid #D6E6F5;border-radius:8px;background:#FFFFFF;font:inherit;font-size:16px;font-weight:300;color:#082530;transition:border-color .3s ease,box-shadow .3s ease}
.wpcf7-select{padding:0 10px}
.wpcf7-textarea{height:auto;padding:10px 12px;resize:vertical}
.wpcf7-form-control:focus{outline:none;border-color:#3A8CCB;box-shadow:0 0 0 3px rgba(58,140,203,.15)}
.wpcf7-radio,.wpcf7-checkbox{display:flex;flex-wrap:wrap;gap:8px}
.wpcf7-list-item{margin:0}
.wpcf7-list-item label{flex-direction:row;align-items:center;gap:8px;padding:10px 12px;border:1px solid #D6E6F5;border-radius:8px;background:#FFFFFF;font-size:15px;cursor:pointer}
.wpcf7-acceptance .wpcf7-list-item label{padding:0;border:0;background:none;font-size:13px;color:#47606B}
.wpcf7-form .ts-btn,.wpcf7-submit{align-self:flex-start;height:44px;padding:0 16px;border:0;border-radius:8px;background:#3A8CCB;color:#EEF5FC;font:inherit;font-size:16px;font-weight:500;cursor:pointer}
.wpcf7-not-valid-tip{margin-top:4px;font-size:13px;color:#B3261E}
.wpcf7-form .wpcf7-response-output{margin:0;padding:12px 14px;border:1px solid #A7CCEE;border-radius:8px;background:#FFFFFF;font-size:14px}
.wpcf7-form.invalid .wpcf7-response-output,.wpcf7-form.failed .wpcf7-response-output{border-color:#E8B4B0}
.wpcf7-form.sent .wpcf7-response-output{border-color:#3A8CCB}
.wpcf7-spinner{margin:0 0 0 8px}
@media (max-width:520px){.av-modulo-riga{grid-template-columns:minmax(0,1fr)}}

/* ---------- Mappa interattiva (inc/mappa.php, assets/js/mappa.js), come in Tessuinum ---------- */
.av-mappa-vera__filtri{margin-bottom:16px}
.av-filtro{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:8px;border:0;cursor:pointer;font:inherit;font-size:15px;font-weight:500;background:#EEF5FC;color:#082530;transition:background .3s ease,color .3s ease}
.av-filtro[aria-pressed="true"]{background:#3A8CCB;color:#EEF5FC}
.av-filtro[aria-pressed="false"]{opacity:.65}
.av-mappa-vera__conta{font-size:13px;opacity:.7}
.av-mappa-vera__mappa{height:680px;border-radius:8px;overflow:hidden;background:#EEF5FC}
.av-segno{width:10px;height:10px;border-radius:999px;border:2px solid currentColor}
.av-segno--frazione{background:#A7CCEE;color:#3A8CCB}
.av-segno--punto{background:#0E3340;color:#0E3340}
.av-segno--evento{background:#D9895B;color:#D9895B}
.av-filtro[aria-pressed="true"] .av-segno{border-color:#EEF5FC}
.av-filtro[aria-pressed="false"] .av-segno{background:transparent}
.av-segnaposto{display:block;padding:0;border:0;background:none;font:inherit;cursor:pointer}
.av-segnaposto[hidden]{display:none}
.av-segnaposto--frazione{z-index:1}/* le etichette delle frazioni sopra i punti vicini */
.av-segnaposto--evento{z-index:2}/* gli eventi stanno sul punto della loro frazione: sopra l'etichetta */
.av-mappa-popup{z-index:3}
.av-segnaposto--frazione span{display:inline-flex;align-items:center;gap:6px;padding:5px 9px 5px 7px;border-radius:8px;background:#3A8CCB;color:#EEF5FC;font-size:13px;font-weight:500;white-space:nowrap;box-shadow:0 2px 8px rgba(8,37,48,.2);transition:background .3s ease}
.av-segnaposto--frazione span::before{content:"";width:8px;height:8px;border-radius:999px;background:#A7CCEE}
.av-segnaposto--frazione:hover span{background:#2C73AA}
.av-segnaposto--punto,.av-segnaposto--evento{width:16px;height:16px;border:2px solid #EEF5FC;border-radius:999px;background:#0E3340;box-shadow:0 1px 6px rgba(8,37,48,.3);transition:width .2s ease,height .2s ease}
.av-segnaposto--evento{background:#D9895B}
.av-segnaposto--punto:hover,.av-segnaposto--evento:hover{width:20px;height:20px}
.av-segnaposto:focus-visible{outline:2px solid #3A8CCB;outline-offset:2px;border-radius:8px}
.av-mappa-popup .maplibregl-popup-content{padding:0;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(8,37,48,.18)}
.av-mappa-popup .maplibregl-popup-close-button{width:28px;height:28px;margin:6px;border-radius:999px;background:rgba(249,252,255,.9);color:#082530;font-size:18px;line-height:1}
.av-mappa-scheda{display:block;color:#082530;text-decoration:none}
.av-mappa-scheda img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.av-mappa-scheda__testo{display:flex;flex-direction:column;gap:4px;padding:12px 16px 14px}
.av-mappa-scheda__testo strong{font-family:'Philosopher',sans-serif;font-size:18px;font-weight:700;line-height:1.2}
.av-mappa-scheda__tipo{color:#47606B;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.av-mappa-scheda__vai{margin-top:4px;color:#3A8CCB;font-size:14px;font-weight:500}
.av-mappa-scheda:hover .av-mappa-scheda__vai{text-decoration:underline}
@media (max-width:767px){.av-mappa-vera__mappa{height:min(680px,75vh)}}

/* ---------- Menu ---------- */
.ts-links .ts-special{font-style:italic!important}
.ts-burger{display:none;position:relative;width:44px;height:44px;margin-right:-10px;padding:0;border:0;background:transparent;cursor:pointer}
.ts-burger span{position:absolute;left:11px;right:11px;height:1.5px;border-radius:2px;background:currentColor;transition:transform .4s cubic-bezier(.22,1,.36,1)}
.ts-burger span:first-child{transform:translateY(-4px)}
.ts-burger span:last-child{transform:translateY(4px)}
.ts-burger[aria-expanded="true"] span:first-child{transform:rotate(45deg)}
.ts-burger[aria-expanded="true"] span:last-child{transform:rotate(-45deg)}
.ts-burger:focus-visible,.ts-links a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:6px}
@keyframes tsMenu{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (max-width:767px){
.ts-nav{min-height:72px!important}
.ts-burger{display:block}
.ts-links{display:none!important}
.ts-links[data-open="si"]{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:0!important;width:calc(100% + 32px);margin:0 -16px;padding:8px 16px 24px;box-sizing:border-box;background:var(--panel);animation:tsMenu .45s cubic-bezier(.22,1,.36,1) both}
.ts-links[data-open="si"] a{width:100%;padding:14px 0;font-family:'Philosopher',sans-serif;font-size:28px!important;font-weight:400!important;letter-spacing: -0.34px;border-bottom:1px solid color-mix(in srgb,currentColor 15%,transparent)}
}

/* ---------- Movimento ridotto ---------- */
[data-motion="off"] *,[data-motion="off"] *::before{animation:none!important;transition:none!important}
[data-motion="off"] .ts-pre{display:none}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.ts-pre{display:none}.ts-js [data-reveal]{opacity:1;transform:none;filter:none}}

/* ---------- Stili ricorrenti (erano stili inline; "body" li fa prevalere come prima sulle regole generiche) ---------- */
body .av-chip{padding: 8px 12px;border-radius: 8px;background: rgba(255, 255, 255, 0.12);backdrop-filter: blur(5px);font-size: 16px;font-weight: 500}
body .av-chip-icona{display: inline-flex;align-items: center;gap: 4px;padding: 8px 12px;border-radius: 8px;background: rgba(255, 255, 255, 0.1);backdrop-filter: blur(5px);color: #EEF5FC;font-size: 16px;font-weight: 500}
body .av-chip-piccolo{padding: 8px 12px;border-radius: 8px;background: rgba(255, 255, 255, 0.12);backdrop-filter: blur(5px);font-size: 14px;font-weight: 500}
body .av-cifra{font-family: 'Philosopher', sans-serif;font-size: 36px;line-height: 39.6px;letter-spacing: -0.43px}
body .av-col-16{display: flex;flex-direction: column;gap: 16px}
body .av-col-2{display: flex;flex-direction: column;gap: 2px}
body .av-col-20{display: flex;flex-direction: column;gap: 20px}
body .av-col-24{display: flex;flex-direction: column;gap: 24px}
body .av-col-32{display: flex;flex-direction: column;gap: 32px}
body .av-col-4{display: flex;flex-direction: column;gap: 4px}
body .av-col-8{display: flex;flex-direction: column;gap: 8px}
body .av-col-destra{display: flex;flex-direction: column;align-items: flex-end;gap: 24px;max-width: 420px}
body .av-colonna-principale{flex: 999 1 560px;min-width: 0;display: flex;flex-direction: column;gap: 56px}
body .av-colonne{display: flex;flex-wrap: wrap;gap: 64px;align-items: flex-start}
body .av-contenitore{width: 100%;max-width: 1266px;display: flex;flex-direction: column;gap: 48px}
body .av-contenitore-scheda{width: 100%;max-width: 1266px;display: flex;flex-direction: column;gap: 80px;padding: 28px 0 120px}
body .av-contenitore-schede{width: 100%;max-width: 1266px;display: flex;flex-direction: column;gap: 56px;padding: 80px 0 120px}
body .av-copri{position: absolute;inset: 0;width: 100%;height: 100%;object-fit: cover}
body .av-dida{font-size: 14px;color: #47606B}
body .av-dida-12{font-size: 12px;color: #47606B}
body .av-etichette{position: relative;display: flex;flex-wrap: wrap;gap: 8px}
body .av-fascia{display: flex;flex-direction: column;align-items: center;padding: 0 32px}
body .av-fascia-centro{display: flex;justify-content: center;padding: 0 32px}
body .av-griglia-300{display: grid;grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));gap: 16px}
body .av-griglia-340{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));gap: 16px}
body .av-griglia-380{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));gap: 16px}
body .av-griglia-520{display: grid;grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));gap: 24px}
body .av-img-piena{width: 100%;height: 100%;object-fit: cover;display: block}
body .av-intro{display: flex;flex-direction: column;gap: 16px;max-width: 720px}
body .av-occhiello{margin: 0;font-size: 14px;line-height: 16.8px}
body .av-pieno{position: absolute;inset: 0;width: 100%;height: 100%}
body .av-prezzo{display: inline-flex;align-items: baseline}
body .av-punto{width: 8px;height: 8px;border-radius: 999px;background: #A7CCEE}
body .av-riga-8{display: flex;flex-wrap: wrap;gap: 8px}
body .av-riga-fine{display: flex;flex-wrap: wrap;justify-content: space-between;align-items: flex-end;gap: 24px}
body .av-riga-inizio{display: flex;flex-wrap: wrap;justify-content: space-between;align-items: flex-start;gap: 24px}
body .av-riquadro-foto{border-radius: 8px;overflow: hidden;display: block}
body .av-sezione{display: flex;justify-content: center;padding: 60px 32px}
body .av-tessera{background: #EEF5FC;border-radius: 8px;padding: 16px;display: flex;flex-direction: column;justify-content: space-between}
body .av-tessera-foto{grid-column: span 2;position: relative;border-radius: 8px;overflow: hidden;display: flex;align-items: flex-end;background: #0E3340}
body .av-testo{margin: 0;font-size: 16px;line-height: 22.4px;color: #47606B}
body .av-testo-15{margin: 0;font-size: 15px;font-weight: 500}
body .av-testo-chiaro{margin: 0;font-size: 16px;line-height: 22.4px;color: #D2E3F1}
body .av-testo-destra{margin: 0;font-size: 16px;line-height: 22.4px;color: #47606B;max-width: 420px;text-align: right}
body .av-testo-su-foto{position: relative;padding: 16px;color: #EEF5FC;display: flex;flex-direction: column;gap: 4px}
body .av-titoletto-30{font-family: 'Philosopher', sans-serif;font-size: 24px;line-height: 30px;font-weight: 500}
body .av-titolo-36{margin: 0;font-family: 'Philosopher', sans-serif;font-weight: 400;font-size: 36px;line-height: 39.6px;letter-spacing: -0.43px}
body .av-titolo-48{margin: 0;font-family: 'Philosopher', sans-serif;font-weight: 400;font-size: 48px;line-height: 52.8px;letter-spacing: -0.58px}
body .av-titolo-64{margin: 0;font-family: 'Philosopher', sans-serif;font-weight: 400;font-size: 64px;line-height: 70.4px;letter-spacing: -0.77px}
body .av-velo-35{position: absolute;inset: 0;background: linear-gradient(180deg, rgba(8, 37, 48, 0) 35%, rgba(8, 37, 48, 0.7) 100%)}
body .av-velo-40{position: absolute;inset: 0;background: linear-gradient(180deg, rgba(8, 37, 48, 0) 40%, rgba(8, 37, 48, 0.75) 100%)}

/* ---------- Telefono ---------- */
@media (max-width:767px){
[style*="padding: 0 32px"],.av-fascia,.av-fascia-centro,[style*="padding: 60px 32px"],.av-sezione,[style*="padding: 24px 32px 0"]{padding-left:16px!important;padding-right:16px!important}
[style*="padding: 60px 32px"],.av-sezione{padding-top:40px!important}
[style*="text-align: right"],.av-testo-destra,.ts-sx{text-align:left!important}
.ts-sx-box{align-items:flex-start!important}
.ts-sx-row{justify-content:flex-start!important}
[style*="flex-direction: column; align-items: flex-end"],.av-col-destra{align-items:flex-start!important}
[style*="justify-content: flex-end"]{justify-content:flex-start!important}
[style*="font-size: 96px"]{font-size:56px!important;line-height:56px!important;letter-spacing: -0.67px!important}
[style*="font-size: 64px"],.av-titolo-64{font-size:44px!important;line-height:48px!important;letter-spacing: -0.53px!important}
[style*="font-size: 48px"],.av-titolo-48{font-size:34px!important;line-height:38px!important;letter-spacing: -0.41px!important}
[style*="font-size: 240px"]{font-size:140px!important}
[style*="Philosopher"][style*="font-size: 36px"],.av-cifra,.av-titolo-36{font-size:28px!important;line-height:31px!important;letter-spacing: -0.34px!important}
[style*="height: 900px"],[style*="height: 820px"]{height:640px!important}
[style*="height: 680px"],[style*="height: 620px"]{height:480px!important}
[style*="height: 560px"],[style*="height: 520px"]{height:400px!important}
.ts-card[style*="height: 600px"]{height:500px!important}
[style*="grid-template-columns: repeat(4"],[style*="grid-template-columns: repeat(3"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.home [style*="padding: 6px 10px 6px 8px"]{font-size:11px!important;padding:4px 7px 4px 6px!important;gap:4px!important}
[style*="grid-template-rows: 300px 300px"]{grid-template-rows:none!important;grid-auto-rows:180px!important}
}
@media (max-width:520px){
[style*="grid-template-columns: repeat("]:not([style*="auto-f"]):not([style*="grid-template-rows"]){grid-template-columns:minmax(0,1fr)!important}
div[style*="grid-column: span"],div.av-tessera-foto{grid-column:auto!important}
}
