/* ==========================================
   CSS RESET & BASE VARIABLES (Palette Bianco/Rosso)
   ========================================== */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f9f9f9;
    --text-main: #333333;
    --text-muted: #666666;
    --primary-red: #8b1e24;
    --red-hover: #a1262d;
    --white: #ffffff;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   COMPONENTS
   ========================================== */
.btn {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

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

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

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    animation: headerIn 0.75s var(--ease) both;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(139, 30, 36, 0.12);
    box-shadow: 0 8px 28px rgba(139, 30, 36, 0.08);
}

@keyframes headerIn {
    from { transform: translateY(-110%); }
    to { transform: translateY(0); }
}

.nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary-red);
    border-radius: 1px;
    pointer-events: none;
    transition: left 0.4s var(--ease), width 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s var(--ease);
    opacity: 0;
}

.nav-indicator.visible {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
    transition: color 0.35s var(--ease), transform 0.4s var(--ease);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo picture {
    display: block;
    height: 60px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a.nav-link {
    position: relative;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    height: auto;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0;
    transition: color 0.3s var(--ease), transform 0.35s var(--ease);
}

nav a.nav-link:hover,
nav a.nav-link.active {
    color: var(--primary-red);
}

nav a.nav-link:hover {
    transform: translateY(-1px);
}

nav a.nav-link::after {
    content: none;
}

/* Stile per le icone social in bella vista nell'header */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 10px;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.social-icons a {
    color: var(--primary-red);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.lang-selector select {
    display: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(139, 30, 36, 0.2);
    background: var(--white);
    color: var(--primary-red);
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 30, 36, 0.06);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.header-lang-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.header-lang-code {
    min-width: 1.2em;
}

.header-lang:hover,
.header-lang:focus-visible {
    border-color: var(--primary-red);
    box-shadow: 0 6px 16px rgba(139, 30, 36, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.header-lang:active {
    transform: translateY(0);
}

.policy-page header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.policy-page header .logo { justify-self: start; }
.policy-page header nav { justify-self: center; }
.policy-page header .header-tools { justify-self: end; }

.policy-main.container {
    padding-left: clamp(1.35rem, 7vw, 2.75rem);
    padding-right: clamp(1.35rem, 7vw, 2.75rem);
    max-width: 760px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
}

.header-ig {
    display: none;
    color: var(--primary-red);
    align-items: center;
    transition: transform 0.35s var(--ease);
}

.header-ig:hover {
    transform: scale(1.12);
}

.header-ig svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================
   LAYOUT & SECTIONS
   ========================================== */
section {
    padding: 5rem 5%;
}

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

h1, h2, h3 { margin-bottom: 1.5rem; color: var(--primary-red); }

/* Hero + Scopri Il Montano */
#scopri {
    margin-top: var(--header-h);
    position: relative;
    overflow: hidden;
    background: var(--primary-red);
    padding: 0;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
}

#scopri .container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2.5rem 5%;
}

#scopri .discover-grid {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--white);
    padding: 3.25rem 5%;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-top: 4px solid var(--primary-red);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Split Sections */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.split-text { flex: 1; }

.split-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.split-image picture {
    display: block;
    width: 100%;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s var(--ease);
}

.split-image:hover img {
    transform: scale(1.12);
}

.reverse { flex-direction: row-reverse; }

/* Aperitivo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

/* Menu Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), box-shadow 0.45s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover,
.card.reveal.in:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(139, 30, 36, 0.14);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s var(--ease);
}

.card picture {
    display: block;
    width: 100%;
    overflow: hidden;
}

.card:hover img,
.card.reveal.in:hover img {
    transform: scale(1.12);
}

.card-content {
    padding: 1.5rem;
    border-top: 4px solid var(--primary-red);
    flex-grow: 1;
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Scopri Il Montano — mosaic tiles */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}
.section-intro p { color: var(--text-muted); }

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.discover-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.discover-tile picture {
    display: block;
    width: 100%;
    height: 100%;
}

.discover-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.discover-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,8,8,0.78) 0%, rgba(20,8,8,0.15) 55%, rgba(20,8,8,0.08) 100%);
}

.discover-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.15rem 1.2rem;
    text-align: left;
    color: #fff;
}

.discover-label strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.discover-label em {
    display: block;
    margin-top: 0.2rem;
    font-style: normal;
    font-size: 0.88rem;
    opacity: 0.88;
    font-weight: 400;
}

.discover-label small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    opacity: 0.9;
    font-weight: 500;
}

.discover-tile:hover img,
.discover-tile:focus-visible img {
    transform: scale(1.12);
}

