
:root {
    --primary: #2d4a22; /* Verde foresta  */
    --primary-hover: #3c612e; /* Verde foresta più chiaro  */
    --accent: #b37340; /* Marrone */
    --accent-hover: #c9854f;
    --bg-light: #1a1614; /* Marrone scurissimo  */
    --bg-white: #241f1c; /* Marrone scuro  */
    --text-main: #f0eadd; /* Panna */
    --text-light: #a89f91; /* Crema  */
    --border: #3d352e; /* Bordo scuro in tinta */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
}

h1, h2, h3, .brand-logo {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Tipografia */
p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-light);
    transform: translateY(-2px);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(26, 22, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('imagini /1.jpeg') center/cover;
}

/* Gradiente Verde Foresta scuro a Marrone scuro */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(45, 74, 34, 0.85) 0%, rgba(26, 22, 20, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Quick Stats Bar */
.quick-stats {
    background-color: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    margin-top: -30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-size: 1.2rem;
    color: #ffffff;
}

.stat-text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* About / La Casa */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Carousel Styles (sostituisce .about-image-grid) */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--accent);
}

/* Amenities / Servizi */
.amenities {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.amenity-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.amenity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.amenity-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Booking & Location */
.bl-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.booking-box {
    background-color: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #3c612e;
}

.booking-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.booking-box p {
    color: #e0e6dd;
}

.contact-methods {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.contact-row:hover {
    background: rgba(0,0,0,0.3);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-row span {
    display: block;
    font-size: 0.85rem;
    color: #c4ccbf;
}

.contact-row strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.house-rules {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.house-rules h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.house-rules ul {
    list-style: none;
}

.house-rules li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e0e6dd;
    font-size: 0.95rem;
}

.location-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.location-info {
    padding-bottom: 1.5rem;
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.distances {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.distances span {
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    font-weight: 500;
}

.distances i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.map-wrapper {
    flex-grow: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 350px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background-color: #120f0e;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-light);
    margin: 0;
}

.footer-links {
    text-align: right;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg-white);
    border-radius: 50%;
    color: var(--text-main);
    margin-left: 0.5rem;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container, .bl-container { grid-template-columns: 1fr; gap: 3rem; }
    .carousel-container { max-width: 100%; aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .booking-box { padding: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { text-align: center; }
    .carousel-container { aspect-ratio: 4 / 3; }
    .carousel-btn { padding: 0.5rem; font-size: 1rem; }
}


.calendar-wrapper {
    max-width: 450px;
    margin: 2rem auto;
    background-color: #241f1c; 
    border: 1px solid #3d352e; 
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#calendar-month-year {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.3rem;
}

.btn-cal {
    background: transparent;
    border: 1px solid #3d352e;
    color: #f0eadd; /* Testo panna (var(--text-main)) */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cal:hover {
    background-color: #2d4a22; /* Verde foresta (var(--primary)) */
    border-color: #2d4a22;
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #b37340; /* Rame/Marrone (var(--accent)) */
    margin-bottom: 0.8rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
}

/* Stile giorni Liberi */
.calendar-day.available {
    background-color: rgba(45, 74, 34, 0.2); 
    color: #8fcc81;
    border: 1px solid rgba(45, 74, 34, 0.4);
}

/* Stile giorni Occupati */
.calendar-day.booked {
    background-color: rgba(179, 115, 64, 0.15); 
    color: #a89f91;
    text-decoration: line-through;
    opacity: 0.4;
    border: 1px solid rgba(179, 115, 64, 0.2);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f0eadd;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.legend-color.available { background-color: #4a753c; }
.legend-color.booked { background-color: rgba(179, 115, 64, 0.5); }