/* =========================================================
   1. RESET E IMPOSTAZIONI GLOBALI
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #181510;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* =========================================================
   2. HEADER E MENU DI NAVIGAZIONE (DESKTOP + HAMBURGER)
   ========================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: #000000;
    padding: 12px 35px;
    border-bottom: 1px solid rgba(255, 217, 0, 0.637);
}

.logo {
    width: 130px;
    height: auto;
    display: block;
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffcc00;
}

.nav-menu .btn-login,
.login-button {
    background-color: #c5a86a;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-menu .btn-login:hover,
.login-button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Pulsante Hamburger (invisibile su PC) */
header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1002;
}

header .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #c5a86a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

header .hamburger.attivo span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
header .hamburger.attivo span:nth-child(2) {
    opacity: 0;
}
header .hamburger.attivo span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================================
   3. HERO SECTION E GALLERIA FOTO INIZIALE
   ========================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 20px 20px 80px 20px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("immagini/diamante.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 950px;
    opacity: 0.08;
    filter: blur(3px);
    z-index: -1;
}

h1 {
    color: rgba(255, 217, 0, 0.637);
    text-align: center;
    margin-top: 40px;
    font-size: 55px;
}

p {
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.image-container img {
    width: 340px;
    max-width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 217, 0, 0.637);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.03);
    border-color: #ffffff;
}

h2 {
    color: rgba(255, 217, 0, 0.637);
    text-align: left;
    font-size: 42px;
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 217, 0, 0.637);
    transition: all 0.3s ease;
}

h2:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* =========================================================
   4. SEZIONE COMPLEANNO
   ========================================================= */
.birthday-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 217, 0, 0.637);
    padding: 50px 5% 80px 5%;
    gap: 25px;
    min-height: 900px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.birthday-section::before {
    content: "";
    position: absolute;
    inset: -15px;
    background-image: url("immagini/comple2.jpeg");
    background-position: center;
    background-size: cover;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.birthday-description {
    color: #ffffff;
    font-size: 20px;
    text-align: center;
    max-width: 750px;
}

.presentazione-comple {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 35px;
    width: 100%;
    max-width: 1300px;
    margin-top: 20px;
}

.foto-comple1 {
    width: 380px;
    height: 560px;
    object-fit: cover;
    border: 1px solid rgba(255, 217, 0, 0.637);
    border-radius: 10px;
}

.colonna-destra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.birthday-card {
    width: 460px;
    min-height: 240px;
    border: 1px solid rgba(255, 217, 0, 0.637);
    border-radius: 10px;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.78);
    text-align: center;
}

.birthday-title {
    color: rgba(255, 217, 0, 0.637);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 12px;
}

.prenotazione-button {
    display: inline-block;
    background-color: #c5a86a;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.prenotazione-button:hover {
    background-color: #ffffff;
    color: #000000;
}

.foto-logo-container {
    border-radius: 10px;
    border: 1px solid rgba(255, 217, 0, 0.637);
    overflow: hidden;
}

.foto-logo {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 10px;
}

.video-comple3,
.ale-comple {
    height: 500px;
    width: 380px;
    border: 1px solid rgba(255, 217, 0, 0.637);
    border-radius: 10px;
    background-color: #000000;
    overflow: hidden;
}

.ale-comple img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   5. SEZIONE ZONE VIP / TAVOLI
   ========================================================= */
