/* =============================
   RESET & BASE
   ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #e30613;
    --red-dark: #b80510;
    --bg: #0d0d0d;
    --bg-mid: #141414;
    --bg-light: #1a1a1a;
    --bg-card: #161616;
    --white: #ffffff;
    --off-white: #cccccc;
    --muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Barlow', sans-serif;
    --font-cond: 'Barlow Condensed', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 19px;
    /* Aumentato base a 19px */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    hyphens: auto;
    -webkit-hyphens: auto;
}

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

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

ul {
    list-style: none;
}

/* =============================
   NAVBAR / HEADER
   ============================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-title {
    font-family: var(--font-cond);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-cond);
    font-size: 15px;
    /* Aumentato da 13px */
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--off-white);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links .nav-cta {
    background-color: var(--red);
    color: var(--white);
    padding: 10px 24px;
    /* Leggermente più grande */
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    /* Aggiunto font-size */
    transition: background-color 0.2s, transform 0.2s;
}

.nav-links .nav-cta:hover {
    background-color: var(--red-dark);
    transform: translateY(-1px);
    color: var(--white);
}

/* =============================
   HERO SECTION
   ============================= */
.hero-section {
    display: flex;
    justify-content: center;
    /* Centriamo il contenuto su schermi enormi */
    min-height: 80vh;
    max-height: 850px;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #0d0d0d 45%, #1a0e0e 100%);
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    /* Uniformato a 1200px come sul laptop */
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(227, 6, 19, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 0 0 45%;
    padding: 6rem 2rem 6rem 4vw;
    position: relative;
    z-index: 5;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-cond);
    font-size: 15px;
    /* Aumentato da 14px */
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-cond);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--red);
    margin: 1px;
}

.hero-desc {
    font-size: 19px;
    color: var(--off-white);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-cond);
    font-size: 15px;
    /* Aumentato da 13px */
    font-weight: 700;
    letter-spacing: 2px;
    padding: 16px 36px;
    /* Aumentato padding */
    border-radius: 3px;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35);
}

.hero-image {
    flex: 0 0 55%;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #0d0d0d 0%, transparent 100%);
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg);
    object-position: center;
    max-height: 900px;
    filter: brightness(0.85) contrast(1.1);
}

.hero-model-tag {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-cond);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.about-section {
    background: var(--bg-mid);
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1200px;
    /* Uniformato a 1200px */
    margin: 0 auto;
}

.about-image {
    flex: 0 0 45%;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background-color: var(--bg-mid);
    filter: brightness(0.85) contrast(1.05);
}

.about-content {
    flex: 1;
    padding: 5rem 6rem 5rem 5rem;
}

.section-label {
    display: block;
    font-family: var(--font-cond);
    font-size: 15px;
    /* Aumentato da 14px */
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.about-content h2,
.gallery-header h2,
.eventi-section h2 {
    font-family: var(--font-cond);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.about-content p {
    font-size: 18px;
    /* Aumentato a 18px come gli altri paragrafi */
    color: var(--off-white);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 550px;
    /* Allargato per il testo più grande */
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-cond);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    display: block;
    font-family: var(--font-cond);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 15px;
    /* Aumentato da 13px */
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    border-bottom: 2px solid var(--red);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--red);
}

/* =============================
   GALLERY SECTION
   ============================= */
.gallery-section {
    padding: 5rem 0;
    /* Ridotto il padding laterale perché usiamo il container */
    background: var(--bg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.gallery-container {
    max-width: 1200px;
    /* Uniformato a 1200px */
    margin: 0 auto;
    padding: 0 2rem;
    /* Ridotto il padding laterale per il nuovo max-width */
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.btn-ghost {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--off-white);
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 3px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 12px;
    height: 420px;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg);
    filter: brightness(0.8);
    transition: transform 0.5s ease, filter 0.3s;
}

.gallery-main:hover img {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.gallery-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--font-cond);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--off-white);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 2px;
}

.gallery-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg);
    filter: brightness(0.75);
    transition: transform 0.5s ease, filter 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* =============================
   EVENTI SECTION
   ============================= */
.eventi-section {
    padding: 5rem 0;
    background: var(--bg-mid);
    position: relative;
    z-index: 2;
}

.eventi-container {
    max-width: 1200px;
    /* Uniformato a 1200px */
    margin: 0 auto;
    padding: 0 2rem;
}

.eventi-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.evento-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.evento-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.evento-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    text-align: center;
}

.evento-day {
    font-family: var(--font-cond);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.evento-month {
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--red);
    text-transform: uppercase;
}

.evento-info {
    flex: 1;
}

.evento-info h3 {
    font-family: var(--font-cond);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 4px;
}