.discover-tile:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.discover-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s;
}
.discover-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.discover-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 8, 0.72);
}
.discover-modal-sheet {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.4s ease;
}
.discover-modal.open .discover-modal-sheet {
    transform: none;
}
.discover-modal-sheet h3 {
    margin-bottom: 0.4rem;
}
.discover-modal-sheet p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.vegan-note {
    color: var(--primary-red);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 1.15rem;
}
.discover-modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-main);
}
.discover-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.discover-modal-grid button {
    border: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1;
    background: #eee;
}
.discover-modal-grid picture {
    display: block;
    width: 100%;
    height: 100%;
}
.discover-modal-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.discover-modal-grid button:hover img {
    transform: scale(1.06);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,6,6,0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox picture {
    display: flex;
    max-width: min(1100px, 92vw);
    max-height: 84vh;
}
.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
    .discover-grid { grid-template-columns: 1fr; }
    .discover-modal-grid { grid-template-columns: 1fr; }
    .discover-label strong { font-size: 1.05rem; }
    .discover-label em { font-size: 0.75rem; }
}
@media (max-width: 420px) {
    .discover-grid { grid-template-columns: 1fr; gap: 0.6rem; }
}

.footer-cta {
    margin: 0.75rem 0 1rem;
    background: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
}
.footer-cta:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Reviews */
.single-review-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-red);
    max-width: 900px;
    margin: 0 auto;
}

.stars { color: var(--primary-red); margin-bottom: 1.5rem; font-size: 1.5rem;}
.author { margin-top: 2rem; font-weight: bold; font-size: 1rem; display: flex; align-items: center; gap: 10px;}

/* ==========================================
   FOOTER & WIDGETS
   ========================================== */
footer {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
}

footer p { opacity: 0.9; font-size: 0.9rem; margin-bottom: 0.5rem; }
footer a,
footer a:visited,
footer a:hover,
footer a:active {
    color: var(--white);
    text-decoration: none;
}
footer a:hover {
    opacity: 0.82;
}

.policy-main a,
.policy-main a:visited,
.policy-main a:active {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}
.policy-main a:hover {
    color: var(--red-hover);
}

.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1.25rem auto 0;
    width: fit-content;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.footer-credit span {
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.footer-credit .vuebb-mark {
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: -0.045em;
    line-height: 0.98;
    color: var(--white);
    text-decoration: none;
}
.footer-credit:hover,
.footer-credit:hover .vuebb-mark {
    color: var(--white);
    text-decoration: none;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 700px;
    margin: 0 auto;
    z-index: 9998;
    background: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--primary-red);
    color: var(--white);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(139, 30, 36, 0.4);
    transition: transform 0.3s;
}

.chat-widget:hover { transform: scale(1.1); }
.chat-widget svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */
@media (max-width: 1000px) {
    nav { gap: 1rem; }
    nav a.nav-link { font-size: 0.85rem; }
}

@media (max-width: 900px) {
    .split-section { flex-direction: column; gap: 2rem; }
    .reverse { flex-direction: column; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .header-ig { display: flex; }
    .header-tools { gap: 10px; }
    .header-lang { padding: 0.32rem 0.62rem 0.32rem 0.45rem; }
    .nav-indicator { display: none; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        display: none;
    }
    nav.active { display: flex; }
    nav a.nav-link {
        height: auto;
        padding: 0.55rem 0;
    }
    nav a.nav-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.15rem;
        width: 0;
        height: 2px;
        background: var(--primary-red);
        transform: translateX(-50%);
        transition: width 0.35s var(--ease);
    }
    nav a.nav-link:hover::after,
    nav a.nav-link.active::after {
        width: 70%;
    }

    .social-icons { border-left: none; border-top: 1px solid #ddd; padding-top: 15px; margin-top: 10px; width: 50%; justify-content: center; }
    
    .hero-content { padding: 2.25rem 5%; }
    .hero-content h1 { font-size: 2.5rem; }
    .cookie-banner { bottom: 90px; flex-direction: column; text-align: center; }
    .single-review-card { padding: 1.5rem; }

    .policy-page header {
        padding: 0 4%;
        gap: 0.35rem;
        overflow: hidden;
    }
    .policy-page nav {
        position: static;
        display: flex !important;
        width: auto;
        flex-direction: row;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    .policy-page .logo span {
        display: none;
    }
    .policy-page .logo picture,
    .policy-page .logo img {
        height: 44px;
    }
    .policy-page nav .btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    header { animation: none; }
    .nav-indicator { transition: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
