:root {
        --coral: #fe3053;
        --cyan: #0097b2;
        --ink: #142b36;
        --muted: #61737b;
        --paper: #ffffff;
        --soft: #f3f8f9;
        --line: #e4edef;
        --radius: 24px;
        --shadow: 0 18px 50px rgba(20,43,54,.09);
    }

    * {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        color: var(--ink);
        font-family: "DM Sans", sans-serif;
        background: #fff;
        line-height: 1.6;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    img {
        max-width: 100%;
        display: block;
    }

    .container {
        width: min(1160px, calc(100% - 48px));
        margin: auto;
    }

    h1, h2, h3 {
        font-family: Manrope, sans-serif;
        line-height: 1.12;
        letter-spacing: -.035em;
    }

    h1 {
        font-size: clamp(2.7rem, 6vw, 5.3rem);
        margin: 0 0 22px;
        font-weight: 800;
    }

    h2 {
        font-size: clamp(2rem, 4vw, 3.4rem);
        margin: 0 0 18px;
        font-weight: 800;
    }

    h3 {
        font-size: 1.35rem;
        margin: 0 0 12px;
    }

    p {
        margin: 0 0 16px;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--cyan);
        font-size: .78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .16em;
    }

    .eyebrow:before {
        content: "";
        width: 26px;
        height: 2px;
        background: var(--coral);
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 14px 22px;
        border-radius: 999px;
        font-weight: 700;
        transition: .25s;
        border: 1px solid transparent;
        cursor: pointer;
    }

    .btn:hover {
        transform: translateY(-3px);
    }

    .btn-primary {
        background: var(--coral);
        color: white;
        box-shadow: 0 10px 25px #fe305333;
    }

    .btn-dark {
        background: var(--ink);
        color: white;
    }

    .btn-turquoise{
background: #0097b2;
    color: #fff !important;
}

    .btn-outline {
        border-color: #ffffff80;
        color: #fff;
    }

/* Pulsante compatto */
.btn-small {
    padding: 9px 18px;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 30px;
}

/* =====================================================
    HEADER E NAVIGAZIONE
    ===================================================== */

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #ffffffed;
        backdrop-filter: blur(14px);
        border-bottom: 1px solid #eaf0f1;
    }

    .nav {
        height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .brand {
        display: flex;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
    }

    .brand img {
        display: block;
        width: auto;
        height: 58px;
        max-width: 190px;
        object-fit: contain;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 28px;
        font-weight: 700;
        font-size: .92rem;
    }

    .nav-links a:not(.btn):hover {
        color: var(--coral);
    }

    .nav-links .btn {
        padding: 11px 18px;
        color: white;
    }

    .nav-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 7px;
        height: 100%;
    }

    .chevron {
        font-size: 1.1rem;
        transition: transform .2s;
    }

    .nav-dropdown:hover .chevron,
    .nav-dropdown:focus-within .chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -18px;
        min-width: 245px;
        padding: 12px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 2px;
        z-index: 110;
    }

    /* Evita che il menu scompaia durante il passaggio del mouse */
    .nav-dropdown-menu:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 14px;
        top: -14px;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu a {
        padding: 10px 12px;
        border-radius: 9px;
        font-size: .88rem;
        white-space: nowrap;
    }

    .nav-dropdown-menu a:hover {
        background: var(--soft);
        color: var(--coral);
    }

    .menu-toggle {
        display: none;
        background: none;
        border: 0;
        font-size: 1.8rem;
        color: var(--ink);
        cursor: pointer;
    }

    @media(max-width:1000px) {
        .nav-links {
            gap: 17px;
            font-size: .85rem;
        }
    }

    @media(max-width:800px) {

        .nav {
            height: 70px;
        }

        .nav-links {
            display: none;
            position: absolute;
            top: 70px;
            left: 0;
            right: 0;
            background: white;
            border-bottom: 1px solid var(--line);
            padding: 18px 24px 24px;
            align-items: stretch;
            gap: 0;
            flex-direction: column;
            box-shadow: 0 18px 30px #142b3612;
        }

        .nav-links.open {
            display: flex;
        }

        .nav-links > a {
            padding: 12px 0;
        }

        .nav-links .btn {
            margin-top: 12px;
            align-self: flex-start;
        }

        .nav-dropdown {
            display: block;
            height: auto;
        }

        .nav-dropdown-toggle {
            padding: 12px 0;
            height: auto;
        }

        .nav-dropdown-menu {
            display: flex;
            position: static;
            box-shadow: none;
            border: 0;
            border-radius: 0;
            padding: 0 0 8px 14px;
            min-width: 0;
            gap: 0;
        }

        .nav-dropdown-menu a {
            padding: 8px 10px;
            white-space: normal;
        }
    }


    .nav-dropdown-heading {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .submenu-toggle {
        display: none;
        border: 0;
        background: transparent;
        color: var(--ink);
        font-size: 1.1rem;
        cursor: pointer;
    }

    .dropdown-arrow {
        transition: transform .2s;
    }

    @media(max-width:800px) {

        .nav-dropdown-heading {
            justify-content: space-between;
        }

        .submenu-toggle {
            display: block;
            padding: 10px 14px;
        }

        .nav-dropdown-menu {
            display: none;
        }

        .nav-dropdown.submenu-open .nav-dropdown-menu {
            display: flex;
        }

        .nav-dropdown.submenu-open .submenu-toggle {
            transform: rotate(180deg);
        }
    }

/* =====================================================
    FOOTER
    ===================================================== */

    footer {
        background: #10242d;
        color: white;
        padding: 58px 0 25px;
    }

    .footer-grid {
        display: flex;
        justify-content: space-between;
        gap: 50px;
        padding-bottom: 38px;
    }

    .footer-brand {
        max-width: 350px;
    }

    .footer-brand img {
        width: 160px;
        background: white;
        border-radius: 10px;
        padding: 8px;
        margin-bottom: 16px;
    }

    .footer-brand p {
        color: #b5c4c9;
        font-size: .92rem;
    }

    .footer-links {
        display: flex;
        gap: 22px;
        flex-wrap: wrap;
        align-content: start;
    }

    .footer-links a {
        color: #d2dce0;
        font-size: .9rem;
    }

    .footer-links a:hover {
        color: white;
    }

    .copyright {
        border-top: 1px solid #ffffff20;
        padding-top: 20px;
        color: #91a4ab;
        font-size: .8rem;
    }

@media(max-width:800px) {
        .footer-grid {
            display: block;
        }

        .footer-links {
            margin-top: 25px;
        }
    }

.back-soft{
background: var(--soft) !important;
}


/* ==========================================
   POPUP CONTATTI
========================================== */

.contact-modal[hidden] {
    display: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 40, .76);
    backdrop-filter: blur(5px);
}

