/* Testata e menu: identici in tutte le pagine. Per cambiare il menu, modifica questo file
   e il blocco <header class="site-hd"> (uguale) in index.html, iqos/index.html e sigari/index.html. */
.site-hd{position:relative;z-index:40;background:#16294a;color:#fff;padding-top:env(safe-area-inset-top,0px);font-family:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.site-hd.overlay{position:absolute;top:0;left:0;right:0;background:transparent}
.site-hd .hd-in{max-width:1100px;margin:0 auto;height:100px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.site-hd .hd-brand{display:block;flex:none}
.site-hd .hd-brand img{display:block;height:62px;width:auto;max-width:60vw}
.site-hd .hd-nav{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:.95rem;font-weight:600;line-height:1.3}
.site-hd .hd-nav a{color:rgba(255,255,255,.75);text-decoration:none;white-space:nowrap}
.site-hd .hd-nav a:hover{color:#fff}
.site-hd .hd-nav a[aria-current="page"]{color:#f3bd1f}
.site-hd .hd-side{display:flex;align-items:center;gap:10px;flex:none}
.site-hd .hd-wa{display:inline-flex;align-items:center;gap:8px;background:var(--wa,#1fa855);color:var(--wa-ink,#fff);font-size:.95rem;font-weight:700;line-height:1.3;text-decoration:none;padding:8px 14px;border-radius:999px;white-space:nowrap}
.site-hd .hd-wa svg{width:18px;height:18px;flex:none}
.site-hd .hd-btn{display:none;align-items:center;gap:8px;background:none;border:1.5px solid rgba(255,255,255,.35);color:#fff;font:inherit;font-size:.95rem;font-weight:700;line-height:1.3;padding:7px 14px;border-radius:999px;cursor:pointer}
.site-hd .hd-btn svg{width:18px;height:18px}
.site-hd .hd-btn[aria-expanded="true"]{border-color:#f3bd1f;color:#f3bd1f}
.site-hd :focus-visible{outline:3px solid #f3bd1f;outline-offset:3px}

@media (max-width:1000px){
  .site-hd .hd-in{height:72px;gap:10px}
  .site-hd .hd-btn{display:inline-flex}
  .site-hd .hd-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;background:#16294a;
    border-top:1px solid rgba(255,255,255,.12);box-shadow:0 18px 30px -18px rgba(0,0,0,.6);padding:6px max(16px,env(safe-area-inset-left,0px)) 12px}
  .site-hd .hd-nav.open{display:flex}
  .site-hd .hd-nav a{padding:14px 4px;font-size:1.05rem;border-bottom:1px solid rgba(255,255,255,.1)}
  .site-hd .hd-nav a:last-child{border-bottom:0}
}
@media (max-width:560px){
  .site-hd .hd-brand img{height:32px}
  .site-hd .hd-wa{padding:8px}
  .site-hd .hd-wa span{display:none}
  .site-hd .hd-btn{padding:7px 12px;font-size:.9rem}
}

/* Fascia gialla che scorre: identica in tutte le pagine, subito sotto l'apertura.
   Per cambiare le scritte modifica il blocco <div class="ticker"> (uguale) in index.html, iqos/index.html, sigari/index.html e privacy.html. */
.ticker{background:#f3bd1f;color:#13253d;overflow:hidden;position:relative;z-index:2}
.ticker-track{display:flex;width:max-content;animation:tk-scroll 32s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker ul{display:flex;gap:0;margin:0;padding:0;list-style:none}
.ticker li{font-family:"Big Shoulders Display","Arial Narrow",Impact,sans-serif;font-weight:800;font-size:1.6rem;line-height:1.2;text-transform:uppercase;letter-spacing:.04em;padding:14px 26px;white-space:nowrap;display:flex;align-items:center;gap:26px;color:#13253d}
.ticker li::after{content:"T";font-weight:900;opacity:.45}
@keyframes tk-scroll{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker-track{animation:none}}

/* Fascia "IQOS Premium Partner / Offerte in corso": identica in tutte le pagine, subito sotto il menu.
   Le offerte e i link social si cambiano in /topband.js. */
.topband{position:relative;z-index:3;border-block:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;font-family:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.site-hd + .topband{background:linear-gradient(rgba(255,255,255,.06),rgba(255,255,255,.06)),#122441}
.topband .tb-in{max-width:1100px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:0}
.tb-cell{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-block:10px;min-width:0}
.tb-offers{padding-left:24px;border-left:1px solid rgba(255,255,255,.14);flex-wrap:nowrap!important}
.topband .partner-badge{flex:none;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.5;color:#f3bd1f;border:1.5px solid currentColor;border-radius:999px;padding:4px 10px}
.topband .partner-badge.offers-badge{background:#f3bd1f;color:#13253d;border-color:#f3bd1f}
.topband p{margin:0;color:rgba(255,255,255,.75);font-size:.9rem;line-height:1.55;min-width:0;flex:1 1 200px}
.topband p b{color:#fff}
.topband p a{color:#fff}
.offer-ticker{flex:1 1 auto;min-width:0;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.ot-track{display:flex;width:max-content;animation:otscroll var(--ot-dur,30s) linear infinite}
.offer-ticker:hover .ot-track{animation-play-state:paused}
.ot-track span{white-space:nowrap;font-size:.92rem;line-height:1.55;color:rgba(255,255,255,.85);padding-right:34px}
.ot-track span b{color:#fff}
.ot-track span i{font-style:normal;color:#f3bd1f;margin-right:10px}
@keyframes otscroll{to{transform:translateX(-50%)}}
.socials{display:flex;gap:8px;margin-left:auto}
.soc{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.1);transition:background .2s,color .2s}
.soc svg{width:18px;height:18px}
.soc[href]:hover{background:#f3bd1f;color:#13253d}
.soc:not([href]){opacity:.45;cursor:default}
@media (prefers-reduced-motion:reduce){.ot-track{animation:none}.offer-ticker{overflow-x:auto}}
@media (max-width:860px){
  .topband .tb-in{grid-template-columns:1fr}
  .tb-offers{flex-wrap:wrap!important;padding-left:0;border-left:0;border-top:1px solid rgba(255,255,255,.14)}
  .offer-ticker{order:3;flex:1 1 100%;font-size:1rem}
}

/* Passaggio tra le pagine: dissolvenza morbida invece dello scatto; menu e fascia offerte restano fermi.
   Funziona su Chrome, Edge e Safari recenti; gli altri browser cambiano pagina come prima. */
@view-transition{navigation:auto}
.site-hd{view-transition-name:testata}
.topband{view-transition-name:fascia-offerte}
::view-transition-group(root){animation-duration:.2s}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* Dicitura 18+ nella testata di tutte le pagine (01/12/2026) */
.site-hd .hd-18{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700;line-height:1;color:#13253d;background:var(--gold,#f3bd1f);border-radius:999px;padding:6px 11px 6px 6px;white-space:nowrap;text-transform:uppercase;letter-spacing:.06em}
.site-hd .hd-18 b{background:#13253d;color:var(--gold,#f3bd1f);border-radius:999px;padding:4px 6px;letter-spacing:0}
@media (max-width:1180px){.site-hd .hd-18{padding:6px}.site-hd .hd-18>span{display:none}}

/* 01/12/2026: logo piu' piccolo e vicino al menu; apertura alta come lo schermo in tutte le pagine,
   cosi' la fascia gialla che scorre compare sempre in fondo alla prima schermata (alta 58px). */
.site-hd .hd-brand img{height:50px}
.site-hd .hd-nav{margin-left:26px}
.site-hd .hd-side{margin-left:auto}
@media (max-width:1000px){.site-hd .hd-brand img{height:44px}}
@media (max-width:560px){.site-hd .hd-brand img{height:32px}}
@media (min-width:1001px) and (min-height:640px){
  .hero{min-height:calc(100svh - 58px);display:flex;flex-direction:column}
  .hero > .w,.hero > .wrap{margin-block:auto;width:100%}
  .hero > .wrap{padding-block:28px 40px!important}
  .printer{height:clamp(360px,calc(100svh - 300px),705px)!important}
  /* testi e immagini dell'apertura si adattano all'altezza dello schermo */
  .hero .w{padding-block:10px 22px!important}
  .hero .crumbs{margin-bottom:14px}
  .hero .badges{margin-bottom:12px}
  .hero .w h1{font-size:min(4.1rem,7.2vh)!important}
  .hero .w p.lead{margin:16px 0 20px!important;max-width:54ch}
  .hero .prod img{width:min(560px,100%,64vh)!important}
  .hero > .wrap h1{font-size:min(6.6rem,8vh)!important}
  .hero > .wrap p.lead{margin:12px 0 18px!important}
  .hero > .wrap .cats{font-size:min(1.6rem,3vh)!important}
  .hero > .wrap .status{margin-bottom:12px}
  .hero > .wrap .cats{margin-top:14px!important}
}

/* 03/12/2026: su PC logo piu' piccolo e piu' staccato dal menu;
   su smartphone la testata non esce piu' dallo schermo (il logo si restringe, "Menu" diventa solo icona). */
.site-hd .hd-brand img{height:40px}
.site-hd .hd-nav{margin-left:64px}
@media (max-width:1000px){
  .site-hd .hd-nav{margin-left:0}
  .site-hd .hd-brand{flex:0 1 auto;min-width:0}
  .site-hd .hd-brand img{height:auto;max-height:40px;max-width:100%}
}
@media (max-width:560px){
  .site-hd .hd-in{gap:8px}
  .site-hd .hd-side{gap:6px}
  .site-hd .hd-brand img{max-height:30px}
  .site-hd .hd-18{font-size:.72rem;padding:5px}
  .site-hd .hd-btn{font-size:0;gap:0;padding:7px}
  .site-hd .hd-btn svg{width:20px;height:20px}
}
