/* style.css – Luxury Seaside Hotel Style */

/* PALETTE & BASE */

:root {
    --color-primary: #1464c4;        /* Blu hotel */
    --color-primary-dark: #0f4f9a;
    --color-accent: #c89a5b;         /* Oro caldo */
    --color-bg: #f5f6fa;
    --color-bg-soft: #ffffff;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --color-border: #dde3ed;
    --shadow-soft: 0 25px 45px rgba(15,23,42,0.18);
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,"SF Pro Text",
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER / NAVBAR */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.08), transparent);
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 20%, #cbe6ff, #4ea0ff, #1464c4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(20,100,196,0.6);
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f9fafb;
}

.brand-sub {
    font-size: 12px;
    color: #e5e7eb;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.nav-links a {
    color: #e5e7eb;
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15,23,42,0.25);
}

.nav-cta:hover {
    background: #f3f4f6;
}

/* MOBILE NAV semplificata */

@media (max-width: 820px) {
    .nav {
        flex-wrap: wrap;
        row-gap: 10px;
    }
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* LAYOUT BASE */

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 22px 40px; /* 80 per compensare header fixed */
}

/* HERO SECTION */

.hero-wrapper {
    margin-top: 10px;
    margin-bottom: 40px;
}

.hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 420px;
    background: #000;
}

/* Immagine di sfondo hero – puoi sostituire con la tua di Mondello */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/258154/pexels-photo-258154.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) saturate(1.05);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15,23,42,0.85) 0%,
        rgba(15,23,42,0.55) 35%,
        rgba(15,23,42,0.1) 70%,
        rgba(15,23,42,0.0) 100%
    );
}

/* Contenuto hero */

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    padding: 32px 32px 26px;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 26px 20px 20px;
    }
}

.hero-left {
    color: #f9fafb;
}

.hero-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: #d1d5db;
}

.hero-title {
    font-size: clamp(30px, 3.8vw, 40px);
    line-height: 1.15;
    margin: 0 0 8px;
}

.hero-title span {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 15px;
    color: #e5e7eb;
    max-width: 520px;
    margin: 0 0 16px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(249,250,251,0.4);
    background: rgba(15,23,42,0.66);
    color: #e5e7eb;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-cta-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: var(--color-accent);
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

.hero-cta-btn:hover {
    background: #b47f39;
}

.hero-cta-secondary {
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(249,250,251,0.7);
    background: transparent;
    color: #f9fafb;
    font-size: 13px;
    cursor: pointer;
}

/* BOOKING BAR – stile portale hotel */

.hero-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.booking-panel {
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    padding: 12px 14px 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.55);
    border: 1px solid rgba(229,231,235,0.96);
}

.booking-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.booking-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.booking-panel-sub {
    font-size: 11px;
    color: var(--color-muted);
}

.booking-panel-price {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.booking-panel-price span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-muted);
}

/* FORM booking */

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .booking-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
}

.form-label {
    color: var(--color-muted);
}

.form-input,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 7px 9px;
    font-size: 13px;
    background: #ffffff;
    color: var(--color-text);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(20,100,196,0.2);
}

.booking-panel-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-helper {
    font-size: 11px;
    color: var(--color-muted);
}

.btn-primary {
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-ghost {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--color-primary);
}

/* SEZIONI */

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.section-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

/* CARD GRID */

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 14px 14px 12px;
    box-shadow: 0 14px 28px rgba(15,23,42,0.08);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.card p {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
}

/* SEZIONE CAMERE */

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1000px) {
    .rooms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
}

.room-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.room-body {
    padding: 12px 14px 10px;
}

.room-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.room-meta {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.room-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* SEZIONE ESPERIENZE / POSIZIONE */

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .two-cols {
        grid-template-columns: 1fr;
    }
}

/* SEZIONE RECENSIONI */

.testimonials {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 14px 14px 12px;
    box-shadow: 0 16px 28px rgba(15,23,42,0.08);
    font-size: 13px;
    color: var(--color-muted);
}

.testimonial-name {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

/* ALERT (per availability / booking) */

.alert {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* TABELLA (admin) */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th, .table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--color-border);
}
.table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
}
.badge-pending   { background: #fef9c3; color: #854d0e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }
.badge-unpaid    { background: #fee2e2; color: #b91c1c; }
.badge-paid      { background: #dcfce7; color: #166534; }

/* FOOTER */

footer {
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    margin-top: 24px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 22px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-muted);
}

/* LOGIN ADMIN */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--color-bg);
}

.auth-card {
    max-width: 360px;
    width: 100%;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    padding: 18px 16px 16px;
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 12px;
}