.contact-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    animation: contactAppear .3s ease;
}

@keyframes contactAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-modal-close {
    position: absolute;
    top: 17px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-size: 27px;
    cursor: pointer;
    line-height: 1;
}

.contact-modal-header {
    margin-bottom: 25px;
    padding-right: 25px;
}

.contact-modal-header h2 {
    font-size: clamp(26px, 4vw, 34px);
    margin: 10px 0;
}

.contact-modal-header p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* Campi */

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label,
.contact-interests > label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f9fbfc;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,151,178,.10);
}

.contact-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Interessi */

.contact-hint {
    color: var(--muted);
    font-size: 13px;
    margin: -3px 0 5px;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.contact-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.contact-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-option span {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
}

.contact-option input:checked + span {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
}

.contact-option input:focus-visible + span {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

/* Privacy */

.contact-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.contact-privacy input {
    margin-top: 3px;
    accent-color: var(--cyan);
}

.contact-privacy a {
    color: var(--cyan);
    font-weight: 700;
}

/* Invio */

.contact-submit {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 50px;
    background: var(--coral);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
}

.contact-submit:hover {
    background: var(--cyan);
    transform: translateY(-2px);
}

.contact-submit span {
    margin-left: 8px;
}

.contact-required {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
}

/* Messaggi */

.contact-error {
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff0f1;
    color: #b4233b;
    font-size: 14px;
}

.contact-success {
    text-align: center;
    padding: 30px 10px;
}

.contact-success > span {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6f7f2;
    color: #13845e;
    font-size: 30px;
    margin-bottom: 15px;
}

.contact-success h3 {
    color: var(--ink);
    font-size: 22px;
}

.contact-success p {
    color: var(--muted);
    line-height: 1.6;
}

/* Campo anti-spam */

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mobile */

@media (max-width: 600px) {

    .contact-modal {
        padding: 10px;
    }

    .contact-modal-box {
        padding: 28px 20px;
        border-radius: 19px;
        max-height: 94vh;
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-field-full {
        grid-column: auto;
    }

    .contact-options {
        gap: 7px;
    }

    .contact-option span {
        padding: 8px 11px;
        font-size: 11px;
    }
}

@media(max-width:800px) {
    .menu-toggle {
        display: block;
        z-index: 120;
    }
}



/* ==========================================
   POPUP SICILIAN GAME EXPO
========================================== */

.expo-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 20, 35, 0.78);
    backdrop-filter: blur(5px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.expo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.expo-popup {
    position: relative;
    width: 100%;
    max-width: 540px;

    background: #fff;
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 25px 80px rgba(0,0,0,.3);

    transform: translateY(25px) scale(.97);
    transition: transform .35s ease;
}

.expo-popup-overlay.active .expo-popup {
    transform: translateY(0) scale(1);
}

.expo-popup-content {
    padding: 55px 45px 45px;
    text-align: center;
}

.expo-popup-label {
    display: inline-block;
    background: rgba(254,48,83,.10);
    color: #fe3053;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 9px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.expo-popup-content h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    color: #172033;
    margin: 0 0 20px;
}

.expo-popup-content p {
    color: #586174;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.expo-popup-content p strong {
    color: #fe3053;
}

.expo-popup-highlight {
    font-weight: 600;
    color: #172033 !important;
    margin-top: 20px;
}

.expo-popup-button {
    display: inline-block;
    margin-top: 18px;
    padding: 16px 27px;

    background: #fe3053;
    color: #fff !important;

    border-radius: 50px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .5px;

    transition: background .25s ease, transform .25s ease;
}

.expo-popup-button:hover {
    background: #0097b2;
    transform: translateY(-3px);
}

.expo-popup-footer {
    display: block;
    margin-top: 22px;
    color: #9299a6;
    font-size: .82rem;
}

.expo-popup-close {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;
    background: #f2f3f5;

    color: #172033;
    font-size: 1.7rem;
    line-height: 1;

    cursor: pointer;
    transition: background .2s ease;
}

.expo-popup-close:hover {
    background: #ffe1e6;
    color: #fe3053;
}

/* MOBILE */

@media(max-width: 600px) {

    .expo-popup {
        border-radius: 20px;
    }

    .expo-popup-content {
        padding: 50px 25px 35px;
    }

    .expo-popup-content p {
        font-size: .95rem;
    }

    .expo-popup-button {
        width: 100%;
        padding: 15px 12px;
        font-size: .8rem;
    }

}

