@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
:root {
    --primary: #3fa25d;
    --primary-hover: #2d7f47;
    --primary-soft: #52e27d;

    --bg-main: #241914;
    --bg-secondary: #423123;
    --bg-card: #ffffff;
    --bg-alt: #52e27d;

    --text-main: #241914;
    --text-secondary: #2f231b;
    --text-muted: #695b50;
    --text-disabled: #8c8c8c;
    --text-white: #ffffff;

    --border-light: #d9c5a4;
    --font-heading: "Poppins", sans-serif;
    --font-base: "Poppins", sans-serif;
    --radius-small: 6px;
    --radius-big: 12px;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    color: var(--text-white);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Tipografia */
h1 {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 800;
}

h2 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
}

h4 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 500;
}

h5 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 400;
}

h6 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 400;
}

p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    font-family: var(--font-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-heading);
}

ol,
ul {
    margin-block-start: 24px;
    padding-inline-start: 20px;
}

li {
    font-weight: 300;
}

/* Tipografia */
.btn {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: transparent;
    color: var(--text-white);
    border: solid 2px var(--primary);
    box-shadow: 5px 5px 0 0 var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    border: solid 2px var(--primary);
    box-shadow: none;
    transform: translate(5px, 5px);
}

.btn-2 {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: transparent;
    color: var(--text-white);
    border: solid 2px var(--text-white);
    box-shadow: 5px 5px 0 0 var(--primary-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-2:hover {
    background: transparent;
    color: white;
    border: solid 2px white;
    box-shadow: none;
    transform: translate(5px, 5px);
}

.btn-3 {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: transparent;
    color: var(--primary);
    border: solid 2px var(--primary);
    box-shadow: 5px 5px 0 0 var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-3:hover {
    background: var(--primary-hover);
    color: var(--text-white);
    border: solid 2px var(--primary);
    box-shadow: none;
    transform: translate(5px, 5px);
}

.btn-green {
    background-color: #5b7f5c;
    color: white;
    border-color: #5b7f5c;
    transition: all 0.3s ease;
}

.btn-green:hover {
    color: #3f623f;
    background-color: #eef5ea;
    border-color: #5b7f5c;
}

.hyperlink {
    text-decoration: none;
    color: var(--primary-soft);
    font-weight: 300;
}

.hyperlink:hover {
    text-decoration: underline;
}

.hero-height {
    min-height: 80vh;
}

.light-color {
    color: var(--text-white);
}

.primary-color {
    color: var(--primary);
}

.primary-hover-color {
    color: var(--primary-hover);
}

.center-text {
    text-align: center;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.top-iscritti {
    display: grid;
    grid-template-columns: 1fr 2.28fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.main-text-color {
    color: var(--text-main);
}

section {
    padding: 80px 12% 70px 12%;
}

/* Homepage */

.topbar {
    background-color: var(--text-secondary);
    height: 56px;
}

.topbar h4 {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.site-header .navbar {
    background-color: var(--text-secondary);
}

.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.home-page .site-header .navbar {
    background-color: transparent;
}

.topbar-logo {
    width: 132px;
    max-height: 42px;
    color: var(--text-white);
}

.home-hero {
    background:
        linear-gradient(
            90deg,
            rgba(66, 49, 35, 0.9) 0%,
            rgba(66, 49, 35, 0.72) 42%,
            rgba(36, 25, 20, 0.35) 100%
        ),
        url(images/francigena/hero-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 136px;
}

.hero-title {
    font-size: 78px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 720px;
}

/* Countdown */
.countdown {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.time-box {
    min-width: 90px;
    border-radius: 14px;
    color: var(--text-white);
    text-align: center;
}

.time-box h2 {
    font-size: 48px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.time-box small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    color: var(--primary-soft);
}

.dark-bg {
    background-color: var(--text-secondary);
}

.card {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 45px;
    box-shadow: 8px 8px 0 rgba(63, 162, 93, 0.26);
}

.card-2 {
    background-color: var(--primary);
}

.card-green {
    border: solid 7px var(--primary-soft);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.03),
        0 10px 20px rgba(0, 0, 0, 0.05);
    background-color: #fff8bf;
    padding: 45px;
}

.intro-section {
    align-items: center;
}

.brand-figure {
    min-height: 320px;
    background: var(--bg-secondary);
    border-bottom: solid 7px var(--primary);
    border-right: solid 7px var(--primary-soft);
}

.brand-figure img {
    width: min(260px, 70%);
    height: auto;
}

.route-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: solid 7px var(--primary);
    border-right: solid 7px var(--primary-soft);
}

.route-badge {
    display: inline-flex;
    min-width: 92px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--text-main);
}

.route-lungo {
    background: var(--bg-secondary);
    color: var(--primary-soft);
}

.route-medio {
    background: var(--primary);
    color: var(--text-white);
}

.route-corto {
    background: #f2dfb8;
    border: 1px solid var(--border-light);
}

.fhm-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: var(--bg-secondary);
    color: var(--text-white);
}

.fhm-band p {
    max-width: 820px;
}

.program-card {
    min-height: 300px;
}

.program-list {
    margin-top: 24px;
    padding-left: 0;
    list-style: none;
}

.program-list li {
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
}

.visual-section {
    align-items: center;
}

.visual-section > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hills-mark {
    width: min(360px, 80%);
    height: auto;
}

.footer a {
    margin-bottom: 20px;
    color: var(--bg-alt);
    text-decoration: none;
}

.footer-mark {
    width: 128px;
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-secondary);
    color: var(--primary-soft);
    border-bottom: 8px solid var(--primary);
    border-right: 8px solid var(--primary-soft);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.standard-lateral-padding {
    padding: 0px 12% 0px 12%;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-right: solid 7px var(--primary);
    border-bottom: solid 7px var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 26px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.cookie-banner__text {
    flex: 1;
    color: var(--text-main);
}

.cookie-banner__text h5 {
    color: var(--text-main);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 14px 22px;
}

.cookie-btn-secondary {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 14px 22px;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cookie-btn-secondary:hover {
    background: var(--bg-secondary);
}

/* COOKIE MODAL */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.cookie-modal.is-active {
    display: block;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-modal__box {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 32px));
    margin: 6vh auto 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-right: solid 7px var(--primary);
    border-bottom: solid 7px var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 28px;
}

.cookie-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-modal__close {
    background: transparent;
    border: none;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-main);
}

.cookie-modal__body {
    margin-top: 18px;
}

.cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border-light);
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    width: 58px;
    height: 32px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: #d8d8cf;
    transition: 0.25s ease;
    border-radius: 999px;
    cursor: pointer;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--primary);
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(26px);
}

.cookie-switch--disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* ACCORDION */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 0px;
    background: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.faq-question:hover {
    background: #fff8bf;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-soft);
    outline-offset: 2px;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    margin: 0;
    padding: 24px 24px 20px 24px;
}

/* margini */

.top-margin-small {
    margin-top: 0.5rem;
}

.top-margin-mid {
    margin-top: 1rem;
}

.top-margin-large {
    margin-top: 1.5rem;
}

.top-margin-xl {
    margin-top: 2.5rem;
}

.top-margin {
    margin-top: 4rem;
}

/* STACK SYSTEM */

.stack-small > * + * {
    margin-top: 0.5rem;
}

.stack-mid > * + * {
    margin-top: 1rem;
}

.stack-large > * + * {
    margin-top: 1.5rem;
}

.stack-xl > * + * {
    margin-top: 2.5rem;
}

.stack-xxl > * + * {
    margin-top: 4rem;
}

@media (max-width: 768px) {
    section {
        padding: 56px 6% 42px 6%;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    h6 {
        font-size: 15px;
    }

    p {
        font-size: 15px;
    }

    small {
        font-size: 13px;
    }

    .home-hero {
        background:
            linear-gradient(rgba(66, 49, 35, 0.78), rgba(36, 25, 20, 0.88)),
            url(images/francigena/hero-1-mobile.jpg);
        background-position: center top;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .countdown {
        gap: 10px;
    }

    .time-box {
        min-width: 70px;
        padding: 12px 8px;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .time-box h2 {
        font-size: 32px;
    }

    .card,
    .card-green {
        padding: 30px;
    }

    .btn,
    .btn-2 {
        font-size: 15px;
    }

    .topbar h4 {
        font-size: 16px;
        padding: 0 16px;
    }

    .fhm-band {
        display: block;
    }

    .brand-figure {
        min-height: 240px;
    }

    .route-card,
    .program-card {
        min-height: auto;
    }

    .route-card .btn {
        margin-top: 1rem;
    }

    .fullwidth {
        width: 100%;
    }

    .mobile-fullwidth {
        width: 100%;
    }

    .standard-lateral-padding {
        padding: 0px 6% 0px 6%;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .cookie-banner__actions .btn,
    .cookie-banner__actions .cookie-btn-secondary,
    .cookie-modal__footer .btn,
    .cookie-modal__footer .cookie-btn-secondary {
        width: 100%;
    }

    .cookie-modal__box {
        width: calc(100% - 20px);
        margin-top: 4vh;
        padding: 20px;
    }

    .cookie-option {
        align-items: flex-start;
    }
}

/* Navbar */
:root {
    --primary: #3fa25d;
    --primary-hover: #2d7f47;
    --primary-soft: #52e27d;

    --bg-main: #241914;
    --bg-secondary: #423123;
    --bg-card: #ffffff;
    --bg-alt: #52e27d;

    --text-main: #241914;
    --text-secondary: #2f231b;
    --text-muted: #695b50;
    --text-disabled: #8c8c8c;
    --text-white: #ffffff;

    --border-light: #d9c5a4;
    --radius-small: 6px;
    --radius-big: 12px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 80px;
    width: 100%;

    position: relative;
    z-index: 998;

    font-family: var(--font-base);
    background-color: transparent;

    transition:
        background-color 0.45s ease,
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    position: relative;
}

/* Bottone hamburger */
.hamburger {
    position: absolute;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

.logo-vecchio {
    position: absolute;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Logo */
.logo a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 20px;
}

/* Menù laterale */
.side-menu {
    height: 100%;
    width: 0;

    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;

    background-color: var(--text-secondary);
    overflow-x: hidden;

    transition: 0.3s;
    padding-top: 60px;
}

.side-menu a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    color: var(--primary);
    display: block;
    font-family: var(--font-base);
}

.hamburger-menu-link {
    transition: all 0.3s ease;
}

.hamburger-menu-link:hover {
    transform: translateX(4px);
}

.close-x-icon {
    transition: all 0.3s ease-out;
}

.close-x-icon:hover {
    transform: rotate(180deg);
}

.hamburger-icon {
    transition: all 0.4s ease;
}

.hamburger-icon:hover {
    transform: scaleX(1.1);
}

.closebtn {
    padding: 0px;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
    color: black;
}

/* Legacy standalone pages */
:root {
    --primary: #3fa25d;
    --primary-hover: #2d7f47;
    --primary-soft: #52e27d;

    --bg-main: #241914;
    --bg-secondary: #423123;
    --bg-card: #ffffff;
    --bg-alt: #52e27d;

    --text-main: #241914;
    --text-secondary: #2f231b;
    --text-muted: #695b50;
    --text-disabled: #8c8c8c;
    --text-white: #ffffff;

    --border-light: #d9c5a4;
    --border-grey: #dddddd;
    --radius-small: 6px;
    --radius-big: 12px;

    --font-base: "Poppins", sans-serif;
}

/* Backgrounds */
:where(body.legacy-style) .bg-primary-hover {
    background-color: var(--primary-hover);
}
:where(body.legacy-style) .bg-main {
    background-color: var(--bg-main);
}
:where(body.legacy-style) .bg-secondary {
    background-color: var(--bg-secondary);
}
:where(body.legacy-style) .bg-card {
    background-color: var(--bg-card);
}
:where(body.legacy-style) .bg-alt {
    background-color: var(--bg-card);
}
body:where(.legacy-style) {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    font-size: 21px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
:where(body.legacy-style) * {
    box-sizing: border-box;
}

/* Rimuove lo stile di default dei menu a tendina su tutti i browser */
:where(body.legacy-style) select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Colore di sfondo base */
    background-color: #ffffff;

    /* Aggiunge una freccina personalizzata moderna e pulita tramite SVG */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;

    /* Fa spazio al testo per non sovrapporsi alla freccia */
    padding-right: 2.5rem !important;
}

/* Opzionale: stile al passaggio del mouse o quando cliccato */
:where(body.legacy-style) select:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 1px var(--text-secondary);
}
:where(body.legacy-style) * {
    box-sizing: border-box;
}

/* Tipografia */
:where(body.legacy-style) h1 {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
}
:where(body.legacy-style) h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}
:where(body.legacy-style) h3 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}
:where(body.legacy-style) h4 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}
:where(body.legacy-style) h5 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 500;
}
:where(body.legacy-style) h6 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 500;
}
:where(body.legacy-style) p {
    font-size: 21px;
    line-height: 1.6;
    font-weight: 300;
}
:where(body.legacy-style) h1,
:where(body.legacy-style) h2,
:where(body.legacy-style) h3,
:where(body.legacy-style) h4,
:where(body.legacy-style) h5,
:where(body.legacy-style) h6,
:where(body.legacy-style) p {
    margin: 0;
    font-family: var(--font-base);
}
:where(body.legacy-style) ol,
:where(body.legacy-style) ul {
    margin-block-start: 24px;
    padding-inline-start: 20px;
}
:where(body.legacy-style) li {
    font-weight: 300;
}
:where(body.legacy-style) input,
:where(body.legacy-style) select {
    border: solid 1px var(--border-grey);
    border-radius: var(--radius-small);
    padding: 9px;
    font-size: 20px;
    background-color: var(--bg-card);
    font-family: var(--font-base);
    color: var(--text-disabled);
}
:where(body.legacy-style) label {
    display: block;
}

