@import url("https://p.typekit.net/p.css?s=1&k=dhu3lgx&ht=tk&f=463.464.42901.42905&a=17964275&app=typekit&e=css");

@font-face {
    font-family: "sofachrome";
    src: url("https://use.typekit.net/af/f1b0d4/0000000000000000773596db/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"), url("https://use.typekit.net/af/f1b0d4/0000000000000000773596db/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"), url("https://use.typekit.net/af/f1b0d4/0000000000000000773596db/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
}

@font-face {
    font-family: "sofachrome";
    src: url("https://use.typekit.net/af/2fe4bd/0000000000000000773596dd/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff2"), url("https://use.typekit.net/af/2fe4bd/0000000000000000773596dd/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff"), url("https://use.typekit.net/af/2fe4bd/0000000000000000773596dd/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("opentype");
    font-display: auto;
    font-style: italic;
    font-weight: 400;
    font-stretch: normal;
}

@font-face {
    font-family: "novecento-sans";
    src: url("https://use.typekit.net/af/13a4f0/00000000000000007735cd02/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff2"), url("https://use.typekit.net/af/13a4f0/00000000000000007735cd02/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("woff"), url("https://use.typekit.net/af/13a4f0/00000000000000007735cd02/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
}

@font-face {
    font-family: "novecento-sans";
    src: url("https://use.typekit.net/af/b68060/00000000000000007735cd10/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"), url("https://use.typekit.net/af/b68060/00000000000000007735cd10/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"), url("https://use.typekit.net/af/b68060/00000000000000007735cd10/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
}


:root {
    /* ---- Palette base Saikebon ---- */
    --sk-giallo: #ffce00;
    --sk-giallo-scuro: #f6b800;
    --sk-nero: #171717;
    --sk-arancio: #f39100;
    --sk-arancio-scuro: #e07d00;
    --sk-rosso: #e2231a;
    --sk-rosso-hover: #c81a12;

    --bg-nero: var(--sk-nero);
    /* Alias storici del tema pgk, ora ricolorati sui toni Saikebon */
    --rosso-pgk: var(--sk-rosso);
    --rosso-hover-pgk: var(--sk-rosso-hover);
    --f-titoli: 'RacingBold', sans-serif;
    --f-testibold: 'Testibold', sans-serif;
    --f-testi: 'Testi', sans-serif;
    --f-testineri: 'Testineri', sans-serif;
}

.btn-primary {
    --bs-btn-bg: var(--rosso-pgk);
    --bs-btn-border-color: var(--rosso-pgk);
    --bs-btn-hover-bg: var(--rosso-hover-pgk);
    --bs-btn-hover-border-color: var(--rosso-hover-pgk);
}

.form-check-input:checked {
    background-color: var(--rosso-pgk);
    border-color: var(--rosso-pgk);
}

.bg-red {
    background-color: var(--rosso-pgk);
}

.bg-grey {
    background-color: #d9d9d9;
}

.text-grey {
    color: #d9d9d9;
}

.text-red {
    color: var(--rosso-pgk);
}

/* =========================================
   2. LAYOUT GLOBALE
   ========================================= */
html, body {
    background-color: var(--sk-giallo) !important;
    color: var(--sk-nero);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; /* Evita scroll orizzontale */
    font-family: var(--sk-font-nersans-two);
}

.anima {
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
}

.font-testibold {
    font-weight: bold;
}

.font-testi {
    font-weight: normal;
}

.font-testineri {
    font-family: var(--sk-font-nersans-two);
}

.font-titoli,
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--sk-font-nersans-two);
}

.btn-red {
    min-width: 420px;
}


.bg-body.bg-site::before {
    min-height: 40vw !important;
    left: 0px !important;
    transform: translateX(0) !important;
    width: 100vw !important;
    min-width: 100vw !important;
}

.bg-body.bg-site::after {
    width: 140vw !important;
}

.bg-body.bg-site::before {
    height: 50vw !important;
}

@media only screen and (min-width: 990px) {
    .bg-body.bg-site::before {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
}

@media only screen and (max-width: 899px) {
    .bg-body.bg-site::before,
    .bg-body.bg-site::after {
        min-width: 1300px;
    }
}

@media only screen and (min-width: 768px) {
    #layout-header + #content {
        margin-top: 25vw;
    }
}

@media only screen and (min-width: 1200px) {
    #layout-header + #content {
        margin-top: 240px;
    }
}

@media only screen and (max-width: 767px) {
    #layout-header + #content {
        /*
        margin-top: calc(35vw * -1 );
         */
        margin-top: 35vw;
    }

    .bg-body.bg-site::before {
        min-height: 40vw !important;
        left: 0px !important;
        transform: translateX(0) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        max-height: 40vw !important;
    }

    .bg-body.bg-site::before,
    .bg-body.bg-site::after {
        min-height: 90vw;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        margin-left: 0;
        margin-right: 0;
        background-size: cover;
        max-width: 100vw !important;
        top: 130px;
        min-width: 570px;
    }

    .btn-red {
        min-width: 280px;
    }
}

