/* ==========================================================================
   telaio.css - base, griglia, colonna laterale, apertura, fasce della home
   griglia in stile bootstrap scritta a mano: .contenitore / .griglia / .col-*
   punti di rottura: 768, 1024, 1280
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 24px; color: #000; background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid #b5202b; outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mt-4 { margin-top: 24px; }

/* --- griglia --- */
.contenitore { width: 100%; padding-left: 20px; padding-right: 20px; margin-left: auto; margin-right: auto; max-width: 1240px; }
.griglia { display: flex; flex-wrap: wrap; margin-left: -16px; margin-right: -16px; }
.griglia > [class*="col-"] { padding-left: 16px; padding-right: 16px; min-width: 0; }
.griglia--stretta { margin-left: -8px; margin-right: -8px; }
.griglia--stretta > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* --- bottoni: squadrati, maiuscolo stretto, bordo da 2px --- */
.btn { display: inline-block; font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-size: 24px; line-height: 24px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; text-align: center; padding: 14px 30px 11px; border: 2px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--piccolo { font-size: 20px; line-height: 20px; padding: 8px 18px 6px; }
.btn--blocco { display: block; width: 100%; }
.btn--rosso { background: #b5202b; border-color: #b5202b; color: #fff; }
.btn--rosso:hover { background: #96161e; border-color: #96161e; }
.btn--nero { background: #000; border-color: #000; color: #fff; }
.btn--nero:hover { background: #2a2a2a; }
.btn--contorno { background: #fff; border-color: #000; color: #000; }
.btn--contorno:hover { background: #000; color: #fff; }
.btn--contorno-bianco { background: transparent; border-color: #fff; color: #fff; }
.btn--contorno-bianco:hover { background: #fff; color: #000; }
.btn:disabled { opacity: .6; cursor: progress; }

/* --- titoli: pieni e vuoti --- */
.vuoto { color: transparent; -webkit-text-stroke: 1.5px #000; }
.vetrina .vuoto, .testata-pagina .vuoto, .fascia-scura .vuoto { -webkit-text-stroke-color: #fff; }
.titolo-misto, .titolo-enorme, .titolo-grande, .titolo-medio { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.titolo-misto .vuoto, .titolo-enorme .vuoto { display: block; }
.titolo-enorme { font-size: 50px; line-height: 46px; overflow-wrap: break-word; }
.titolo-enorme .vuoto { -webkit-text-stroke: 1.5px #000; }
.titolo-enorme--bianco { color: #fff; }
.titolo-enorme--bianco .vuoto { -webkit-text-stroke: 1.5px #fff; }
.titolo-grande { font-size: 40px; line-height: 38px; overflow-wrap: break-word; }
.titolo-medio { font-size: 36px; line-height: 38px; }
.paragrafo { margin-top: 18px; max-width: 560px; }
.paragrafo--bianco { color: #fff; }
.paragrafo--largo { max-width: 860px; margin: 28px 0; }
.link-piccolo { font-size: 14px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.link-piccolo::after { content: " \203A"; }
.link-piccolo:hover { text-decoration: underline; }

/* frecce disegnate in css */
.freccia-lunga { display: inline-block; position: relative; width: 30px; height: 2px; background: currentColor; vertical-align: middle; margin-left: 8px; }
.freccia-lunga::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transform-origin: center; }
.freccia-corta { display: inline-block; width: 22px; height: 2px; background: #b5202b; position: relative; vertical-align: middle; margin-left: 6px; }
.freccia-corta::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid #b5202b; border-right: 2px solid #b5202b; transform: rotate(45deg); }

/* --- colonna laterale (su telefono e tablet: barra in alto) --- */
.laterale { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e4e6e8; }
.laterale-testa { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.laterale-logo img { height: 48px; width: auto; }
.laterale-menu { width: 46px; height: 46px; border: 2px solid #000; background: #fff; cursor: pointer; position: relative; }
.barrette, .barrette::before, .barrette::after { position: absolute; left: 10px; right: 10px; height: 2px; background: #000; content: ""; }
.barrette { top: 21px; }
.barrette::before { top: -7px; left: 0; right: 0; }
.barrette::after { top: 7px; left: 0; right: 0; }
.laterale-menu[aria-expanded="true"] .barrette { background: transparent; }
.laterale-menu[aria-expanded="true"] .barrette::before { top: 0; transform: rotate(45deg); }
.laterale-menu[aria-expanded="true"] .barrette::after { top: 0; transform: rotate(-45deg); }
.laterale-corpo { display: none; padding: 8px 16px 24px; max-height: calc(100dvh - 64px); overflow-y: auto; }
.laterale.aperto .laterale-corpo { display: block; }
.laterale-due { display: flex; gap: 12px; margin-top: 12px; }
.laterale-due .btn { flex: 1; }
.menu-voci { list-style: none; margin: 18px 0 0; padding: 0; }
.menu-voci a { display: flex; justify-content: space-between; align-items: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 30px; text-decoration: none; padding: 12px 0 8px; text-transform: uppercase; }
.menu-voci a::after { content: ""; width: 24px; height: 2px; background: #000; box-shadow: none; }
.menu-voci a:hover { color: #b5202b; }
.menu-voci a:hover::after { background: #b5202b; }
.laterale-timbro { display: none; }

/* --- apertura a scorrimento --- */
.vetrina { position: relative; background: #000; color: #fff; overflow: hidden; }
.vetrina-utilita { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.stato-oggi { font-family: "Bebas Neue", Impact, sans-serif; font-size: 22px; letter-spacing: .5px; }
.prima-di { position: relative; }
.prima-di-apri { background: none; border: 0; color: #fff; font: 600 14px "Barlow", sans-serif; cursor: pointer; padding: 4px 0; }
.prima-di-apri::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin: 0 0 3px 8px; }
.prima-di-lista { position: absolute; top: 34px; left: 0; width: min(320px, 80vw); background: #fff; color: #000; list-style: none; margin: 0; padding: 14px 16px; font-size: 14px; line-height: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.prima-di-lista li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4e6e8; }
.vetrina-scheda { position: relative; min-height: 600px; display: flex; align-items: flex-end; }
.vetrina-scheda[hidden] { display: none; }
.vetrina-scheda > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vetrina-scheda::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .25) 100%); }
.vetrina-testo { position: relative; z-index: 2; padding: 96px 20px 110px; max-width: 760px; width: 100%; min-width: 0; }
.titolo-misto { font-size: 46px; line-height: 42px; overflow-wrap: break-word; }
.vetrina-testo h2:not(.titolo-misto), .vetrina-testo h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 30px; margin-top: 16px; text-transform: uppercase; }
.vetrina-testo p { margin: 14px 0 26px; max-width: 520px; }
.vetrina-comandi { position: absolute; z-index: 3; left: 20px; bottom: 28px; display: flex; align-items: center; gap: 14px; }
.tondo { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; color: #fff; }
.tondo svg { fill: none; stroke: currentColor; stroke-width: 2.4; }
.tondo--grigio { border: 0; background: #e4e6e8; color: #000; }
.trattini { display: flex; gap: 8px; }
.trattini button, .trattini i { display: block; width: 42px; height: 4px; padding: 0; border: 0; background: #fff; cursor: pointer; }
.trattini button[aria-selected="true"] { background: #b5202b; }
.trattini--scuri i { background: #c7c8ca; width: 34px; }
.trattini--scuri i.pieno { background: #b5202b; }

/* --- fasce --- */
.fascia { padding: 56px 0; }
.fascia--righe { background-color: #fff; background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(0, 0, 0, .07) calc(25% - 1px) 25%); }
.scheda-grigia { display: block; position: relative; background: #e4e6e8; padding: 20px 20px 52px; text-decoration: none; height: 100%; margin-bottom: 16px; }
.scheda-grigia h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; line-height: 34px; text-transform: uppercase; }
.scheda-grigia p { font-size: 14px; line-height: 20px; margin-top: 10px; }
.scheda-grigia .freccia-lunga { position: absolute; right: 20px; bottom: 24px; }
.scheda-grigia:hover { background: #d6d8da; }

.riquadro-casi { border: 1px solid #c7c8ca; background: #fff; margin-top: 40px; }
.riquadro-casi-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 18px 12px; }
.riquadro-casi-testa .titolo-medio, .listino-testa .titolo-medio { min-width: 0; }
.caso[hidden] { display: none; }
.caso img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.caso h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; line-height: 28px; padding: 16px 18px 0; }
.caso p { padding: 8px 18px 0; font-size: 14px; line-height: 20px; }
.caso-dopo { padding-bottom: 6px !important; }
.casi-comandi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid #e4e6e8; margin-top: 12px; }
.casi-comandi--centro { justify-content: center; border-top: 0; }
.casi-conto { font-size: 14px; }

.foto-piena img { width: 100%; height: clamp(260px, 52vw, 640px); object-fit: cover; }

.fascia-grigia { background: #e4e6e8; padding: 44px 0; }
.fascia-grigia-dentro { display: flex; flex-direction: column; gap: 18px; }
.fascia-grigia p { max-width: 520px; font-size: 15px; }
.frecce-rosse { list-style: none; margin: 0; padding: 0; }
.frecce-rosse a { display: inline-block; font-family: "Bebas Neue", Impact, sans-serif; font-size: 26px; line-height: 34px; text-decoration: none; text-transform: uppercase; letter-spacing: .8px; }
.frecce-rosse a::after { content: ""; display: inline-block; width: 30px; height: 2px; background: #b5202b; margin-left: 10px; vertical-align: middle; box-shadow: none; }
.frecce-rosse a:hover { color: #b5202b; }

.sei-passi { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: passo; }
.sei-passi li { counter-increment: passo; position: relative; padding: 0 0 16px 52px; margin-bottom: 16px; border-bottom: 1px solid #e4e6e8; }
.sei-passi li::before { content: counter(passo, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; color: #b5202b; }
.due-bottoni { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.listino { border: 1px solid #c7c8ca; background: #fff; padding: 18px; margin-top: 40px; }
.listino-testa { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tabella-prezzi { width: 100%; border-collapse: collapse; }
.tabella-prezzi th, .tabella-prezzi td { text-align: left; padding: 12px 0; border-bottom: 1px solid #e4e6e8; font-size: 15px; vertical-align: top; }
.tabella-prezzi thead th { font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; font-weight: 400; border-bottom: 2px solid #000; }
.tabella-prezzi tbody th { font-weight: 400; padding-right: 12px; }
.tabella-prezzi td { text-align: right; font-weight: 600; white-space: nowrap; }
.listino-nota { font-size: 13px; line-height: 19px; color: #555; margin-top: 14px; }

.fascia-scura { position: relative; background: #000; color: #fff; padding: 64px 0; overflow: hidden; }
.fascia-scura-sfondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1); }
.fascia-scura-dentro { position: relative; }
.materiali { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .6); }
.materiale { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.materiale h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 30px; }
.materiale p { font-size: 14px; line-height: 21px; margin-top: 6px; color: #e4e6e8; }

.scheda-foto { display: block; position: relative; text-decoration: none; border: 1px solid #c7c8ca; background: #fff; margin-bottom: 16px; }
.scheda-foto img { width: 100%; aspect-ratio: 30 / 17; object-fit: cover; }
.scheda-foto--grande { border: 0; background: #000; }
.scheda-foto--grande img { aspect-ratio: 60 / 31; opacity: .72; }
.scheda-foto-titolo { position: absolute; left: 20px; bottom: 18px; right: 20px; color: #fff; font-family: "Bebas Neue", Impact, sans-serif; font-size: 40px; line-height: 38px; text-transform: uppercase; }
.scheda-foto-sotto { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 24px; line-height: 26px; text-transform: uppercase; }

.zone { padding: 0 0 56px; overflow: hidden; }
.nastro { overflow: hidden; white-space: nowrap; padding: 26px 0 30px; }
.nastro-dentro { display: inline-flex; gap: 32px; animation: scorri 38s linear infinite; }
.nastro span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 96px; line-height: 90px; text-transform: uppercase; }
.nastro .vuoto { -webkit-text-stroke: 1.5px #000; }
@keyframes scorri { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.comuni { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.comuni li { padding: 8px 0; border-bottom: 1px solid #e4e6e8; break-inside: avoid; font-size: 15px; }

.domande-riquadro { position: relative; padding: 64px 20px; background: #e9eef3; overflow: hidden; }
.domande-sfondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.domande-box { position: relative; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #c7c8ca; padding: 44px 24px 16px; text-align: center; }
.virgolette { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-family: "Bebas Neue", Impact, sans-serif; font-size: 96px; line-height: 70px; color: #b5202b; background: transparent; }
.domanda[hidden] { display: none; }
.domanda h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 30px; text-transform: uppercase; }
.domanda p { margin-top: 12px; font-size: 15px; line-height: 23px; }

.inviti { padding: 44px 0; }
.invito { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; padding-top: 12px; padding-bottom: 12px; }
.invito-icona { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #c7c8ca; display: grid; place-items: center; }
.invito-icona svg { fill: none; stroke: #123256; stroke-width: 2; stroke-linejoin: round; }
.invito-testo { font-size: 14px; line-height: 20px; }
.invito-testo { min-width: 0; }
.invito-testo strong { display: block; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 30px; line-height: 30px; text-transform: uppercase; overflow-wrap: anywhere; }
.invito-testo .freccia-lunga { background: #b5202b; }
.invito-testo .freccia-lunga::after { border-color: #b5202b; }
.invito:hover strong { color: #b5202b; }

/* --- piede nero --- */
.piede { background: #000; color: #fff; padding: 52px 0 0; font-size: 15px; }
.piede a { text-decoration: none; }
.piede a:hover { text-decoration: underline; }
.piede-titolo { font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; line-height: 34px; text-transform: uppercase; margin-bottom: 10px; }
.piede .col-12:first-child p { color: #c7c8ca; margin-bottom: 18px; max-width: 320px; }
.piede-sotto { font-family: "Bebas Neue", Impact, sans-serif; font-size: 22px; color: #888a8e; letter-spacing: 1px; margin: 26px 0 6px; text-transform: uppercase; }
.piede-link { list-style: none; margin: 0; padding: 0; line-height: 34px; letter-spacing: .4px; }
.piede address { font-style: normal; }
.piede-fondo { border-top: 1px solid #333; margin-top: 44px; padding: 22px 0 28px; }
.piede-fondo-dentro { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: #c7c8ca; }
.piede-fondo img { height: 46px; width: auto; filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) { .nastro-dentro { animation: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   tablet
   ========================================================================== */
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .contenitore { padding-left: 32px; padding-right: 32px; }
  .vetrina-utilita { padding: 16px 32px; }
  .vetrina-testo { padding: 110px 32px 120px; }
  .vetrina-comandi { left: 32px; }
  .titolo-misto { font-size: 76px; line-height: 68px; }
  .titolo-enorme { font-size: 80px; line-height: 70px; }
  .titolo-grande { font-size: 64px; line-height: 54px; }
  .fascia { padding: 72px 0; }
  .due-bottoni { flex-direction: row; flex-wrap: wrap; }
  .materiali { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .comuni { columns: 3; }
  .piede-fondo-dentro { flex-direction: row; align-items: center; justify-content: space-between; }
  .domande-box { padding: 52px 44px 18px; }
  .invito-testo strong { font-size: 44px; line-height: 42px; }
  .scheda-foto-titolo { left: 32px; bottom: 28px; font-size: 64px; line-height: 58px; max-width: 70%; }
}

/* ==========================================================================
   schermo grande: la colonna diventa fissa a sinistra come nel modello
   ========================================================================== */
@media (min-width: 1024px) {
  .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  body { padding-left: 280px; }
  .laterale { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; border-bottom: 0; border-right: 1px solid #e4e6e8; overflow-y: auto; }
  .laterale-testa { display: block; padding: 28px 28px 20px; }
  .laterale-logo img { height: auto; width: 200px; margin: 0 auto; }
  .laterale-menu { display: none; }
  .laterale-corpo { display: block; padding: 0 28px 28px; max-height: none; overflow: visible; }
  .menu-voci a { font-size: 28px; line-height: 28px; padding: 10px 0 6px; }
  .laterale-timbro { display: block; margin-top: 28px; text-align: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; line-height: 20px; color: #123256; text-transform: uppercase; }
  .laterale-timbro span { display: block; font-size: 44px; line-height: 40px; color: #b5202b; }
  .vetrina-scheda { min-height: 640px; }
  .riquadro-casi, .listino { margin-top: 0; }
  .fascia { padding: 88px 0; }
  .materiali { grid-template-columns: repeat(3, 1fr); }
  .nastro span { font-size: 140px; line-height: 128px; }
}

@media (min-width: 1280px) {
  .fascia-grigia-dentro { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .frecce-rosse { text-align: right; flex-shrink: 0; }
  .titolo-misto { font-size: 92px; line-height: 82px; }
  .titolo-enorme { font-size: 104px; line-height: 88px; }
  .vetrina-testo { padding-left: 56px; }
  .vetrina-comandi { left: 56px; }
  .contenitore { padding-left: 48px; padding-right: 48px; }
}
