/* ============================================
   ENKAMA — style.css 
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #000000;
    --bg2:      #0a0a0a;
    --text:     #f5f0e8;
    --text-mid: #888078;
    --accent:   #6b7c45;   /* verde oliva */
    --accent-h: #7d9150;   /* verde oliva hover */
    --border:   rgba(245,240,232,0.1);

    --f-title: 'Bebas Neue', sans-serif;
    --f-body:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── NAVBAR ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo img { height: 28px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a {
    font-family: var(--f-title);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--text-mid);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── HERO ─── */
.hero {
    position: relative;
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background-image: url('/enkama/assets/img/video-hero.mp4'); 
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: min(500px, 75vw);
    height: auto;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--f-title);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 8px;
    color: var(--text-mid);
}

.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll span {
    font-family: var(--f-title);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-mid);
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-mid), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── SEZIONE EVENTI ─── */
.section-eventi {
    padding: 6rem 0 4rem;
    background: var(--bg);
     overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.season-title {
    font-family: var(--f-title);
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 6px;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1;
}

/* ─── CAROSELLO ─── */
.carousel-wrapper {
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
    padding: 0 5rem;
}

.carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.evento-slide {
    min-width: 33.3333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.evento-card {
    width: min(280px, 80vw);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.evento-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
}
.evento-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.evento-card:hover .evento-img img { transform: scale(1.03); }

.evento-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #111;
}
.evento-placeholder img { width: 50%; opacity: 0.07; }

.evento-info {
    text-align: center;
    max-width: 420px;
}

.evento-data {
    font-family: var(--f-title);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

.evento-titolo {
    font-family: var(--f-title);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.evento-luogo {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 1.2rem;
}

/* ─── BOTTONI TICKET ─── */
.btn-ticket {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--f-title);
    font-size: 1rem;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border-radius: 4px;
}
.btn-ticket:hover { background: var(--accent-h); transform: translateY(-2px); }

.btn-passato {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mid);
    cursor: default;
    opacity: 0.5;
}
.btn-passato:hover { background: transparent; transform: none; }

.btn-soldout-front {
    background: transparent;
    border: 1px solid #e31414;
    color: #e31414;
    cursor: default;
    opacity: 0.8;
}
.btn-soldout-front:hover { background: transparent; transform: none; }

.btn-presto {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: default;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.btn-presto:hover { background: transparent; transform: none; }

/* ─── CAROUSEL BUTTONS ─── */
.carousel-btn {
    position: absolute; z-index: 10;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 48px; height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem ; }

/* ─── GALLERY ─── */
.section-gallery {
    padding: 3rem 0;
    background: var(--bg);
    overflow: hidden;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 2px;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: filter 0.3s, transform 0.4s;
}

.marquee-item:hover img {
    filter: brightness(1);
    transform: scale(1.08);
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── BOOK A TABLE BANNER ─── */
.section-booktable {
    padding: 6rem 0;
    background: #0d0d0d;
    border-top: 1px solid rgba(245,240,232,0.06);
    border-bottom: 1px solid rgba(245,240,232,0.06);
}

.booktable-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.booktable-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.booktable-pre {
    font-family: var(--f-title);
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--text-mid);
}

.booktable-title {
    font-family: var(--f-title);
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 6px;
    color: var(--text);
    line-height: 1;
}

.booktable-sub {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 1rem;
}

.btn-booktable {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--f-title);
    font-size: 1.2rem;
    letter-spacing: 4px;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
}
.btn-booktable:hover {
    background: #7d9150;
    transform: translateY(-2px);
}


/* ─── CONTATTI ─── */
.section-contatti {
    padding: 6rem 0;
    background: var(--bg);
    text-align: center;
}

.contatti-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

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

.contatto-label {
    font-family: var(--f-title);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
}
.contatto-val {
    font-size: 0.95rem;
    color: var(--text);
    transition: color 0.2s;
}
.contatto-val:hover { color: var(--accent-h); }

/* ─── FOOTER ─── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    text-align: center;
}

.footer-logo { height: 40px; opacity: 0.6; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }

.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
    color: var(--text-mid);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.footer-social a:hover { color: var(--text); 
}
.footer-social a:hover { color: var(--text); }

.footer-copy {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-mid);
}

.footer-legal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-mid);
}
.footer-legal a { color: var(--text-mid); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }
.footer-legal span { opacity: 0.3; }

.footer-admin {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-mid);
    opacity: 0.2;
    transition: opacity 0.2s;
}
.footer-admin:hover { opacity: 0.6; }

/* ─── UTILITY ─── */
.empty-state {
    padding: 4rem;
    text-align: center;
    border: 1px dashed var(--border);
    color: var(--text-mid);
    font-family: var(--f-title);
    letter-spacing: 2px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    /* NAVBAR */
    .navbar { padding: 0.9rem 1.2rem; }
    .logo img { height: 22px; }
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 1.5px; }

    /* HERO */
    .hero { height: 40vh; padding: 4rem 1.5rem 2rem; }
    .hero-logo { width: min(240px, 65vw); }
    .hero-tagline { font-size: 0.7rem; letter-spacing: 4px; }

    /* EVENTI — 1 card alla volta su mobile */
    .evento-slide { min-width: 100%; padding: 0 1rem; }
    .evento-card { width: min(300px, 80vw); }
    .carousel-wrapper { padding: 0 2.5rem; }
    .carousel-prev { left: 0.2rem; }
    .carousel-next { right: 0.2rem; }
    .season-title { font-size: clamp(2rem, 10vw, 4rem); margin-bottom: 2rem; }

    /* BOOK A TABLE */
    .booktable-title { font-size: clamp(2rem, 10vw, 4rem); }
    .btn-booktable { padding: 0.8rem 2rem; font-size: 1rem; }

    /* GALLERY */
    .section-gallery { padding: 3rem 0; }
    .marquee-item { width: 160px; height: 120px; }

    /* CONTATTI */
    .contatti-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

    /* FOOTER */
    .footer { padding: 2rem 1rem; gap: 1rem; }
    .footer-logo { height: 28px; }
}

/* ─── POP UP SIGN IN ─── */

.popup-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.popup-overlay.active { display: flex; }

.popup-box {
    background: #0d0d0d;
    border: 1px solid rgba(245,240,232,0.1);
    padding: 3rem 2.5rem;
    width: min(480px, 92vw);
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: none;
    color: #666; font-size: 1rem; cursor: pointer;
    transition: color 0.2s;
}
.popup-close:hover { color: #f5f0e8; }

.popup-logo { height: 36px; margin: 0 auto 1.5rem; }

.popup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    color: #f5f0e8;
    margin-bottom: 0.5rem;
}

.popup-sub {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 2rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.popup-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.popup-field label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

.popup-field input {
    background: #161616;
    border: 1px solid rgba(245,240,232,0.1);
    color: #f5f0e8;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.2s;
}
.popup-field input:focus { border-color: rgba(245,240,232,0.3); }

.popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.popup-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: #6b7c45;
    flex-shrink: 0;
}
.popup-consent label {
    font-size: 0.72rem;
    color: rgba(245,240,232,0.5);
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.5;
}
.popup-consent label a { color: var(--accent); }

.btn-popup-submit {
    background: var(--accent);
    color: var(--bg);
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    padding: 0.9rem;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}
.btn-popup-submit:hover { background: #f5f0e8; transform: translateY(-1px); }

.popup-ok {
    background: rgba(76,175,125,0.1);
    border: 1px solid rgba(76,175,125,0.3);
    color: #4caf7d;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}
.popup-err {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    color: #e74c3c;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}





