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

:root {
    --primary-color: #7a6952;
    --secondary-color: #a67c52;
    --accent-color: #c17a4f;
    --sage-green: #8c9a7e;
    --terracotta: #d4826a;
    --warm-beige: #f4ede4;
    --cream: #faf7f2;
    --text-dark: #3d3328;
    --text-light: #ffffff;
    --bg-light: #faf7f2;
    --bg-alt: #f4ede4;
    --shadow-soft: 0 2px 8px rgba(61, 51, 40, 0.08);
    --shadow: 0 4px 12px rgba(61, 51, 40, 0.12);
    --shadow-lg: 0 8px 24px rgba(61, 51, 40, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--cream);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* Navbar */
.navbar {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(122, 105, 82, 0.1);
}

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

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    mix-blend-mode: darken;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(122, 105, 82, 0.75) 0%, rgba(140, 154, 126, 0.7) 100%),
                url('../images/hero.jpg'),
                url('../images/hero.svg'),
                linear-gradient(135deg, #7a6952 0%, #8c9a7e 100%);
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 160px 20px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-light);
    line-height: 1.35;
    animation: fadeInUp 1s ease;
}

.hero-logo-wrapper {
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-logo {
    height: 180px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 1.4s ease;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 16px 48px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.6s ease;
    box-shadow: 0 4px 15px rgba(193, 122, 79, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 122, 79, 0.4);
    background: var(--terracotta);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 90px 20px;
    background-color: var(--cream);
}

.section-alt {
    background: linear-gradient(to bottom, var(--warm-beige) 0%, var(--bg-alt) 100%);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3.5rem;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    opacity: 0.9;
}

.about-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image picture {
    display: block;
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

/* Legacy placeholder support */
.image-placeholder {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(122, 105, 82, 0.9), transparent);
    color: var(--text-light);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-light);
}


/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.room-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(122, 105, 82, 0.1);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.8rem;
}

.room-icon svg {
    width: 100%;
    height: 100%;
}

.room-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.room-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Amenities Section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.amenity-item {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 16px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 105, 82, 0.08);
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.amenity-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.amenity-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-weight: 500;
}

.amenity-item p {
    color: var(--secondary-color);
    font-size: 1rem;
    opacity: 0.9;
}

/* Activities Section */
.activities-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.activity-category {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(122, 105, 82, 0.1);
}

.activity-category h3 {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.activity-category ul {
    list-style: none;
}

.activity-category li {
    padding: 0.7rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.7;
}

.activity-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3.5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-logo {
    height: 90px;
    width: auto;
    mix-blend-mode: darken;
}

.contact-info p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    color: var(--text-dark);
    opacity: 0.9;
}

.booking-links {
    margin-top: 2.5rem;
}

.booking-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.booking-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 14px 36px;
    margin: 0.5rem 0.8rem 0.5rem 0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(193, 122, 79, 0.25);
}

.booking-button:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(193, 122, 79, 0.35);
}

.map-placeholder {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--bg-alt) 100%);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(122, 105, 82, 0.1);
}

.map-overlay {
    text-align: center;
    color: var(--text-dark);
}

.map-overlay h4 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.map-overlay p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--sage-green) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin: 0.6rem 0;
    opacity: 0.95;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .activities-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .rooms-grid,
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

.email-link {
    color: #8c6f54;
    text-decoration: none;
    border-bottom: 1px dotted #8c6f54;
    transition: all 0.2s ease-in-out;
}

.email-link:hover {
    color: #b5895a;
    border-bottom-color: #b5895a;
}

.phone-link {
    color: #8c6f54;
    text-decoration: none;
    border-bottom: 1px dotted #8c6f54;
    transition: all 0.2s ease-in-out;
}

.phone-link:hover {
    color: #b5895a;
    border-bottom-color: #b5895a;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-selector button {
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    line-height: 1;
}

.language-selector button:hover {
    background: rgba(122, 105, 82, 0.1);
    border-color: rgba(122, 105, 82, 0.2);
}

.language-selector button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(122, 105, 82, 0.3);
}

.language-selector button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 105, 82, 0.2);
}
/* Posizione Section */
.posizione-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.posizione-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.posizione-text h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.posizione-list {
    list-style: none;
    padding: 0;
}

.posizione-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(122, 105, 82, 0.12);
    font-size: 1rem;
    color: var(--text-dark);
}

.posizione-list li:last-child {
    border-bottom: none;
}

.posizione-cta {
    background: var(--warm-beige);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.posizione-cta p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Internal SEO links */
.seo-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.seo-link:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

/* SEO Content Section */
.seo-text {
    max-width: 860px;
    margin: 2.5rem auto 0;
}

.seo-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
    opacity: 0.88;
    margin-bottom: 1.6rem;
}

.seo-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 0.8rem;
    font-weight: 500;
}

.seo-cta-text {
    background: var(--warm-beige);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.02rem !important;
}

@media (max-width: 768px) {
    .posizione-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
