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

:root{
    --bg: #f7f5f2;
    --white: #ffffff;
    --text: #2f2a26;
    --muted: #6e665f;
    --gold: #b48b5f;
    --gold-dark: #8d6a45;
    --line: #e9e2d9;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 18px 40px rgba(0,0,0,0.12);
    --whatsapp: #25D366;
    --whatsapp-dark: #1fa855;
    --radius: 18px;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

a{
    color: inherit;
}

.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* HEADER */
.site-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 40px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.logo img{
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo span{
    font-size: 30px;
}

.logo:hover{
    color: var(--gold-dark);
}

nav ul{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

nav a{
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

nav a:hover{
    color: var(--gold);
    transform: translateY(-1px);
}

nav a.active{
    color: var(--gold-dark);
    font-weight: 700;
}

.btn-prenota{
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(180,139,95,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-prenota:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(180,139,95,0.35);
    color: #fff !important;
}

.btn-prenota.active{
    color: #fff !important;
}

/* HERO */
.hero{
    min-height: 78vh;
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('images/camera-king-1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.hero-content{
    max-width: 820px;
}

.hero h1{
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero p{
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 24px;
}

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

.hero-cta,
.hero-secondary{
    display: inline-block;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-cta{
    background: #fff;
    color: var(--text);
}

.hero-cta:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.hero-secondary{
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-secondary:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
}

/* CTA SU SFONDO CHIARO */
.section.center .hero-actions{
    margin-top: 20px;
    justify-content: center;
}

.section.center .hero-cta{
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(180,139,95,0.35);
}

.section.center .hero-cta:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(180,139,95,0.45);
}

.light-secondary{
    background: transparent;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
}

.light-secondary:hover{
    background: rgba(180,139,95,0.08);
    color: var(--gold-dark);
}

/* SEZIONI */
.section{
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

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

.section h1,
.section h2{
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 14px;
}

.section p.lead{
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

/* CARDS */
.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 34px;
}

.card{
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img{
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card-body{
    padding: 22px;
}

.card h2,
.card h3{
    font-size: 22px;
    margin-bottom: 10px;
}

.card p{
    color: var(--muted);
}

/* FAQ */
.faq{
    max-width: 800px;
    margin: 30px auto 0;
    text-align: left;
}

.faq-item{
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

.faq-item h3{
    font-size: 18px;
    margin-bottom: 8px;
}

.faq-item p{
    color: var(--muted);
    font-size: 15px;
}

/* CONTATTI */
.contact-wrapper{
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    gap: 24px;
}

.contact-card,
.map-card{
    background: var(--white);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover,
.map-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-card h1,
.contact-card h2{
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin-bottom: 18px;
}

.contact-card p{
    margin-bottom: 10px;
    font-size: 17px;
}

.contact-card a{
    color: var(--gold-dark);
    text-decoration: none;
}

.contact-card a:hover{
    text-decoration: underline;
}

.btn-row{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.action-btn{
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    min-width: 220px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.action-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
    text-decoration: none;
}

.action-btn.whatsapp:hover{
    border-color: var(--whatsapp);
}

.action-btn.call:hover{
    border-color: var(--gold);
}

.action-icon{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg{
    width: 22px;
    height: 22px;
}

.action-btn.whatsapp .action-icon{
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(37,211,102,0.28);
}

.action-btn.call .action-icon{
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 8px 18px rgba(180,139,95,0.28);
}

.action-text{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-label{
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.action-sub{
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.map-card iframe{
    width: 100%;
    height: 430px;
    border: 0;
    border-radius: 16px;
}

/* ELFSIGHT REVIEWS */
.elfsight-reviews-section{
    margin-top: 0;
    padding-top: 10px;
}

.elfsight-app-1de06f40-81e0-4326-8d7c-1eb548007f11{
    margin-top: 10px;
}

/* PRENOTA */
.booking-page{
    background: #fff;
}

.booking-wrap{
    margin: 0;
    padding: 0;
}

.booking-frame{
    width: 100%;
    height: calc(100vh - 84px);
    border: none;
    display: block;
}

/* WHATSAPP FLUTTUANTE */
.whatsapp-float{
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 14px 28px rgba(37,211,102,0.32);
    z-index: 2000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float svg{
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-float:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 34px rgba(37,211,102,0.42);
}

.whatsapp-float::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid rgba(37,211,102,0.16);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse{
    0%{
        transform: scale(1);
        opacity: 0.9;
    }
    70%{
        transform: scale(1.25);
        opacity: 0;
    }
    100%{
        transform: scale(1.25);
        opacity: 0;
    }
}

/* FOOTER */
.site-footer{
    background: #221f1c;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
}

.site-footer a{
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover{
    text-decoration: underline;
}

/* CAMERE CLICCABILI */
.rooms-clickable .room-card{
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    width: 100%;
    appearance: none;
}

.rooms-clickable .room-card:focus{
    outline: 3px solid rgba(180,139,95,0.35);
    outline-offset: 4px;
}

/* MODALE GALLERIA */
.modal-open{
    overflow: hidden;
}

.room-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.room-modal.active{
    display: block;
}

.room-modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}

.room-modal-content{
    position: relative;
    width: min(1100px, calc(100% - 30px));
    max-height: 88vh;
    overflow-y: auto;
    margin: 5vh auto;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 2;
}

.room-modal-content h2{
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 24px;
    padding-right: 50px;
}

.room-modal-close{
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f2f2f2;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.room-modal-close:hover{
    transform: scale(1.06);
    background: #e8e8e8;
}

.room-gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.room-gallery-grid img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-gallery-grid img:hover{
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* RESPONSIVE */
@media (max-width: 992px){
    .cards{
        grid-template-columns: 1fr 1fr;
    }

    .hero h1{
        font-size: 42px;
    }

    .room-gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MENU HAMBURGER (mobile) */
.menu-toggle{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background 0.2s ease;
    position: relative;
}

.menu-toggle span{
    display: block;
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1){ top: 14px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 26px; }

.menu-toggle:hover{
    background: rgba(180,139,95,0.10);
}

@media (max-width: 768px){
    .site-header{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        gap: 10px;
        position: relative;
    }

    .logo img{
        width: 34px;
        height: 34px;
    }

    .logo span{
        font-size: 22px;
    }

    .menu-toggle{
        display: block;
    }

    nav{
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        background: var(--white);
        border-radius: 16px;
        box-shadow: var(--shadow-hover);
        padding: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    nav.open{
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul{
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    nav ul li{
        width: 100%;
    }

    nav a{
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
    }

    nav a:hover{
        background: rgba(180,139,95,0.08);
    }

    .btn-prenota{
        display: block;
        text-align: center;
    }

    .hero{
        min-height: 68vh;
    }

    .hero h1{
        font-size: 34px;
    }

    .hero p{
        font-size: 17px;
    }

    .cards{
        grid-template-columns: 1fr;
    }

    .btn-row{
        flex-direction: column;
    }

    .action-btn{
        width: 100%;
        min-width: auto;
    }

    .booking-frame{
        height: calc(100vh - 120px);
    }

    .whatsapp-float{
        width: 58px;
        height: 58px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float svg{
        width: 28px;
        height: 28px;
    }

    .room-modal-content{
        width: calc(100% - 20px);
        margin: 3vh auto;
        max-height: 94vh;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .room-modal-content h2{
        font-size: 24px;
        margin-bottom: 18px;
        padding-right: 44px;
    }

    .room-gallery-grid{
        grid-template-columns: 1fr;
    }

    .room-gallery-grid img{
        height: 220px;
    }
}