/* ===========================
   RESET E VARIABILI GLOBALI
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #cc0000;
    --dark-color: #1a1a2e;
    --light-color: #f0f4f8;
    --accent-color: #ff6b6b;
    --text-color: #2c3e50;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 102, 204, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 102, 204, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER E NAVIGAZIONE
   =========================== */

.header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* ===========================
   HAMBURGER MENU (MOBILE)
   =========================== */

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(rgba(44, 36, 22, 0.6), rgba(44, 36, 22, 0.6)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f5f1ed" width="1200" height="600"/><path fill="%23d4a574" opacity="0.1" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===========================
   BOTTONI
   =========================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   SEZIONI GENERICHE
   =========================== */

.section {
    padding: 80px 20px;
}

.section:nth-child(odd) {
    background-color: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===========================
   SEZIONE DESCRIZIONE
   =========================== */

.descrizione .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.info-box {
    background: white;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.info-box h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* ===========================
   SEZIONE CAMERE
   =========================== */

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.room-card {
    background: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.room-card h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding: 20px 30px 0 30px;
    margin-top: 0;
}

.room-card ul {
    list-style: none;
    padding: 0 30px 30px 30px;
}

.room-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.room-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.highlight {
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 30px;
    font-size: 1.1rem;
}

/* ===========================
   SEZIONE SERVIZI
   =========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.service-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.service-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-desc {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ===========================
   SEZIONE GALLERIA
   =========================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ===========================
   LIGHTBOX MODAL
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 30px;
    color: var(--primary-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   SEZIONE CONTATTI
   =========================== */

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.contact-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        gap: 20px;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        justify-content: flex-start;
    }
    
    .nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .logo {
        height: 45px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .descrizione .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 10px;
    }
    
    .logo {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .hamburger {
        margin-left: auto;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
        margin: 4px 0;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 30px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