/* Tipografia */
:where(body.legacy-style) .btn {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--primary);
    color: var(--text-white);
    border: solid 1px var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}
:where(body.legacy-style) .btn:hover {
    background: var(--primary-hover);
    border: solid 1px var(--primary-hover);
}
:where(body.legacy-style) .btn-2 {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: white;
    color: var(--bg-secondary);
    border: solid 1px white;
    transition: all 0.3s ease;
    cursor: pointer;
}
:where(body.legacy-style) .btn-2:hover {
    background: none;
    color: white;
}
:where(body.legacy-style) .grey-btn {
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--text-disabled);
    color: var(--text-white);
    border: solid 1px var(--text-disabled);
    transition: all 0.3s ease;
    cursor: pointer;
}
:where(body.legacy-style) .remove-btn {
    margin-left: 20px;
    display: inline-block;
    text-align: center;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 20px;
    background-color: #4f4f4f1a;
    color: #4f4f4f;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}
:where(body.legacy-style) .remove-btn:hover {
    color: white;
    background-color: #4f4f4f;
    transform: scale(1.06);
}
:where(body.legacy-style) .hyperlink {
    text-decoration: none;
    color: var(--primary-hover);
    font-weight: 300;
    font-family: var(--font-base);
}
:where(body.legacy-style) .hyperlink:hover {
    text-decoration: underline;
}
:where(body.legacy-style) .hero-height {
    min-height: 80vh;
}

/* margini */
:where(body.legacy-style) .top-margin-small {
    margin-top: 0.5rem;
}
:where(body.legacy-style) .top-margin-mid {
    margin-top: 1rem;
}
:where(body.legacy-style) .top-margin-large {
    margin-top: 1.5rem;
}
:where(body.legacy-style) .top-margin-xl {
    margin-top: 2.5rem;
}
:where(body.legacy-style) .top-margin {
    margin-top: 4rem;
}

/* STACK SYSTEM */
:where(body.legacy-style) .stack-small > * + * {
    margin-top: 0.5rem;
}
:where(body.legacy-style) .stack-mid > * + * {
    margin-top: 1rem;
}
:where(body.legacy-style) .stack-large > * + * {
    margin-top: 1.5rem;
}
:where(body.legacy-style) .stack-xl > * + * {
    margin-top: 2.5rem;
}
:where(body.legacy-style) .stack-xxl > * + * {
    margin-top: 4rem;
}
:where(body.legacy-style) .light-color {
    color: var(--text-white);
}
:where(body.legacy-style) .primary-color {
    color: var(--primary);
}
:where(body.legacy-style) .center-text {
    text-align: center;
}
body:where(.legacy-style.center-items),
:where(body.legacy-style) .center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
:where(body.legacy-style) .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
:where(body.legacy-style) .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
:where(body.legacy-style) .grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
:where(body.legacy-style) .fullwidth {
    width: 100%;
}
:where(body.legacy-style) section {
    padding: 110px 12% 95px 12%;
}

/* Homepage */
:where(body.legacy-style) .topbar {
    background-color: var(--text-secondary);
    min-height: 50px;
}
:where(body.legacy-style) .home-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.9)),
        url(images/hero.JPG);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
