/* IF 2026 – Cosa vedere: apertura fotografica sotto il menu del tema, filtri appiccicati, mosaico denso, testo SEO in colonna di lettura. */

/* Apertura */
body.if26 .if26-cv-hero{position:relative;overflow:hidden;background:var(--if26-basalt);color:#fff;padding-top:var(--if26-nav);isolation:isolate}
body.if26 .if26-cv-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
body.if26 .if26-cv-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,14,18,.55),rgba(10,14,18,.35) 40%,rgba(10,14,18,.82))}
body.if26 .if26-cv-hero-inner{padding-block:48px 40px}
body.if26 .if26-cv-title{font-family:var(--if26-display);font-weight:700;font-size:clamp(40px,6.4vw,88px);line-height:1;letter-spacing:-.025em;margin:0;color:#fff;text-wrap:balance;}
body.if26 .if26-cv-lede{font-size:clamp(17px,1.6vw,20px);margin:16px 0 0;color:rgba(255,255,255,.9)}
body.if26 .if26-cv-lede b,body.if26 .if26-cv-lede strong{color:#fff}
body.if26 .if26-cv-stats{display:flex;flex-wrap:wrap;gap:8px 32px;margin:26px 0 0}
body.if26 .if26-cv-stats div{display:flex;flex-direction:column-reverse}
body.if26 .if26-cv-stats dd{margin:0;font-family:var(--if26-display);font-weight:700;font-size:30px;line-height:1.1;font-variant-numeric:tabular-nums}
body.if26 .if26-cv-stats dt{font-weight:400;font-size:13px;color:rgba(255,255,255,.75)}

/* Filtri */
body.if26 .if26-cv-filters{position:sticky;top:var(--if26-sticky,0px);z-index:900;background:rgba(244,246,245,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--if26-line)}
body.if26 .if26-cv-filters .if26-wrap{padding-block:12px}
body.if26 .if26-cv-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.if26 .if26-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--if26-line);background:var(--if26-surface);color:var(--if26-fg);font:600 15px/1.2 var(--if26-text);padding:10px 16px;border-radius:999px;cursor:pointer;max-width:100%}
body.if26 .if26-toggle:hover{border-color:#b9c4c3}
body.if26 .if26-toggle[aria-expanded="true"]{background:var(--if26-fg);border-color:var(--if26-fg);color:#fff}
body.if26 .if26-toggle svg{transition:transform .2s}
body.if26 .if26-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
body.if26 .if26-toggle-current{font-weight:500;color:var(--if26-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:18ch}
body.if26 .if26-toggle-current:empty{display:none}
body.if26 .if26-toggle[aria-expanded="true"] .if26-toggle-current{color:#ffd9c9}
body.if26 .if26-cv-panel{padding-top:12px}
body.if26 .if26-cv-chips{display:flex;flex-wrap:wrap;gap:8px;max-height:min(50vh,360px);overflow-y:auto;padding:2px}
body.if26 .if26-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;border:0;background:var(--if26-chip);color:var(--if26-fg);font:500 14px/1.2 var(--if26-text);padding:9px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
body.if26 .if26-chip:hover{background:#dbe2e1}
body.if26 .if26-chip b{font-family:var(--if26-mono);font-weight:500;font-size:12px;color:var(--if26-muted)}
body.if26 .if26-chip i{width:9px;height:9px;border-radius:50%;display:inline-block}
body.if26 .if26-chip[aria-pressed="true"]{background:var(--if26-fg);color:#fff}
body.if26 .if26-chip[aria-pressed="true"] b{color:#fff;opacity:.75}
body.if26 .if26-chip:disabled{opacity:.4;cursor:default}
body.if26 .if26-cv-result{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:14px;color:var(--if26-muted)}
body.if26 .if26-cv-reset{background:none;border:0;padding:0;color:var(--if26-accent);font:600 14px var(--if26-text);cursor:pointer}

/* Mosaico */
body.if26 .if26-cv-mosaic{list-style:none;margin:0;padding:22px 0 72px;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));grid-auto-rows:210px;grid-auto-flow:dense;gap:10px}
@media (max-width:600px){body.if26 .if26-cv-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:180px;gap:8px}}
body.if26 .if26-tile{position:relative;border-radius:14px;overflow:hidden;background:var(--c,#3a4a52);min-width:0}
body.if26 .if26-tile.is-big{grid-column:span 2;grid-row:span 2}
body.if26 .if26-tile a{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:14px;color:#fff;text-decoration:none}
body.if26 .if26-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s ease}
body.if26 .if26-tile a::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,14,18,.4),rgba(10,14,18,0) 32%,rgba(10,14,18,0) 45%,rgba(10,14,18,.85))}
body.if26 .if26-tile a > span{position:relative;z-index:1}
body.if26 .if26-tile-meta{display:flex;justify-content:space-between;gap:8px;font-family:var(--if26-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 1px 6px rgba(0,0,0,.5)}
body.if26 .if26-tile-body{display:flex;flex-direction:column;gap:3px}
body.if26 .if26-tile-title{font-family:var(--if26-display);font-weight:700;font-size:20px;line-height:1.08;overflow-wrap:anywhere}
body.if26 .if26-tile.is-big .if26-tile-title{font-size:clamp(26px,2.6vw,36px)}
body.if26 .if26-tile-sub{font-size:13px;line-height:1.35;opacity:.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.if26 .if26-tile:not(.is-big) .if26-tile-sub{max-height:0;opacity:0;transition:max-height .35s ease,opacity .35s ease}
body.if26 .if26-tile:not(.is-big) a:hover .if26-tile-sub,body.if26 .if26-tile:not(.is-big) a:focus-visible .if26-tile-sub{max-height:40px;opacity:.9}
body.if26 .if26-tile-region{font-size:12px;opacity:.8}
body.if26 .if26-tile a:hover img{transform:scale(1.05)}
@media (prefers-reduced-motion:no-preference){
  body.if26 .if26-tile{animation:if26-float var(--d,7s) ease-in-out var(--dl,0s) infinite alternate;animation-play-state:paused}
  body.if26 .if26-tile.is-live{animation-play-state:running}
}
@keyframes if26-float{from{translate:0 -3px}to{translate:0 4px}}
body.if26 .if26-cv-empty{padding:40px 0;color:var(--if26-muted)}

/* Testo SEO finale */
body.if26 .if26-cv-seo{background:var(--if26-surface);border-top:1px solid var(--if26-line)}
body.if26 .if26-cv-seo-inner{padding-block:64px 80px;max-width:820px}
body.if26 .if26-cv-seo-inner h2{font-family:var(--if26-display);font-weight:700;font-size:clamp(26px,3.2vw,38px);line-height:1.1;letter-spacing:-.015em;margin:0 0 18px;color:var(--if26-fg);text-wrap:balance}
body.if26 .if26-cv-seo-inner h2:not(:first-child){margin-top:44px}
body.if26 .if26-cv-seo-inner h3{font-family:var(--if26-display);font-weight:700;font-size:22px;margin:32px 0 10px;color:var(--if26-fg)}
body.if26 .if26-cv-seo-inner p,body.if26 .if26-cv-seo-inner li{font-size:17px;line-height:1.7;color:#2b343b}
body.if26 .if26-cv-seo-inner p{margin:0 0 16px}
body.if26 .if26-cv-seo-inner a{color:var(--if26-accent)}

@media (max-width:600px){body.if26 .if26-cv-result{margin-left:0;width:100%}}
@media (min-width:901px){body.if26 .if26-cv-title{white-space:nowrap}}
@media (min-width:1100px){body.if26 .if26-cv-lede{white-space:nowrap;font-size:clamp(16px,1.42vw,20px)}}