@media only screen and (max-width: 440px) {
    #layout-header + #content {
        margin-top: 160px;
    }

    .bg-body.bg-site::after {
        min-height: 380px !important;
    }
}

.bg-body {
    background-color: #000 !important;
    position: relative;
    z-index: 0;
}

.bg-body:before,
.bg-body:after {
    content: '';
    background-image: var(--bg-image-desk);
    background-size: 100%;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    z-index: -1;
    min-width: 1000px;
}

.bg-body::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 0;
    height: 50%;
}

.bg-body:after {
    background-image: var(--bg-image-desk);
}

@media only screen and (max-width: 767px) {
    .bg-body:after {
        background-image: var(--bg-image-mob);
        height: var(--dynamic-bg-limit) !important;
        background-position: center top;
        width: 120%;
        top: 10%;
        left: 70%;
        max-width: 600px;
        min-width: 460px;
    }
}

.bg-header {
    background-image: var(--bg-image);
    min-height: 100vw;
    background-size: contain;
    background-position-y: bottom;
}


.header-racing img {
    width: 100%;
    max-width: 270px; /* limite massimo */
}


.py-3 text-center lh-1 {
    position: relative;
    line-height: 1;
    text-align: center;
    padding: 1rem 3rem;
}


.sfondokart {
    /* Usa height (altezza fissa) invece di min-height, così non si stira */
    height: 400px;
    width: 100%;

    background-image: var(--img-mobile);
    background-size: auto 100%; /* Meglio di 'auto 100%' per evitare spazi vuoti */
    background-position: center top;
    background-repeat: no-repeat;

    /* Questo impedisce ai contenuti interni di "rompere" l'altezza */
    position: relative;
}

/* Altezza specifica per i computer (Desktop) */
@media (min-width: 768px) {
    .sfondokart {
        background-image: var(--img-desktop);
        height: 800px; /* <-- Cambia l'altezza fissa per il PC qui */
    }
}

.titolorosso {

    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}


.testo-contornato {
    color: var(--rosso-pgk) !important;
    -webkit-text-stroke: 4px #ffffff;
    paint-order: stroke fill;
}