.home-section.bg-alt {
    padding: 80px 8%;
    background: radial-gradient(circle at top, #161410 0%, #000000 85%);
    text-align: center;
    border-top: 1px solid rgba(255, 217, 0, 0.4);
}

.section-title {
    color: #c5a86a;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(197, 168, 106, 0.25);
}

.section-subtitle {
    color: #bbbbbb;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 55px auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.table-card {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(197, 168, 106, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.table-card:hover {
    transform: translateY(-8px);
    border-color: #c5a86a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(197, 168, 106, 0.2);
}

.highlight-card {
    background: linear-gradient(160deg, rgba(32, 27, 18, 0.95) 0%, rgba(12, 12, 12, 0.95) 100%);
    border: 1.5px solid #c5a86a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(197, 168, 106, 0.18);
}

.table-tier {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.silver-tier {
    background-color: rgba(192, 192, 192, 0.12);
    color: #d0d0d0;
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.gold-tier {
    background-color: rgba(197, 168, 106, 0.15);
    color: #c5a86a;
    border: 1px solid rgba(197, 168, 106, 0.5);
}

.diamond-tier {
    background-color: #c5a86a;
    color: #000000;
    border: 1px solid #c5a86a;
}

.table-card h3 {
    color: #ffffff;
    font-size: 1.65rem;
    margin-bottom: 14px;
}

.highlight-card h3 {
    color: #c5a86a;
}

.table-card p {
    color: #cccccc;
    font-size: 0.98rem;
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-perks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.table-perks li {
    color: #eeeeee;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   6. SEZIONE PR STAFF
   ========================================================= */
.pr-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 80px 8%;
    background: radial-gradient(circle at top, #181510 0%, #000000 85%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 217, 0, 0.4);
}

.pr-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("immagini/diamante.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 420px;
    opacity: 0.08;
    filter: blur(3px);
    z-index: -1;
}

.pr-header {
    text-align: center;
    max-width: 650px;
    margin-bottom: 55px;
}

.pr-header h2 {
    color: #c5a86a;
    font-size: 2.5rem;
    text-align: center;
    border-bottom: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pr-header p {
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.6;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1100px;
}

.pr-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.pr-card:hover {
    transform: translateY(-8px);
    border-color: #c5a86a;
}

.pr-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid #c5a86a;
    background: radial-gradient(circle, rgba(197, 168, 106, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    color: #c5a86a;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.pr-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.pr-role {
    color: #c5a86a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
}

.pr-tag {
    margin-top: auto;
    display: inline-block;
    text-decoration: none;
    color: #000000;
    background-color: #c5a86a;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pr-tag:hover {
    background-color: #ffffff;
    transform: scale(1.04);
}

/* =========================================================
   7. SEZIONE SOCIAL / CONTATTI
   ========================================================= */
.social-page {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: calc(100vh - 90px);
    padding: 80px 8%;
    background: radial-gradient(circle at top, #181510 0%, #000000 85%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("immagini/diamante.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 460px;
    opacity: 0.07;
    filter: blur(3px);
    z-index: -1;
}

.social-wrapper {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.social-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.social-badge {
    background-color: rgba(197, 168, 106, 0.15);
    color: #c5a86a;
    border: 1px solid rgba(197, 168, 106, 0.45);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.social-info h1 {
    color: #c5a86a;
    font-size: 3.2rem;
    text-align: left;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.social-desc {
    color: #cccccc;
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: left;
    margin: 0 0 32px 0;
    max-width: 520px;
}

.insta-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background-color: #c5a86a;
    color: #000000;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    border: 1px solid #c5a86a;
    transition: all 0.3s ease;
    margin-bottom: 35px;
}

.insta-pill:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.insta-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.social-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 520px;
}

.highlight-box {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(197, 168, 106, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-title {
    color: #c5a86a;
    font-weight: 700;
    font-size: 0.95rem;
}

.highlight-sub {
    color: #999999;
    font-size: 0.85rem;
}

@keyframes rotazione3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.logo-insta-box {
    perspective: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-insta-box img {
    width: 340px;
    height: 340px;
    object-fit: contain;
    border: 1px solid #c5a86a;
    border-radius: 24px;
    background: rgba(16, 16, 16, 0.85);
    padding: 25px;
    animation: rotazione3D 10s linear infinite;
}

/* =========================================================
   8. PAGINA LOGIN STAFF
   ========================================================= */
.login-page {
    background-color: #000000;
}

.login-page .login-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #18140e 0%, #000000 85%);
}

.login-page .login-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("immagini/diamante.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 460px;
    opacity: 0.08;
    filter: blur(4px);
    z-index: -1;
}

.login-page .login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(16, 16, 16, 0.92);
    border: 1px solid rgba(197, 168, 106, 0.45);
    border-radius: 18px;
    padding: 40px 35px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
}

.login-page .login-logo {
    width: 130px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
}

.login-page .login-card h2 {
    color: #c5a86a;
    font-size: 1.75rem;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 10px 0;
}

.login-page .login-subtitle {
    color: #bbbbbb;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 28px 0;
}

.login-page .login-form {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.login-page .input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-page .input-group label {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-page .input-group input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 10px;
    padding: 13px 15px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.login-page .input-group input:focus {
    border-color: #c5a86a;
}

.login-page .login-options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin: 4px 0;
}

.login-page .remember-me {
    color: #cccccc;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-page .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c5a86a;
}

.login-page .forgot-link {
    color: #c5a86a;
    text-decoration: none;
}

.login-page .btn-login-submit {
    width: 100%;
    margin-top: 10px;
    background-color: #c5a86a;
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-page .btn-login-submit:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.login-page .back-home {
    display: inline-block;
    margin-top: 22px;
    color: #999999;
    font-size: 0.9rem;
    text-decoration: none;
}

/* =========================================================
   9. AREA ADMIN E REGISTRO ATTIVITÀ
   ========================================================= */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #000000;
    border-bottom: 1px solid rgba(197, 168, 106, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.admin-badge {
    background-color: rgba(197, 168, 106, 0.15);
    color: #c5a86a;
    border: 1px solid #c5a86a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logout-button {
    background-color: transparent;
    color: #c5a86a;
    border: 1px solid #c5a86a;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background-color: #c5a86a;
    color: #000000;
}

.admin-page {
    min-height: calc(100vh - 90px);
    padding: 50px 6%;
    background: radial-gradient(circle at top, #181510 0%, #000000 85%);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.admin-top h1 {
    color: #c5a86a;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
}

.admin-top p {
    color: #aaaaaa;
    font-size: 1rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 14px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #bbbbbb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-number {
    color: #c5a86a;
    font-size: 2.4rem;
    font-weight: 800;
}

.admin-box,
.admin-card {
    background: rgba(18, 18, 18, 0.88);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.admin-box h2,
.admin-card .card-header h2 {
    color: #c5a86a;
    font-size: 1.35rem;
    text-align: left;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 168, 106, 0.25);
}

.admin-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 168, 106, 0.25);
}

.admin-card .card-header h2 {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.admin-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.7fr 1.2fr auto;
    gap: 14px;
    align-items: center;
}

.admin-form input,
.search-input {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.btn-aggiungi {
    background-color: #c5a86a;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-aggiungi:hover {
    background-color: #ffffff;
}

.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 168, 106, 0.25);
    padding-bottom: 14px;
}

.table-header-bar h2 {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.search-input {
    max-width: 280px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.clienti-table,
.admin-card table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.clienti-table th,
.admin-card thead th {
    background-color: rgba(197, 168, 106, 0.14);
    color: #c5a86a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
}

.clienti-table td,
.admin-card tbody td {
    color: #eeeeee;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.clienti-table tr:hover td,
.admin-card tbody tr:hover td {
    background-color: rgba(197, 168, 106, 0.05);
}

.btn-stato {
    background-color: rgba(197, 168, 106, 0.15);
    color: #c5a86a;
    border: 1px solid rgba(197, 168, 106, 0.5);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
}

.btn-stato.entrato {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.5);
}

.btn-elimina {
    background-color: rgba(220, 38, 38, 0.18);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.45);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.btn-elimina:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* =========================================================
   10. PAGINE ERRORE, PRIVACY/COOKIE E FOOTER
   ========================================================= */
.error-page {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: calc(100vh - 90px);
    padding: 70px 20px;
    background: radial-gradient(circle at center, #181510 0%, #000000 85%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    max-width: 620px;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(197, 168, 106, 0.4);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-errore img {
    width: 180px;
    height: auto;
    border: 1px solid #c5a86a;
    border-radius: 18px;
    padding: 12px;
    animation: rotazione3D 10s linear infinite;
}

.error-badge {
    background-color: rgba(197, 168, 106, 0.15);
    color: #c5a86a;
    border: 1px solid rgba(197, 168, 106, 0.45);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 20px 0 16px 0;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-admin-contact,
.btn-back-home {
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-admin-contact {
    background-color: #c5a86a;
    color: #000000;
}

.btn-back-home {
    color: #c5a86a;
    border: 1px solid #c5a86a;
}

.legal-page {
    min-height: calc(100vh - 180px);
    padding: 70px 8%;
    background: radial-gradient(circle at top, #161410 0%, #000000 85%);
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.88);
    border: 1px solid rgba(197, 168, 106, 0.35);
    border-radius: 16px;
    padding: 50px 45px;
}

.legal-container h1 {
    color: #c5a86a;
    font-size: 2.3rem;
}

.legal-updated {
    color: #888888;
    font-size: 0.9rem;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(197, 168, 106, 0.25);
}

.legal-block h2 {
    color: #ffffff;
    font-size: 1.25rem;
    border: none;
}

.legal-block p,
.legal-block ul li {
    color: #cccccc;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.7;
}

.site-footer {
    background-color: #080808;
    border-top: 1px solid rgba(197, 168, 106, 0.4);
    color: #cccccc;
    padding: 60px 8% 25px 8%;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 45px auto;
}

.footer-logo {
    width: 130px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p,
.footer-contact p {
    text-align: left;
    color: #999999;
    font-size: 0.95rem;
    margin-top: 0;
}

.site-footer h4 {
    color: #c5a86a;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #c5a86a;
}

.footer-social {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 18px;
    border: 1px solid #c5a86a;
    border-radius: 20px;
    color: #c5a86a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-social:hover {
    background-color: #c5a86a;
    color: #000000;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777777;
}

.footer-legal {
    display: flex;
    gap: 12px;
}

.footer-legal a {
    color: #777777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #c5a86a;
}

/* =========================================================
   11. RESPONSIVE TABLET E SMARTPHONE (<= 992px)
   ========================================================= */
@media (max-width: 992px) {
    /* Header compatto con hamburger */
    header {
        padding: 12px 20px;
    }

    .logo {
        width: 105px;
    }

    header .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        background-color: #0a0908;
        border-top: 1px solid rgba(197, 168, 106, 0.3);
        border-bottom: 1px solid #c5a86a;
        padding: 25px 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
        z-index: 1001;
    }

    .nav-menu.aperto {
        display: flex;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 4px 0;
    }

    /* Hero e galleria foto iniziale */
    h1 {
        font-size: 36px;
        margin-top: 25px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .image-container {
        flex-direction: column;
        gap: 18px;
    }

    .image-container img {
        width: 100%;
        max-width: 440px;
        height: 360px;
    }

    /* Sezione Compleanno */
    .birthday-section {
        min-height: auto;
        padding: 40px 16px 60px 16px;
    }

    .birthday-section h2 {
        font-size: 30px;
        text-align: center;
    }

    .birthday-description {
        font-size: 16px;
    }

    .presentazione-comple {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .foto-comple1,
    .birthday-card,
    .video-comple3,
    .ale-comple {
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    .foto-comple1 {
        max-height: 500px;
    }

    .video-comple3,
    .ale-comple {
        height: 420px;
    }

    /* Griglie Tavoli, PR, Social e Footer */
    .cards-grid,
    .pr-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .social-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-info {
        align-items: center;
        text-align: center;
    }

    .social-info h1,
    .social-desc {
        text-align: center;
    }

    .social-highlights {
        grid-template-columns: 1fr;
    }

    .logo-insta-box img {
        width: 260px;
        height: 260px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo,
    .footer-brand p,
    .footer-contact p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Area Admin */
    .admin-header {
        padding: 15px 20px;
    }

    .stats-grid,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-form input,
    .btn-aggiungi {
        min-height: 44px;
        font-size: 16px;
    }

    .table-header-bar,
    .admin-card .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-input {
        max-width: 100%;
    }

    .clienti-table,
    .admin-card table {
        min-width: 600px;
    }
}

/* =========================================================
   INTRO 3D DI APERTURA (LEGGERA E FLUIDA GPU)
   ========================================================= */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at center, #1c170f 0%, #000000 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-overlay.nascosta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Anello dorato rotante in 3D */
.intro-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 2px solid rgba(197, 168, 106, 0.25);
    border-top-color: #c5a86a;
    border-bottom-color: #c5a86a;
    box-shadow: 0 0 30px rgba(197, 168, 106, 0.2);
    animation: ringSpin3D 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

/* Logo che emerge e ruota sull'asse Y */
.intro-logo-3d {
    transform-style: preserve-3d;
    animation: logoEntrance3D 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

.intro-logo-3d img {
    width: 170px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 22px rgba(197, 168, 106, 0.45));
}

.intro-tagline {
    margin-top: 26px;
    color: #c5a86a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    opacity: 0;
    animation: taglineFade 1.4s ease 0.5s forwards;
}

@keyframes logoEntrance3D {
    0% {
        opacity: 0;
        transform: translateZ(-350px) rotateY(-180deg) scale(0.6);
    }
    55% {
        opacity: 1;
        transform: translateZ(30px) rotateY(15deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) rotateY(0deg) scale(1);
    }
}

@keyframes ringSpin3D {
    0% {
        opacity: 0;
        transform: rotateX(65deg) rotateZ(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotateX(65deg) rotateZ(360deg) scale(1.35);
    }
}

@keyframes taglineFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Su smartphone riduce leggermente le dimensioni */
@media (max-width: 600px) {
    .intro-ring {
        width: 190px;
        height: 190px;
    }
    .intro-logo-3d img {
        width: 135px;
    }
    .intro-tagline {
        font-size: 0.72rem;
        letter-spacing: 3px;
    }
}

/* =========================================================
   DASHBOARD ADMIN OTTIMIZZATA PER SMARTPHONE (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
    .admin-page {
        padding: 20px 12px 60px 12px;
    }

    .admin-container {
        gap: 20px;
    }

    .admin-top h1 {
        font-size: 1.65rem;
    }

    /* 1. Contatori affiancati su 3 colonne compatte (non occupano mezzo schermo) */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        padding: 12px 6px !important;
        border-radius: 10px;
        gap: 4px;
    }

    .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    /* 2. Box più compatti */
    .admin-box,
    .admin-card {
        padding: 18px 14px !important;
        border-radius: 12px;
    }

    /* 3. Form Nuova Prenotazione: input grandi senza zoom iOS + bottone ben visibile */
    .admin-form {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .admin-form input,
    .search-input {
        min-height: 46px;
        font-size: 16px !important;
    }

    .btn-aggiungi {
        min-height: 48px;
        font-size: 1rem;
        width: 100%;
    }

    /* 4. Barra di ricerca sempre ben visibile e comoda */
    .table-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-input {
        max-width: 100% !important;
    }

    /* 5. Tabella Prenotazioni trasformata in SCHEDE VERTICALI (niente scroll orizzontale!) */
    .clienti-table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .clienti-table thead {
        display: none;
    }

    .clienti-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .clienti-table tbody tr {
        display: flex;
        flex-direction: column;
        background: rgba(28, 24, 18, 0.95);
        border: 1px solid rgba(197, 168, 106, 0.35);
        border-radius: 12px;
        padding: 12px 14px;
        gap: 8px;
    }

    .clienti-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.95rem;
        white-space: normal !important;
        text-align: right;
    }

    .clienti-table tbody td:last-child {
        border-bottom: none;
        padding-top: 8px !important;
    }

    .clienti-table tbody td::before {
        content: attr(data-label);
        color: #c5a86a;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        text-align: left;
    }

    /* Pulsanti Stato ed Elimina larghi e facilissimi da toccare con il pollice */
    .clienti-table .btn-stato {
        width: 100%;
        min-height: 44px;
        font-size: 0.95rem;
        border-radius: 10px;
        margin-left: 12px;
    }

    .clienti-table .btn-elimina {
        width: 100%;
        min-height: 40px;
        font-size: 0.9rem;
        margin-left: 12px;
    }

    /* 6. Registro Attività compatto e leggibile su mobile */
    .admin-card table {
        min-width: 520px;
    }

    .admin-card th,
    .admin-card td {
        padding: 10px 10px;
        font-size: 0.82rem;
    }
}