.evento-info p {
    font-size: 13px;
    color: var(--muted);
}

.evento-badge {
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    white-space: normal;
    text-align: center;
    max-width: 150px;
}

.posto-liberi {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.pochi-posti {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.aperto-tutti {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-ghost-sm {
    font-family: var(--font-cond);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--off-white);
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 3px;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost-sm:hover {
    border-color: var(--red);
    color: var(--red);
}

/* =============================
   JOIN / FORM SECTION
   ============================= */
.join-section {
    padding: 6rem 0;
    background: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-container {
    max-width: 1200px;
    /* Uniformato a 1200px */
    margin: 0 auto;
    padding: 0 2rem;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--red), transparent);
}

.join-title {
    font-family: var(--font-cond);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
    font-style: italic;
}

.join-desc {
    font-size: 18px;
    /* Aumentato ulteriormente a 18px */
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.join-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.join-form input,
.join-form textarea {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--font-cond);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 14px 18px;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
    color: var(--muted);
    letter-spacing: 2px;
}

.join-form input:focus,
.join-form textarea:focus {
    border-color: var(--red);
}

.join-form textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-cond);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 18px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.btn-submit:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.4);
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
    background: var(--bg-mid);
    border-top: 1px solid var(--border);
    padding: 2.5rem 6rem;
}

.footer-inner {
    max-width: 1200px;
    /* Uniformato a 1200px */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-logo span {
    font-family: var(--font-cond);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red);
}

.footer-copy {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    max-width: 400px;
    line-height: 1.6;
}

/* =============================
   MOBILE MENU (GLOBAL)
   ============================= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--off-white);
    transition: all 0.3s ease;
    transform-origin: left;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
    body {
        font-size: 16px;
        /* Ridotto per mobile */
    }

    .hero-container,
    .about-container {
        flex-direction: column;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        flex: 1;
        padding: 8rem 2rem 2rem;
    }

    .hero-image {
        flex: 1;
        width: 100%;
        max-height: 50vh;
    }



    .about-image img {
        height: 300px;
        /* Ridotto per mobile */
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .about-content {
        padding: 3rem 2rem;
    }

    .gallery-section,
    .eventi-section,
    .join-section,
    .site-footer {
        padding: 3rem 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-main,
    .gallery-item {
        height: 220px;
    }

    .gallery-side {
        flex-direction: row;
    }

    .gallery-container,
    .eventi-container,
    .join-container {
        padding: 0 1.5rem;
        /* Padding più stretto su mobile */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
        max-width: 100%;
    }

    .evento-item {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* GLOBAL MOBILE MENU OVERRIDES */
    .hamburger-menu {
        display: flex;
    }

    /* .nav-cta {
        display: none !important;
    } */

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.8rem !important;
        color: #ffffff !important;
        display: block;
    }

    .nav-logo {
        z-index: 1000;
        position: relative;
    }

    /* Animazione Hamburger */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .navbar {
        padding: 0 1rem;
        height: 70px;
        /* Un po' più di spazio per il logo */
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 3rem;
        /* Forza una dimensione fissa più piccola su mobile estremo */
    }

    .hero-content {
        padding: 6rem 1.5rem 2rem;
    }
}

/* =============================
   SCROLL ANIMATIONS
   ============================= */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   COOKIE BANNER (GDPR / nLPD)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 2rem;
    z-index: 9999;
    font-family: var(--font-main);
    color: #fff;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner h3 {
    font-family: var(--font-cond);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cookie-banner p a {
    color: var(--yellow);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cookie {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 20px;
    font-family: var(--font-cond);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background: rgba(255,255,255,0.1);
}

.btn-cookie.primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-cookie.primary:hover {
    background: transparent;
    color: var(--red);
}

/* ===================================
   GTRANSLATE FLAGS WIDGET
=================================== */
.gtranslate_wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rimuoviamo lo sfondo e il border di default del widget */
.gtranslate_wrapper select,
.gtranslate_wrapper .gt_selector {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-family: inherit !important;
    cursor: pointer;
}

/* Le bandiere: allineamento verticale corretto e hover */
.gtranslate_wrapper a img,
.gt-lang-code {
    vertical-align: middle;
    opacity: 0.65;
    transition: opacity 0.25s ease, transform 0.2s ease;
    border-radius: 2px;
}

.gtranslate_wrapper a:hover img,
.gtranslate_wrapper a.active img {
    opacity: 1;
    transform: scale(1.12);
}

/* Bandiera attiva (lingua corrente) */
.gtranslate_wrapper a.active {
    outline: 1.5px solid var(--red);
    outline-offset: 2px;
    border-radius: 3px;
}