/* Variables */
:root {
    --primary-color: #B30000;
    /* South Tyrol Red */
    --primary-dark: #8a0000;
    --wood-color: #8B5A2B;
    --wood-dark: #5D3A1A;
    --gold-accent: #D4AF37;
    /* Premium Gold */
    --ice-blue: #e8f4f8;
    --text-color: #2c2c2c;
    --bg-color: #f4f4f4;
    --glass-bg: rgba(255, 255, 255, 0.15);
    /* More transparent for winter feel */
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    /* Subtle winter texture */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 20%),
        linear-gradient(to bottom, #f0f4f8, #e0e8f0);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    width: 90%;
    max-width: 1400px;
    /* Wider for more premium feel */
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 2px;
    /* Sharper, more elegant */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

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

/* Navigation - Premium Glass */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Ultra clear glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    /* White on hero */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold-accent);
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
    text-shadow: none;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    /* Balance top and bottom */
    background-attachment: scroll;
    /* Fixed can cause cropping issues, scroll ensures bottom is bottom */
    z-index: -2;
    transform: scale(1.0);
    /* Reset scale to avoid cropping */
    filter: brightness(0.9) contrast(1.1);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Base dimming */
    z-index: -1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    /* Dark semi-transparent box */
    backdrop-filter: blur(10px);
    /* Blur the background behind text */
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    /* Reduced shadow since we have a box */
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    vertical-align: middle;
    margin: 0 15px;
}

/* Section Headers */
.section-title {
    font-size: 3.5rem;
    color: var(--wood-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 1rem auto 4rem;
}

/* Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

/* About Section */
.about-section {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #555;
    font-weight: 300;
}

.about-images {
    position: relative;
    height: 450px;
}

.image-wrapper {
    position: absolute;
    width: 75%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    /* Cleaner lines */
    overflow: hidden;
    transition: transform 0.5s ease;
}

.image-wrapper:first-child {
    top: 0;
    left: 0;
    z-index: 1;
}

.image-wrapper.offset-image {
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 10px solid white;
}

.image-wrapper:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* Seasons Section */
.season-block {
    padding: 120px 0;
    position: relative;
}

.season-block.summer {
    background-color: #fff;
}

.season-block.winter {
    background: var(--ice-blue);
    /* Light winter blue */
    color: var(--text-color);
}

.season-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.season-image img {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.season-content {
    background: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.season-content h3 {
    font-size: 3rem;
    color: var(--wood-color);
    margin-bottom: 1.5rem;
}

.season-block.winter h3 {
    color: var(--wood-dark);
}

.season-content p {
    font-size: 1.1rem;
}

.season-block.winter p {
    color: #555;
}

/* Culinary Section */
.culinary-section {
    background-image: url('IMG_8227.webp');
    /* Use interior as subtle bg */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.culinary-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
}

.culinary-section .container {
    position: relative;
    z-index: 1;
}

.culinary-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.culinary-card {
    max-width: 700px;
    background: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Mobile first */
}

@media(min-width: 768px) {
    .culinary-card {
        flex-direction: row;
        align-items: center;
    }

    .culinary-card img {
        width: 50%;
        height: 100%;
        object-fit: cover;
    }

    .culinary-card .card-body {
        width: 50%;
        text-align: left;
        padding: 3rem;
    }
}

.culinary-card h4 {
    color: var(--wood-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Panorama Section */
.panorama-section {
    padding: 0;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.panorama-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.panorama-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.5s;
}

.panorama-section:hover .panorama-overlay {
    background: rgba(0, 0, 0, 0.1);
    /* Lighten on hover */
}

.panorama-overlay h2 {
    color: white;
    font-size: 5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding: 0;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;

    .hero-bg {
        background-position: center top;
        /* Ensure top logo is visible on mobile */
    }
}

.contact-logo {
    max-width: 180px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--wood-dark);
    font-size: 2.5rem;
}

.contact-details {
    margin: 2rem 0;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    font-weight: 600;
    color: var(--wood-color);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: #666;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48ZyBmaWxsPSIjOUM5MkFDIiBmaWxsLW9wYWNpdHk9IjAuMiIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGN4PSIzIiBjeT0iMyIgcj0iMyIvPjxjaXJjbGUgY3g9IjEzIiBjeT0iMTMiIHI9IjMiLz48L2c+PC9zdmc+');
    filter: grayscale(100%);
    /* Elegant map */
    transition: filter 0.3s;
}

.map-placeholder:hover {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background-color: #111;
    color: #666;
    padding: 4rem 0;
    font-size: 0.95rem;
    border-top: none;
}

.footer-links a {
    margin: 0 15px;
    transition: color 0.3s;
}

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

/* Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-subtitle::before,
    .hero-subtitle::after {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        align-items: flex-end;
        /* Move text to bottom */
        padding-bottom: 100px;
        /* Space from bottom */
    }

    .hero-content {
        padding: 1.5rem;
        /* Smaller padding */
        width: 90%;
        margin: 0 auto;
        background: rgba(0, 0, 0, 0.3);
        /* More transparent */
        backdrop-filter: blur(5px);
        /* Less blur */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Smaller title */
    }

    .hero-bg {
        background-position: center top;
        /* Ensure top logo is visible */
        background-size: cover;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .season-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-images {
        height: 350px;
    }

    .nav-logo {
        display: none;
        /* Hide logo on mobile */
    }

    .hamburger {
        display: none;
        /* Hide hamburger */
    }

    .nav-links {
        display: flex;
        /* Show links */
        flex-wrap: nowrap;
        /* Force single line */
        justify-content: center;
        gap: 8px;
        /* Smaller gap */
        width: 100%;
        padding: 0 5px;
    }

    .nav-links a {
        font-size: 0.75rem;
        /* Smaller font */
        color: white;
        text-shadow: none;
        padding: 6px 12px;
        background: rgba(0, 0, 0, 0.4);
        /* Dark background for contrast */
        backdrop-filter: blur(4px);
        border-radius: 20px;
        /* Pill shape */
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    /* Remove the previous active/toggle logic styles if they conflict, 
       but since we are overriding .nav-links display, it should be fine. 
       We just need to ensure they look good. */

    .desktop-only {
        display: none;
    }

    .navbar {
        padding: 10px 0;
        /* Reduce padding to save space */
    }

    .season-grid.reverse .season-content {
        order: 0;
    }

    .season-grid.reverse .season-image {
        order: 1;
    }

    .culinary-card {
        flex-direction: column;
    }

    .culinary-card img,
    .culinary-card .card-body {
        width: 100%;
    }

    .panorama-overlay h2 {
        font-size: 2rem;
        /* Reduce from 5rem to fit mobile screen */
        letter-spacing: 2px;
        padding: 0 1rem;
    }
}