:where(body.legacy-style) .hero-title {
    font-size: 64px;
    font-weight: 900;
}

/* Countdown */
:where(body.legacy-style) .countdown {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
:where(body.legacy-style) .time-box {
    min-width: 90px;
    border-radius: 14px;
    color: var(--text-white);
    text-align: center;
}
:where(body.legacy-style) .time-box h2 {
    font-size: 56px;
}
:where(body.legacy-style) .time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
:where(body.legacy-style) .time-box small {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    color: var(--primary);
}
:where(body.legacy-style) .dark-bg {
    background-color: var(--text-secondary);
}
:where(body.legacy-style) .card {
    background-color: var(--bg-card);
    color: var(--light-text-color);
    padding: 45px;
    border-bottom: solid 7px var(--primary);
    border-right: solid 7px var(--primary);
}
:where(body.legacy-style) .footer a {
    margin-bottom: 20px;
    color: var(--bg-alt);
    text-decoration: none;
}
:where(body.legacy-style) .standard-lateral-padding {
    padding: 0px 12% 0px 12%;
}
:where(body.legacy-style) .spunte-privacy {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* ADMIN */
:where(body.legacy-style) .grid-8 {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr 1.6fr 1fr 1fr;
    gap: 15px;
}
:where(body.legacy-style) .lucide-icon {
    transition: all 0.3s ease;
}
:where(body.legacy-style) .lucide-icon:hover {
    transform: translateY(-1px);
}
:where(body.legacy-style) .layout-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* Checkout */
body:where(.legacy-style.checkout-body),
:where(body.legacy-style) .checkout-body {
    padding: 2.5rem;
}
:where(body.legacy-style) .checkout-wrapper {
    max-width: 1200px;
    padding: 2.5rem;
    border-radius: var(--radius-big);
    background-color: var(--bg-card);
    color: var(--text-main);
}
:where(body.legacy-style) .checkout-narrow {
    max-width: 760px;
    width: 100%;
}
:where(body.legacy-style) .checkout-kicker {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
:where(body.legacy-style) .checkout-summary {
    padding: 1.5rem;
    border-radius: var(--radius-small);
    background-color: #fff8bf;
}
:where(body.legacy-style) .checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
}
:where(body.legacy-style) .checkout-summary-row strong {
    font-weight: 700;
}
:where(body.legacy-style) .checkout-summary-total {
    padding-top: 1rem;
    border-top: solid 1px var(--border-light);
    font-size: 28px;
}
:where(body.legacy-style) .stripe-payment-box {
    padding: 1.5rem;
    border: solid 1px var(--border-light);
    border-radius: var(--radius-small);
    background-color: var(--bg-card);
}
:where(body.legacy-style) .payment-message {
    padding: 1rem;
    border-radius: var(--radius-small);
    background-color: #fff8bf;
    color: var(--primary-hover);
    font-weight: 500;
}
:where(body.legacy-style) .btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
:where(body.legacy-style) .box-associazione {
    padding: 1.5rem;
    border-radius: var(--radius-small);
    background-color: #fff8bf;
    border: solid 1px var(--border-light);
}
:where(body.legacy-style) .label-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
:where(body.legacy-style) .label-box input {
    width: 100%;
    box-sizing: border-box;
}
:where(body.legacy-style) .label-box label {
    font-size: 22px;
}
:where(body.legacy-style) .gap-20 {
    gap: 25px;
}
:where(body.legacy-style) .hidden {
    display: none;
}
@media (max-width: 900px) {
    :where(body.legacy-style) section {
        padding: 80px 6% 70px 6%;
    }
    :where(body.legacy-style) h1 {
        font-size: 32px;
    }
    :where(body.legacy-style) h2 {
        font-size: 26px;
    }
    :where(body.legacy-style) h3 {
        font-size: 22px;
    }
    :where(body.legacy-style) h4 {
        font-size: 18px;
    }
    :where(body.legacy-style) h5 {
        font-size: 16px;
    }
    :where(body.legacy-style) h6 {
        font-size: 15px;
    }
    :where(body.legacy-style) p {
        font-size: 15px;
    }
    :where(body.legacy-style) small {
        font-size: 13px;
    }
    :where(body.legacy-style) .grid-2,
    :where(body.legacy-style) .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    :where(body.legacy-style) .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    :where(body.legacy-style) .hero-title {
        font-size: 42px;
    }
    :where(body.legacy-style) .countdown {
        gap: 10px;
    }
    :where(body.legacy-style) .time-box {
        min-width: 70px;
        padding: 12px 8px;
    }
    :where(body.legacy-style) .time-box span {
        font-size: 1.5rem;
    }
    :where(body.legacy-style) .time-box h2 {
        font-size: 32px;
    }
    :where(body.legacy-style) .card {
        padding: 30px;
    }
    :where(body.legacy-style) .btn,
    :where(body.legacy-style) .btn-2 {
        font-size: 15px;
    }
    :where(body.legacy-style) .mobile-fullwidth {
        width: 100%;
    }
    :where(body.legacy-style) .standard-lateral-padding {
        padding: 0px 6% 0px 6%;
    }
    body:where(.legacy-style.checkout-body),
    :where(body.legacy-style) .checkout-body {
        padding: 1rem;
    }
    :where(body.legacy-style) .checkout-wrapper {
        padding: 1.5rem;
    }
}
