:root {
    --green:   #46b863;
    --dark:   #10242f;
    --color-1:   #d1d1d1;
    --color-2:  #7b7972;
    --bg-form-card: #ece8db;
}

* { box-sizing: border-box; }

body {
    background-color: var(--dark);
    color: var(--testo);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.53;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}


.container {
    padding: 0px;
    max-width: 1400px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* ════════════════════════════════
    HEADER / NAVBAR
════════════════════════════════ */

/* Spazio fisso sopra il contenuto per compensare l'header fisso
body { padding-top: 120px; } */

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    height: 120px;
    background-color: var(--dark);
    transition: background-color .3s, height .3s, box-shadow .3s;
}

/* Stato sticky (applicato via JS allo scroll) */
.header-bar.is-sticky {
    height: 72px;
    background-color: rgba(16, 36, 47, 0.92);
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Logo ── */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 120px;
    width: auto;
    transition: height .3s;
}

.header-bar.is-sticky .site-logo img {
    height: 48px;
}

@media (max-width: 991px) {
    .site-logo img { height: 52px; }
    .header-bar.is-sticky .site-logo img { height: 42px; }
}

/* ── Menu principale ── */
.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.primary-menu > li > a {
    display: block;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.active > a {
    color: var(--verde);
}

/* ── Voce PRENOTA evidenziata ── */
.primary-menu > li.nav-prenota > a {
    color: var(--verde);
    border: 1.5px solid var(--verde);
    border-radius: 3px;
    padding: 6px 14px;
    margin-left: 6px;
    transition: background-color .2s, color .2s;
}

.primary-menu > li.nav-prenota > a:hover {
    background-color: var(--verde);
    color: #fff;
}

/* ── Dropdown ── */
.primary-menu > li {
    position: relative;
}

.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--dark);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-top: 2px solid var(--verde);
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    z-index: 200;
}

.primary-menu > li:hover .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 9px 20px;
    color: var(--testo);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s, background-color .15s;
}

.primary-menu .sub-menu li a:hover {
    color: #fff;
    background-color: rgba(70, 184, 99, 0.15);
}

/* ── Chevron dropdown ── */
.has-submenu > a::after {
    content: ' ▾';
    font-size: 0.65rem;
    opacity: .7;
}

/* ── Hamburger mobile ── */
.nav-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.nav-toggler span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ── Menu mobile ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 1100;
    overflow-y: auto;
    padding: 80px 24px 40px;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.84);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
}

.mobile-menu ul li a:hover { color: var(--verde); }

.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 991px) {
    .primary-menu { display: none; }
    .nav-toggler   { display: flex; }
    body           { padding-top: 80px; }
    .header-bar    { height: 80px; }
    .header-bar.is-sticky { height: 64px; }
}

/* ════════════════════════════════
    MAIN / FOOTER
════════════════════════════════ */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    background-color: var(--dark);
    border-top: none;
    color: var(--color-1);
    padding: 28px 0;
    font-size: 0.9rem;
    text-align: center;
}

footer a { color: var(--green); text-decoration: none; }

/* ── Messaggi Django ── */
.alert-success { background-color: var(--verde); border: none; color: #fff; }
.alert-error   { background-color: #c0392b;      border: none; color: #fff; }