/* ============================================================
   Cinecittà Al Ciak B&B — Shared Stylesheet
   ============================================================ */

:root {
    --gold: #c5a059;
    --gold-light: #d4b47a;
    --dark: #121212;
    --dark-2: #1e1e1e;
    --light: #f8f5f0;
    --text-muted: #6b7280;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

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

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--gold);
    color: #fff;
    padding: 13px 30px;
    border-radius: 3px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-primary:hover {
    background-color: #b08d4a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 11px 28px;
    border-radius: 3px;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark);
    color: #fff;
    padding: 13px 30px;
    border-radius: 3px;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
}
.btn-dark:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

/* ── Navigation ──────────────────────────────────────────── */
#main-nav {
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#main-nav.scrolled {
    background: rgba(18, 18, 18, 0.97) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
}
.nav-link {
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
    color: white;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--gold-light); }
.nav-link.active { color: var(--gold); }

/* ── Mobile Menu ─────────────────────────────────────────── */
#mobile-menu {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    padding: 1.5rem 1.5rem 2rem;
}
#mobile-menu.open { display: block; }
#mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s;
}
#mobile-menu a:hover { color: var(--gold); }
#mobile-menu .btn-primary {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    border-bottom: none !important;
}

/* ── Hero slideshow ──────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 24s infinite;
    filter: brightness(0.42);
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
.slide:nth-child(4) { animation-delay: 18s; }
@keyframes slideFade {
    0%   { opacity: 0; transform: scale(1); }
    8%   { opacity: 1; }
    25%  { opacity: 1; }
    33%  { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}

/* ── Page Banner ─────────────────────────────────────────── */
.page-banner {
    position: relative;
    height: 52vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.38);
    transform: scale(1.02);
    transition: transform 8s ease;
}
.page-banner:hover .page-banner-bg { transform: scale(1.08); }

/* ── Cards ───────────────────────────────────────────────── */
.room-card {
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.room-card:hover .room-img { transform: scale(1.06); }
.room-img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Review Card ─────────────────────────────────────────── */
.review-card {
    border: 1px solid #ede9e3;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
}
.review-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* ── Score Badge ─────────────────────────────────────────── */
.score-badge {
    background: var(--dark);
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    padding: 0.8rem 1.3rem;
    border-radius: 8px;
    display: inline-block;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Glass effect ────────────────────────────────────────── */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.glass-dark {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── WhatsApp Floating Button ────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── Divider ornament ────────────────────────────────────── */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

/* ── Amenity item ────────────────────────────────────────── */
.amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0ece6;
    font-size: 0.9rem;
    color: #374151;
}
.amenity:last-child { border-bottom: none; }
.amenity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

/* ── Pricing card ────────────────────────────────────────── */
.pricing-card {
    border: 1px solid #ede9e3;
    border-radius: 10px;
    padding: 1.8rem;
    background: white;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.15);
}
.pricing-card.featured {
    border-color: var(--gold);
    background: var(--dark);
    color: white;
}

/* ── Info Bar ────────────────────────────────────────────── */
.info-bar {
    background: var(--dark);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    border-radius: 6px;
}
.info-bar-icon { color: var(--gold); flex-shrink: 0; }

/* ── Gallery grid ────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
}
.gallery-grid .main-photo {
    grid-row: 1 / 3;
    overflow: hidden;
}
.gallery-grid .sub-photo {
    overflow: hidden;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-grid img:hover { transform: scale(1.04); }

/* ── Tag / badge ─────────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tag-gold { background: rgba(197, 160, 89, 0.15); color: var(--gold); }
.tag-dark { background: var(--dark); color: white; }

/* ── Section utilities ───────────────────────────────────── */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
footer a { text-decoration: none; transition: color 0.3s, opacity 0.3s; }

/* ── Form ────────────────────────────────────────────────── */
.form-field {
    display: flex;
    flex-direction: column;
}
.form-field label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
    border: none;
    border-bottom: 1.5px solid #d1d5db;
    padding: 0.75rem 0;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--gold);
}
.form-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 2fr 1fr;
        height: 360px;
    }
    .gallery-grid .main-photo {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    .gallery-grid .sub-photo {
        grid-row: 2 / 3;
    }
}