.btn-back-racing {
    /* 1. POSIZIONAMENTO LIBERO */

    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200; /* Sopra a tutto */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 2. CARICAMENTO SVG COME MASCHERA */
.btn-back-icon {
    width: 30px;
    height: 30px;
    background-color: #E6232B; /* Colore dell'icona */

    /* Inserisci qui il percorso del tuo file .svg */
    -webkit-mask-image: url('../images/fti.svg');
    mask-image: url('../images/fti.svg');

    -webkit-mask-size: contain;
    mask-size: contain;
    mask-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

.riquadrorosso1 {
    background-color: var(--rosso-pgk, #E6232B);
    color: #ffffff;
    border: 4px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.riquadrorosso1 a {
    color: #ffffff !important;
}

.btn-classifiche {
    background-color: var(--rosso-pgk, #E6232B);
    color: #ffffff;
    border-left: 3px solid #ffffff;
    display: flex;
    flex: 1;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: stretch;
    padding: 5px;
}

.btn-classifiche a {
    color: #ffffff !important;
}

.riquadrorosso3 {
    background-color: var(--rosso-pgk, #E6232B);
    color: #ffffff;
    border-right: 3px solid #ffffff;
    display: flex;
    flex: 0 0 15%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: stretch;
    padding: 5px;
}

.riquadrorosso3 a {
    color: #ffffff !important;
}


.fascia-tappa {
    --bg-fascia: #d9d9d9;
    --rosso-pgk: #E6232B;
    --fascia-h: 80px;

    /* --- L'UNICA VARIABILE PER LO SPAZIO TRA LE RIGHE --- */
    --riga-gap: 0px;

    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background-color: var(--bg-fascia);
    min-height: var(--fascia-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    color: #000;

}

/* --- LO STACK DELLE 5 RIGHE --- */
.tappa-stack {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Applica lo spazio identico tra ognuna delle 5 righe */
    gap: var(--riga-gap);
}

/* --- RESET RIGHE --- */
.tappa-stack > * {
    margin: 0 !important;
    line-height: 1; /* Fondamentale per rendere lo spazio preciso */
    text-align: center;
}


/* --- STILI TESTO --- */
.tappa-titolo {
    color: var(--rosso-pgk);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.tappa-date {
    font-weight: 800;
    font-size: 1.1rem;
}

.tappa-mall {
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.tappa-city {
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- FRECCE --- */
.btn-tappa {
    width: 60px;
    height: 60px;
    /*
    background-image: url('/storage/app/media/icone/fth.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
    */
}

.btn-prev {
    transform: scaleX(-1);
}

/* --- MARKER ROSSO --- */
.tappa-marker {
    display: none;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 46px;
    height: 23px;
    background-color: var(--rosso-pgk);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
}

/* La tappa attiva la decide il partial site/tappe (lato server, da config/tappe.php):
   qui non ci sono piu' date da tenere allineate al .env. */
.tappa-marker.is-active {
    display: block;
}


.icone > img {
    max-width: 66px !important;
    height: auto;
}


.testosotto {
    position: relative; /* Lo aggancia alla griglia fisica della pagina */
    z-index: 10; /* Se la fascia grigia prova a coprirlo, lui le sta sopra */
    background-color: var(--bg-nero); /* (Opzionale) Assicura che non sia trasparente se la fascia sale */
    padding: 20px 0; /* Crea una "bolla" di spazio vitale sopra e sotto */
    width: 100%;
}


.full-width[class*="bg-"] {
    position: relative;
    z-index: 1;
}

.full-width[class*="bg-"]:after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(((100vw - 100%) / 2) * -1);
    width: 100vw;
    height: 100%;
    background-color: inherit;
    z-index: -1;
}


.chamfer-box {
    position: relative;
    /* nessun background — trasparente di default */
    padding: 1.5rem 2rem;
}

.chamfer-box svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.chamfer-box img {
    width: 100%;
    max-width: 80px;
}

.content {
    height: 100%;
    box-sizing: border-box;
}

.fisichella-img {
    max-height: 380px;
}

.classifica-single-numero {
    width: 120px;
    border-right: 4px solid #fff;
}

.cerca-partecipante:focus,
.cerca-partecipante {
    border: none;
    font-size: 1.5rem;
    padding: 0;
    color: #fff;
    background-color: #000;
}

.cerca-partecipante::placeholder {
    color: #fff;
}

/* Bootstrap responsive fs-* utilities (sm/md/lg/xl/xxl) */
@media (min-width: 576px) {
    .fs-sm-1 {
        font-size: calc(1.375rem + 1.5vw) !important;
    }

    .fs-sm-2 {
        font-size: calc(1.325rem + .9vw) !important;
    }

    .fs-sm-3 {
        font-size: calc(1.3rem + .6vw) !important;
    }

    .fs-sm-4 {
        font-size: calc(1.275rem + .3vw) !important;
    }

    .fs-sm-5 {
        font-size: 1.25rem !important;
    }

    .fs-sm-6 {
        font-size: 1rem !important;
    }
}

@media (min-width: 768px) {
    .fs-md-1 {
        font-size: calc(1.375rem + 1.5vw) !important;
    }

    .fs-md-2 {
        font-size: calc(1.325rem + .9vw) !important;
    }

    .fs-md-3 {
        font-size: calc(1.3rem + .6vw) !important;
    }

    .fs-md-4 {
        font-size: calc(1.275rem + .3vw) !important;
    }

    .fs-md-5 {
        font-size: 1.25rem !important;
    }

    .fs-md-6 {
        font-size: 1rem !important;
    }
}

@media (min-width: 992px) {
    .fs-lg-1 {
        font-size: calc(1.375rem + 1.5vw) !important;
    }

    .fs-lg-2 {
        font-size: calc(1.325rem + .9vw) !important;
    }

    .fs-lg-3 {
        font-size: calc(1.3rem + .6vw) !important;
    }

    .fs-lg-4 {
        font-size: calc(1.275rem + .3vw) !important;
    }

    .fs-lg-5 {
        font-size: 1.25rem !important;
    }

    .fs-lg-6 {
        font-size: 1rem !important;
    }
}

@media (min-width: 1200px) {
    .fs-xl-1 {
        font-size: 2.5rem !important;
    }

    .fs-xl-2 {
        font-size: 2rem !important;
    }

    .fs-xl-3 {
        font-size: 1.75rem !important;
    }

    .fs-xl-4 {
        font-size: 1.5rem !important;
    }

    .fs-xl-5 {
        font-size: 1.25rem !important;
    }

    .fs-xl-6 {
        font-size: 1rem !important;
    }
}

@media (min-width: 1400px) {
    .fs-xxl-1 {
        font-size: 2.5rem !important;
    }

    .fs-xxl-2 {
        font-size: 2rem !important;
    }

    .fs-xxl-3 {
        font-size: 1.75rem !important;
    }

    .fs-xxl-4 {
        font-size: 1.5rem !important;
    }

    .fs-xxl-5 {
        font-size: 1.25rem !important;
    }

    .fs-xxl-6 {
        font-size: 1rem !important;
    }
}

#sg-cookiesBar {
    color: #000;
}

.home-boxes .chamfer-box:hover {
    transform: scale(1.03);
}


.icons-scroll-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* nasconde scrollbar su Firefox */
}

.icons-scroll-wrapper::-webkit-scrollbar {
    display: none; /* nasconde scrollbar su Chrome/Safari */
}

@media (min-width: 768px) {
    .icons-scroll-wrapper {
        flex-wrap: wrap; /* desktop: non scorre */
        overflow-x: visible;
        scroll-snap-type: none;
    }
}

.cerca-partecipante-results {
    position: absolute;
    width: 100%;
    top: calc(100% + 10px);
    overflow: hidden;
    overflow-y: auto;
    z-index: 999;
    max-height: 200px;
    height: auto;
    display: none;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    background-color: rgba(0, 0, 0, .8);
}

.cerca-partecipante-results.show {
    display: flex;
}

/* =========================================================
   SAIKEBON — Home "Vinci un anno di Saikebon"
   Bootstrap-first: qui solo cio' che le utility non coprono.
   Asset: Media Library, root di /storage/app/media/
   ========================================================= */

/* ---------------------------------------------------------
   Font del mockup (MATERIALI AGGIUNTIVI SVILUPPATORE/FONT)
   Sorgenti .otf/.ttf convertiti in woff2 -> assets/font/
   ATTENZIONE: il taglio di Futura PT fornito e' quello Cirillico
   e NON contiene le accentate latine (a' e' i' o' u'), ne' EUR/deg.
   Finche' non arriva il taglio Latin, lo stack ha un fallback che
   copre quei caratteri.
   --------------------------------------------------------- */

@font-face {
    font-family: "Nersans Two";
    src: url("../font/nersans-two-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nersans Three";
    src: url("../font/nersans-three-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-demi.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-heavy.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-bold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Futura PT";
    src: url("../font/futura-pt-extrabold.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Famiglie del mockup, pronte da assegnare */
    --sk-font-nersans-two: "Nersans Two", "novecento-sans", sans-serif;
    --sk-font-nersans-three: "Nersans Three", "novecento-sans", sans-serif;
    --sk-font-futura: "Futura PT", "Century Gothic", "Questrial", sans-serif;

    /* Font dei titoli: Nersans Two e' il default di tutto il sito */
    --sk-font-display: var(--sk-font-nersans-two);
}

/* Zone in Futura PT: form, footer e le bande bianche in testa alle card.
   Ridefinendo --sk-font-display dentro questi blocchi passano a Futura anche
   i figli che lo usano (.sk-label, .sk-form__label, .sk-toggle, .sk-upload__btn),
   senza toccare le loro regole. Restano fuori .sk-badge/.sk-claim (Nersans Three)
   e .sk-btn-red (Nersans Two), che dichiarano il font per conto loro. */
.sk-card-top,
.sk-card-body,
.sk-form,
#layout-footer {
    --sk-font-display: var(--sk-font-futura);
    font-family: var(--sk-font-futura);
}

/* Classi utility: da appiccicare a qualsiasi elemento per forzare il font.
   -d = Nersans Due, -t = Nersans Tre. Hanno !important perche' servono a
   scavalcare le regole del tema, non a essere scavalcate. */
.font-futura {
    font-family: var(--sk-font-futura) !important;
    font-weight: 400;
}

.font-nersans-d {
    font-family: var(--sk-font-nersans-two) !important;
    font-weight: 400 !important;
}

.font-nersans-t {
    font-family: var(--sk-font-nersans-three) !important;
    font-weight: 400 !important;
}

/* Sfondo giallo: disattiva l'hero scuro ereditato dal tema pgk */
.bg-body {
    background-color: var(--sk-giallo) !important;
}

.bg-body:before, .bg-body:after {
    display: none !important;
}

#layout-header + #content {
    margin-top: 0 !important;
}

/* Pattern "onde" arancio (BG_Pattern_Desk.svg / BG_Pattern_Mobile.svg, tracciati su trasparente) */
body.bg-site {
    background-image: url('/storage/app/media/BG_Pattern_Desk.svg');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top center;
}

@media (max-width: 767.98px) {
    body.bg-site {
        background-image: url('/storage/app/media/BG_Pattern_Mobile.svg');
    }
}

/* Header */
.sk-logo {
    width: 140px;
    height: auto;
}

@media (min-width: 992px) {
    .sk-logo {
        width: 170px;
    }
}

/* Footer: testo scuro sul giallo, come nel mockup */
#layout-footer {
    background: transparent;
    color: var(--sk-nero);
}

#layout-footer a {
    color: inherit;
}

/* Tipografia display: maiuscolo, pesante, interlinea stretta */
.sk-display {
    font-family: var(--sk-font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: .95;
}

/* "Sparks" / virgolette: i tre cunei del mockup. Forma unica in partials/ui/sparks.htm,
   richiamata con <use href="#sk-spark">. Il colore arriva da currentColor. */
.sk-spark {
    position: absolute;
    width: .7em;
    height: auto;
    aspect-ratio: 104 / 171;
    fill: currentColor;
    pointer-events: none;
}

.sk-spark--l, .sk-spark--r {
    top: -.3em;
}

.sk-spark--l {
    left: -1em;
}

.sk-spark--r {
    right: -1em;
    transform: scaleX(-1);
}

.sk-promo .sk-spark {
    width: 4rem;
}

.sk-spark--tl {
    left: -3rem;
    top: -3rem;
}

.sk-spark--br {
    right: -4rem;
    bottom: -2rem;
    transform: scaleX(-1) rotate(-30deg);
}

/* -------- HERO -------- */
.sk-hero {
    position: relative;
    z-index: 0;
    --brush-top: 14%;
    --brush-bottom: 0;
}

.sk-hero__text {
    position: relative;
    padding: 2.5rem 1rem 2.25rem;
}

/* Pennellata nera full-bleed dietro al testo (black-slide.svg); da lg in su passa anche dietro alla ciotola */
#hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: var(--brush-top);
    bottom: var(--brush-bottom);
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: url('/storage/app/media/black-slide.svg') center / 100% 100% no-repeat;
}


/* Trama "onde giapponesi" (bg-form-mosaic.png) dentro la pennellata, come nel mockup: ritagliata con la stessa forma */
/*
.sk-hero__text::after {
    background: url('/storage/app/media/bg-form-mosaic.png') center / 230px auto repeat;
    -webkit-mask: url('/storage/app/media/black-slide.svg') center / 100% 100% no-repeat;
            mask: url('/storage/app/media/black-slide.svg') center / 100% 100% no-repeat;
    opacity: .18;
}
*/


.sk-hero__bowl {
    display: block;
    width: 88%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    transform: translate(calc(-50% + 80px), -9%) rotate(-17deg);
    left: 50%;
    position: relative;
}

@media (min-width: 992px) {
    .sk-hero {
        --brush-top: 26%;
    }

    .sk-hero__text {
        padding: 3.5rem 0 3.5rem;
    }

    .sk-hero__pad {
        padding-left: 4.5rem;
    }

    .sk-hero__bowl {
        width: 120%;
        max-width: none;
        margin: -6% -20% 0 0;
    }
}

/* Badge "VINCI": riquadro arancio inclinato con ombra (bg-title.png) + testo bianco contornato */
.sk-badge {
    display: inline-block;
    color: #fff;
    font-family: var(--sk-font-nersans-three);
    font-weight: 400;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    padding: .15em .4em;
    background: url('/storage/app/media/bg-title.png') center / 100% 100% no-repeat;
    -webkit-text-stroke: .045em var(--sk-nero);
    paint-order: stroke fill;
    transform: rotate(-10deg);
}

/* Claim "L'unico 100% naturale" */
.sk-claim {
    font-family: var(--sk-font-nersans-three);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    transform: rotate(-3deg);
    -webkit-text-stroke: .02em var(--sk-nero);
    paint-order: stroke fill;
}

.sk-claim sup {
    font-size: .35em;
    top: -1.4em;
}

/* -------- PROMO "1 anno di Saikebon" -------- */
.sk-promo {
    transform: rotate(-2deg);
    padding: 0 1.5rem;
}

.sk-promo__pre {
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
}

.sk-outline {
    color: var(--sk-arancio);
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    -webkit-text-stroke: .06em var(--sk-nero);
    paint-order: stroke fill;
}

.sk-outline__big {
    font-size: 1.7em;
    line-height: .9;
}

.sk-cups {
    width: min(100%, 1250px);
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
}

/* -------- STEP 1-2-3 (black slide bottom.svg) --------
   La sezione contiene titolo (sul giallo) + fascia nera: la pennellata parte sotto al titolo (--sk-steps-title-h). */
.sk-steps {
    position: relative;
    z-index: 0;
    --sk-steps-title-h: 5.5rem;
    margin-top: clamp(4rem, 7vw, 6rem);
    padding: 0 0 6%;
}

.sk-steps__title {
    height: var(--sk-steps-title-h);
}


.sk-steps::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    top: var(--sk-steps-title-h);
    background-image: url('/storage/app/media/black%20slide%20bottom.svg');
    width: 100%;
    transform: translate(-50%,-50%);
    left: 50%;
    max-width: 1400px;
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    height: calc(100% * 0.86);
    margin-top: 3em;
}

.sk-step-num {
    font-family: var(--sk-font-display);
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: .35rem;
}

@media (max-width: 767.98px) {
    .sk-steps {
        padding-bottom: 4.5rem;
    }



    .sk-steps::before {
        background-size: cover;
    }
}

/* Bottoni rossi */
.sk-btn-red {
    background: var(--sk-rosso);
    color: #fff;
    border: 0;
    border-radius: .8rem;
    padding: .4rem 2rem;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-family: var(--sk-font-nersans-two);
    font-weight: 400;
    text-transform: uppercase;
}

.sk-btn-red:hover, .sk-btn-red:focus {
    background: var(--sk-rosso-hover);
    color: #fff;
}

/* =========================================================
   SAIKEBON — Registrazione "Partecipa" (pages/registrazione.htm)
   ========================================================= */

/* Il layout pgk distribuisce le sezioni con space-between: su schermi alti apre gap tra le card. Le sezioni partono dall'alto. */
#content { justify-content: flex-start !important; }

/* Card: parte alta bianca con badge sovrapposto, parte bassa scura con trama seigaiha */
.sk-reg-intro { margin-top: 3.5rem; }
.sk-card-top {
    position: relative;
    background: #fff;
    border-radius: 1.75rem 1.75rem 0 0;
    padding: 4rem 1.25rem 2rem;
}
.sk-card-top .sk-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -52%) rotate(-5deg);
    font-size: clamp(2.3rem, 5vw, 4rem);
    white-space: nowrap;
    padding: .3em .6em;
}
.sk-card-top p { font-size: clamp(.95rem, 1.4vw, 1.15rem); }
/* Badge a due righe ("Compila / il form e ricevi il premio") */
.sk-badge small { display: block; font-size: .42em; line-height: 1; margin-top: .12em; letter-spacing: .02em; }
.sk-badge--sub { padding: .5em 1em .85em; }
.sk-card-body {
    --sk-card-px: 1.25rem;
    position: relative;
    color: #fff;
    background: #1a1611 url('/storage/app/media/bg-form-mosaic.png') center top / 260px auto repeat;
    border-radius: 0 0 1.75rem 1.75rem;
    padding: 1.5rem var(--sk-card-px) 3rem;
}
@media (min-width: 768px) {
    .sk-card-top  { padding: 4.5rem 3rem 2.5rem; }
    .sk-card-body { --sk-card-px: 3rem; padding-top: 2rem; }
}
@media (min-width: 1200px) {
    .sk-card-top  { padding-left: 5rem; padding-right: 5rem; }
    .sk-card-body { --sk-card-px: 4rem; }
}

/* Etichette di sezione: pennellata gialla (SVG nero ritagliato con mask e colorato in CSS) che parte dal bordo della card */
.sk-label {
    position: relative; isolation: isolate;
    display: inline-block;
    margin: 1.75rem 0 1.25rem calc(var(--sk-card-px) * -1);
    padding: .9em 3.2em .9em 1.4em;
    font-family: var(--sk-font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--sk-nero);
}
.sk-label::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: var(--sk-giallo);
    -webkit-mask: url('/storage/app/media/black-slide-bottom-2.svg') center / 100% 100% no-repeat;
            mask: url('/storage/app/media/black-slide-bottom-2.svg') center / 100% 100% no-repeat;
}

/* Campi */
.sk-form__label {
    display: block;
    margin-bottom: .4rem;
    font-family: var(--sk-font-display);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    color: #fff;
}
.sk-form .form-control,
.sk-form .form-select {
    border: 0;
    border-radius: .6rem;
    min-height: 2.6rem;
    padding: .5rem .9rem;
    font-weight: 600;
    color: var(--sk-nero);
    background-color: #fff;
}
.sk-form .form-control:focus,
.sk-form .form-select:focus { box-shadow: 0 0 0 .25rem rgba(255, 206, 0, .55); }
.sk-form .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%23171717' d='M0 0h16L8 10z'/%3E%3C/svg%3E");
    background-size: .9rem .6rem;
}
.sk-form .form-control.is-invalid,
.sk-form .form-select.is-invalid { box-shadow: 0 0 0 3px var(--sk-rosso); }
.sk-form .invalid-feedback { color: #ffb3ae; font-weight: 600; }
.sk-help { margin: .4rem 0 0; font-size: .8rem; line-height: 1.35; color: rgba(255,255,255,.9); }

/* Switch scontrino / documento online */
.sk-toggle {
    width: 100%;
    border: 2px solid var(--sk-giallo);
    border-radius: .6rem;
    background: transparent;
    color: var(--sk-giallo);
    padding: .8rem 1rem;
    font-family: var(--sk-font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}
.sk-toggle.is-active { background: var(--sk-giallo); color: var(--sk-nero); }

/* Upload "Carica" */
.sk-upload { display: block; position: relative; margin: 0; cursor: pointer; }
.sk-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sk-upload__btn {
    display: block;
    text-align: center;
    background: var(--sk-giallo);
    color: var(--sk-nero);
    border-radius: .6rem;
    padding: .8rem 1rem;
    font-family: var(--sk-font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}
.sk-upload:hover .sk-upload__btn { background: var(--sk-giallo-scuro); }
.sk-upload.has-file .sk-upload__btn { background: #fff; }
.sk-upload__name { display: block; margin-top: .35rem; font-size: .8rem; word-break: break-all; }
.sk-upload input.is-invalid + .sk-upload__btn { box-shadow: 0 0 0 3px var(--sk-rosso); }

/* Consensi */
.sk-consensi .form-check { padding-left: 2rem; margin-bottom: .5rem; }
.sk-consensi .form-check-input {
    width: 1.15rem; height: 1.15rem; margin-left: -2rem; margin-top: .1rem;
    background-color: transparent; border: 2px solid #fff; border-radius: .3rem;
}
.sk-consensi .form-check-input:checked { background-color: var(--sk-giallo); border-color: var(--sk-giallo); }
.sk-consensi .form-check-input.is-invalid { border-color: var(--sk-rosso); box-shadow: 0 0 0 3px rgba(226,35,26,.5); }
.sk-consensi .form-check-label { line-height: 1.35; }
.sk-consensi .form-check-label a { color: #fff; text-decoration: underline; }

/* Bottone invio: larghezza dal contenuto (la .sk-btn-red di base e' all'80% per le CTA della home) */
.sk-form .sk-btn-red { width: auto; min-width: 16rem; }

/* Messaggio esito (partial flash di Martin.Forms) */
.sk-form .alert { border-radius: .6rem; font-weight: 600; }

/* =========================================================
   SAIKEBON — Gratta e vinci (pages/gratta.htm)
   ========================================================= */
.sk-outline--bianco { color: #fff; -webkit-text-stroke-color: var(--sk-nero); }
.sk-gratta__big { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; }
.sk-gratta .sk-btn-red { width: auto; min-width: 14rem; line-height: 1.05; }

/* Area da grattare: le due cup (clipPath #sk-cup-clip in gratta.htm) */
.sk-scratch {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 680 / 575;
    margin: 0 auto;
    transform: rotate(-2deg);
}
/* Forma delle due cup come polygon() in percentuali: un clip-path url(#svg) non viene applicato al canvas
   quando Chrome lo promuove a layer composito (appena si inizia a disegnare) e il grigio sborderebbe. */
.sk-scratch__inner,
.sk-scratch__cover,
.sk-scratch__result {
    clip-path: polygon(0% 15%, 60% 2%, 100% 9%, 89% 82%, 67% 79%, 65% 90%, 22% 100%);
}
.sk-scratch__inner {
    position: absolute; inset: 0;
    background: #b5b5b5;
}
.sk-scratch__outline {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}
.sk-scratch__cover {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 2;
    touch-action: none;
    cursor: grab;
    transition: opacity .7s ease;
}
.sk-scratch.is-revealed .sk-scratch__cover { opacity: 0; pointer-events: none; }

/* Risultati sotto al grigio (visibili solo quando l'esito e' noto) */
.sk-scratch__result { position: absolute; inset: 0; display: none; }
.sk-scratch__result.is-on { display: block; }
/* Vinto: ritaglio della composizione hp-cups.png (Manzo + Pollo). Da sostituire con un asset dedicato se disponibile. */
.sk-scratch__result--vinto {
    background: #1a1611 url('/storage/app/media/hp-cups.png') 40% 50% / 300% auto no-repeat;
}
/* Perso: pennellata bianca (black-slide.svg via mask) con scritta nera */
.sk-scratch__result--perso { background: #b5b5b5; }
.sk-scratch__result--perso.is-on { display: flex; align-items: center; justify-content: center; }
.sk-scratch__result--perso::before {
    content: '';
    position: absolute; inset: 8% -4%;
    background: #fff;
    /* PNG e non SVG: come mask l'SVG conserva le proporzioni e non si stira sull'altezza della cup */
    -webkit-mask-image: url('/storage/app/media/black%20slide%20top.png');
            mask-image: url('/storage/app/media/black%20slide%20top.png');
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
}
.sk-scratch__perso-txt {
    position: relative;
    color: var(--sk-nero);
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    line-height: .95;
    text-align: center;
    transform: rotate(-6deg);
}
