:root {
    --bg-dark: #101820;
    --bg-deep: #0b1117;

    --white: #ffffff;
    --soft-white: rgba(255, 255, 255, 0.90);
    --muted-white: rgba(255, 255, 255, 0.72);
    --line-white: rgba(255, 255, 255, 0.20);

    --glass: rgba(10, 16, 22, 0.66);
    --glass-strong: rgba(10, 16, 22, 0.78);

    --champagne: #e8d3ad;
    --champagne-light: #f2dfbd;
    --champagne-dark: #c7a873;

    --ink: #202020;
    --muted: #6f6f6f;
    --paper: #faf7f1;

    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 18px 52px rgba(20, 20, 20, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
}

a {
    color: inherit;
}

/* =========================================================
   HOME
   ========================================================= */

.hero-shell {
    min-height: 100vh;
    min-height: 100svh;
    padding: 28px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(5, 10, 16, 0.80) 0%,
            rgba(5, 10, 16, 0.52) 44%,
            rgba(5, 10, 16, 0.24) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 10, 16, 0.12) 0%,
            rgba(5, 10, 16, 0.42) 100%
        ),
        url("hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 28px;
    pointer-events: none;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    margin-right: auto;
    margin-left: clamp(0px, 5vw, 80px);
    padding: clamp(32px, 5vw, 50px);
    color: var(--white);
    background: var(--glass);
    border: 1px solid var(--line-white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
}

.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 28px;
    color: var(--soft-white);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.monogram.small {
    font-size: 0.78rem;
    margin-bottom: 16px;
}

.heart {
    color: var(--champagne);
    letter-spacing: 0;
    font-size: 0.95em;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--champagne);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.30em;
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-card h1 {
    margin: 0;
}

.couple-title {
    color: var(--white);
    text-align: center;
    font-size: clamp(2.55rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.couple-title span {
    color: var(--champagne);
    font-size: 0.72em;
}

.hero-subtitle {
    margin: 22px 0 0;
    color: var(--muted-white);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.wedding-date {
    margin: 12px 0 0;
    color: var(--soft-white);
    text-align: center;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.login-form {
    width: min(310px, 100%);
    margin: 26px auto 0;
}

.wedding-input {
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    padding: 9px 17px;
    background: rgba(255, 255, 255, 0.92);
    color: #202020;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.wedding-input::placeholder {
    color: rgba(32, 32, 32, 0.55);
    font-weight: 500;
}

.wedding-input:focus {
    border-color: var(--champagne);
    box-shadow:
        0 0 0 0.22rem rgba(232, 211, 173, 0.24),
        0 14px 32px rgba(0, 0, 0, 0.20);
}

.btn-wedding {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: var(--champagne);
    color: #1b1b1b;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.btn-wedding:hover {
    color: #1b1b1b;
    background: var(--champagne-light);
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.wedding-button {
    min-height: 44px;
    margin-top: 13px;
    padding: 9px 22px;
    font-size: 0.96rem;
}

.home-alert {
    width: min(310px, 100%);
    margin: 22px auto 0;
    border-radius: 14px;
    font-size: 0.9rem;
}

/* =========================================================
   FORMS GENERALI
   ========================================================= */

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(30, 30, 30, 0.14);
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.96);
    color: #202020;
}

textarea.form-control {
    border-radius: 18px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 0.22rem rgba(199, 168, 115, 0.22);
}

/* =========================================================
   PAGINE INTERNE
   ========================================================= */

.inner-page {
    min-height: 100vh;
    background: var(--paper);
}

.photo-hero {
    min-height: 300px;
    padding: 24px 0;
    color: var(--white);
    background:
        linear-gradient(
            180deg,
            rgba(5, 10, 16, 0.66) 0%,
            rgba(5, 10, 16, 0.22) 48%,
            rgba(5, 10, 16, 0.58) 100%
        ),
        url("hero.jpg");
    background-size: cover;
    background-position: center;
}

.photo-hero-small {
    min-height: 220px;
}

.wedding-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--soft-white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-mini:hover {
    color: var(--white);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(10, 16, 22, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.18s ease, transform 0.18s ease;
}

.nav-pill:hover {
    color: var(--white);
    background: rgba(10, 16, 22, 0.56);
    transform: translateY(-1px);
}

.nav-pill-light {
    background: rgba(255, 255, 255, 0.16);
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.small-link {
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    opacity: 0.82;
}

.small-link:hover {
    opacity: 1;
}

.inner-hero-card {
    max-width: 820px;
    padding: clamp(34px, 5vw, 60px);
    border-radius: 30px;
    background: rgba(12, 18, 24, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.inner-hero-card h1 {
    margin: 0;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: 0.9;
}

.section-content {
    padding: 34px 0 70px;
}

.narrow {
    max-width: 920px;
}

.content-card {
    background: #ffffff;
    border: 1px solid rgba(30, 30, 30, 0.06);
    box-shadow: var(--soft-shadow);
    border-radius: 28px;
    padding: clamp(26px, 4vw, 38px);
    margin-bottom: 24px;
}

.content-card h1,
.content-card h2 {
    margin-bottom: 16px;
    color: #202020;
}

.content-card h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.content-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.content-card p {
    color: var(--muted);
    line-height: 1.75;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 18px;
    background: #f7f1e8;
    border-radius: 22px;
}

.timeline-time {
    color: var(--champagne-dark);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.timeline-item h3 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.timeline-item p {
    margin: 0;
}

.simple-header {
    padding: 26px 0 0;
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-login-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(5, 10, 16, 0.72), rgba(5, 10, 16, 0.72)),
        url("hero.jpg");
    background-size: cover;
    background-position: center;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login-card {
    width: min(430px, 100%);
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.admin-page {
    background: #f6f1ea;
}

.admin-header {
    background: #111820;
    color: white;
    padding: 26px 0;
}

.admin-header h1 {
    margin: 0 0 4px;
}

.admin-content {
    padding: 28px 0 60px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 34px rgba(20, 20, 20, 0.08);
}

.stat-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.admin-table-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(20, 20, 20, 0.08);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
    .hero-shell {
        place-items: end center;
        padding: 18px;
        background:
            linear-gradient(
                180deg,
                rgba(5, 10, 16, 0.12) 0%,
                rgba(5, 10, 16, 0.70) 62%,
                rgba(5, 10, 16, 0.88) 100%
            ),
            url("hero.jpg");
        background-size: cover;
        background-position: center;
    }

    .hero-shell::before {
        inset: 12px;
        border-radius: 22px;
    }

    .hero-card {
        width: 100%;
        margin: 0;
        padding: 30px 22px;
        border-radius: 24px;
        background: rgba(10, 16, 22, 0.72);
    }

    .monogram {
        margin-bottom: 22px;
        font-size: 0.76rem;
        gap: 9px;
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 0.68rem;
    }

    .couple-title {
        font-size: clamp(2.35rem, 10vw, 3.45rem);
        white-space: normal;
    }

    .hero-subtitle {
        margin-top: 18px;
        font-size: 0.92rem;
    }

    .wedding-date {
        font-size: 0.98rem;
    }

    .login-form {
        width: min(300px, 100%);
    }

    .inner-hero-card {
        text-align: center;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-shell {
        padding: 14px;
    }

    .hero-card {
        padding: 28px 18px;
    }

    .couple-title {
        font-size: clamp(2.25rem, 12vw, 3.15rem);
    }

    .wedding-input,
    .wedding-button {
        min-height: 42px;
        height: 42px;
        font-size: 0.93rem;
    }

    .content-card {
        border-radius: 22px;
    }

        .photo-hero {
        min-height: 230px;
        padding: 18px 0;
    }

    .wedding-topbar {
        align-items: flex-start;
    }

    .topbar-actions {
        gap: 8px;
    }

    .nav-pill {
        min-height: 34px;
        padding: 7px 13px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }



}