/* public_html/assets/css/style.css */


@font-face {
    font-family: 'Ephesis';
    src: url('../fonts/Ephesis-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Author: Andypaper */

/* =============================================
   VARIABILI — modifica solo questa sezione
   per cambiare l'intera grafica del sito
============================================= */
:root {
    --rcc-bg-deep:            #1A0029;
    --rcc-bg-mid:             #2D0050;
    --rcc-accent-primary:     #6B0FA8;
    --rcc-accent-light:       #9B59D0;
    --rcc-accent-gold:        #FFD700;
    --rcc-text-primary:       #F5F6F5;
    --rcc-text-muted:         rgba(245,246,245,0.5);
    --rcc-text-hint:          rgba(245,246,245,0.25);
    --rcc-card-bg:            rgba(245,246,245,0.06);
    --rcc-card-border:        rgba(245,246,245,0.12);
    --rcc-input-bg:           rgba(245,246,245,0.07);
    --rcc-input-border:       rgba(245,246,245,0.15);
    --rcc-input-focus-bg:     rgba(155,89,208,0.12);
    --rcc-input-focus-border: #9B59D0;
    --rcc-btn-from:           #6B0FA8;
    --rcc-btn-to:             #9B59D0;
    --rcc-btn-shadow:         rgba(107,15,168,0.5);
    --rcc-divider:            #FFD700;
    --rcc-error:              #ff6b6b;
    --rcc-success:            #51cf66;
    --rcc-font-title:         'MuseoSans', sans-serif;
    --rcc-font-body:          'Poppins', sans-serif;
    --rcc-radius-card:        16px;
    --rcc-radius-input:       10px;
    --rcc-radius-btn:         10px;
    --rcc-transition:         0.3s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--rcc-font-body);
    background: var(--rcc-bg-deep);
    color: var(--rcc-text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   PARTICELLE ANIMATE
============================================= */
.rcc-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rcc-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: rccFloat linear infinite;
}

@keyframes rccFloat {
    0%   { transform: translateY(0) scale(1);      opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-110vh) scale(0.3); opacity: 0; }
}

/* =============================================
   LAYOUT PRINCIPALE
============================================= */
.rcc-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    padding: 24px 16px;
}

.rcc-container {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .rcc-container {
        max-width: 860px;
    }
}

@media (min-width: 1200px) {
    .rcc-container {
        max-width: 1000px;
    }
}

.rcc-container-wide {
    width: 100%;
    max-width: 1200px;
}

/* =============================================
   HEADER / LOGO
============================================= */
.rcc-header {
    text-align: center;
    margin-bottom: 28px;
    animation: rccFadeDown 0.8s ease both;
    position: relative;
}

.rcc-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rcc-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    animation: rccFadeDown 0.8s 0.1s ease both;
}

/* Titolo + logo affiancati */
.rcc-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rcc-logo-img {
    height: 90px;
    width: auto;
    mix-blend-mode: screen;
    flex-shrink: 0;
}

.rcc-logo-imi {
    color: var(--rcc-text-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
}

.rcc-title {
    font-family: var(--rcc-font-title);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 6px;
    animation: rccFadeDown 0.8s 0.1s ease both;
}

.rcc-title span { color: var(--rcc-accent-gold); }

/* Titoli sezioni inclinati */
.rcc-title,
.rcc-admin-title,
h1.rcc-title,
h2.rcc-section-title {
    font-style: italic;
}

.rcc-subtitle {
    color: var(--rcc-text-muted);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: rccFadeDown 0.8s 0.2s ease both;
}

.rcc-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rcc-divider), transparent);
    margin: 16px auto;
    animation: rccFadeIn 1s 0.3s ease both;
}

/* =============================================
   CARD
============================================= */
.rcc-card {
    background: var(--rcc-card-bg);
    border: 1px solid var(--rcc-card-border);
    border-radius: var(--rcc-radius-card);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: rccFadeUp 0.8s 0.3s ease both;
}

/* =============================================
   FORM ELEMENTI
============================================= */
.rcc-label {
    display: block;
    color: var(--rcc-text-muted);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rcc-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.rcc-input {
    width: 100%;
    background: var(--rcc-input-bg);
    border: 1px solid var(--rcc-input-border);
    border-radius: var(--rcc-radius-input);
    padding: 13px 16px 13px 46px;
    color: var(--rcc-text-primary);
    font-family: var(--rcc-font-body);
    font-size: 15px;
    outline: none;
    transition: border-color var(--rcc-transition), background var(--rcc-transition);
    appearance: none;
}

.rcc-input::placeholder { color: var(--rcc-text-hint); }

.rcc-input:focus {
    border-color: var(--rcc-input-focus-border);
    background: var(--rcc-input-focus-bg);
}

.rcc-input.error { border-color: var(--rcc-error); }

.rcc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rcc-text-hint);
    font-size: 18px;
    pointer-events: none;
}

/* Autocompletamento */
.rcc-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--rcc-bg-mid);
    border: 1px solid rgba(155,89,208,0.4);
    border-radius: var(--rcc-radius-input);
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.rcc-autocomplete.show { display: block; }

.rcc-ac-item {
    padding: 11px 16px;
    color: var(--rcc-text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--rcc-transition);
    border-bottom: 1px solid rgba(245,246,245,0.05);
}

.rcc-ac-item:last-child { border-bottom: none; }
.rcc-ac-item:hover { background: rgba(155,89,208,0.25); }
.rcc-ac-item strong { color: var(--rcc-accent-gold); font-weight: 600; }

/* =============================================
   BOTTONI
============================================= */
.rcc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--rcc-btn-from), var(--rcc-btn-to));
    color: var(--rcc-text-primary);
    border: none;
    border-radius: var(--rcc-radius-btn);
    padding: 14px;
    font-family: var(--rcc-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--rcc-transition), box-shadow var(--rcc-transition);
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.rcc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--rcc-btn-shadow);
}

.rcc-btn:active { transform: translateY(0); }

.rcc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.rcc-btn-secondary {
    background: transparent;
    border: 1px solid var(--rcc-card-border);
    color: var(--rcc-text-muted);
}

.rcc-btn-secondary:hover {
    background: var(--rcc-card-bg);
    box-shadow: none;
    color: var(--rcc-text-primary);
}

.rcc-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    width: 0; height: 0;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: rccRipple 0.55s ease-out;
    pointer-events: none;
}

@keyframes rccRipple { to { width: 400px; height: 400px; opacity: 0; } }

/* =============================================
   MESSAGGI FEEDBACK
============================================= */
.rcc-alert {
    border-radius: var(--rcc-radius-input);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rcc-alert-error {
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.3);
    color: var(--rcc-error);
}

.rcc-alert-success {
    background: rgba(81,207,102,0.12);
    border: 1px solid rgba(81,207,102,0.3);
    color: var(--rcc-success);
}

/* =============================================
   GATE (pagina solo password)
============================================= */
.rcc-gate {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--rcc-bg-deep);
    width: 100%;
    box-sizing: border-box;
}

.rcc-gate-bg {
    position: fixed;
    inset: 0;
    background-image: url('../img/bg-gate.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}

.rcc-gate-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.rcc-gate-lock {
    font-size: 48px;
    color: var(--rcc-accent-light);
    margin-bottom: 24px;
    animation: rccPulseIcon 2s ease-in-out infinite;
}

@keyframes rccPulseIcon {
    0%,100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

.rcc-gate-input {
    width: 100%;
    background: var(--rcc-input-bg);
    border: 1px solid var(--rcc-input-border);
    border-radius: var(--rcc-radius-input);
    padding: 14px 16px;
    color: var(--rcc-text-primary);
    font-family: var(--rcc-font-body);
    font-size: 15px;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color var(--rcc-transition), background var(--rcc-transition);
}

.rcc-gate-input::placeholder { letter-spacing: 0; color: var(--rcc-text-hint); }
.rcc-gate-input:focus {
    border-color: var(--rcc-input-focus-border);
    background: var(--rcc-input-focus-bg);
}

/* =============================================
   HERO (landing con QR)
============================================= */
.rcc-hero {
    width: 100%;
    height: 220px;
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center top;
    border-radius: var(--rcc-radius-card);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.rcc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--rcc-bg-deep) 100%);
}

/* =============================================
   CATEGORIE
============================================= */
.rcc-categorie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    animation: rccFadeUp 0.8s 0.4s ease both;
}

@media (min-width: 480px) {
    .rcc-categorie { grid-template-columns: repeat(4, 1fr); }
}

.rcc-cat {
    background: var(--rcc-card-bg);
    border: 1px solid var(--rcc-card-border);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--rcc-transition);
    position: relative;
}

.rcc-cat:hover {
    background: rgba(155,89,208,0.18);
    border-color: rgba(155,89,208,0.5);
    transform: translateY(-4px);
}

.rcc-cat.done {
    border-color: rgba(155,89,208,0.5);
    background: rgba(155,89,208,0.12);
    cursor: default;
}

.rcc-cat.done:hover { transform: none; }

.rcc-cat-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}

.rcc-cat-label {
    color: var(--rcc-text-muted);
    font-size: 12px;
    display: block;
}

.rcc-cat.done .rcc-cat-label { color: var(--rcc-accent-gold); }

.rcc-cat-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--rcc-accent-primary);
    color: var(--rcc-text-primary);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
}

/* =============================================
   UPLOAD ZONE
============================================= */
.rcc-upload-zone {
    border: 2px dashed rgba(155,89,208,0.35);
    border-radius: var(--rcc-radius-card);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--rcc-transition);
    margin-bottom: 16px;
}
.rcc-upload-zone.compact {
    padding: 16px 10px;
    margin-bottom: 0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rcc-upload-zone:hover,
.rcc-upload-zone.dragover {
    border-color: rgba(155,89,208,0.7);
    background: rgba(155,89,208,0.08);
}

.rcc-upload-zone i {
    font-size: 40px;
    color: var(--rcc-accent-light);
    display: block;
    margin-bottom: 12px;
}

.rcc-upload-zone p { color: var(--rcc-text-muted); font-size: 13px; margin-top: 6px; }

.rcc-upload-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.rcc-toggle-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--rcc-card-border);
    background: transparent;
    color: var(--rcc-text-muted);
    font-family: var(--rcc-font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--rcc-transition);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.rcc-toggle-btn.active {
    background: rgba(155,89,208,0.2);
    border-color: rgba(155,89,208,0.5);
    color: var(--rcc-text-primary);
}

/* =============================================
   DONAZIONE BANNER
============================================= */
.rcc-donation {
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    animation: rccFadeUp 0.8s 0.5s ease both;
}

.rcc-donation i { font-size: 24px; color: var(--rcc-accent-gold); flex-shrink: 0; }

.rcc-donation-text { color: var(--rcc-text-muted); font-size: 13px; line-height: 1.5; }
.rcc-donation-text strong { color: var(--rcc-accent-gold); }

/* =============================================
   PAGINA ATTESA
============================================= */
.rcc-waiting {
    text-align: center;
    padding: 20px 0 40px;
    animation: rccFadeUp 0.8s ease both;
}

.rcc-chef {
    font-size: 72px;
    display: block;
    margin-bottom: 20px;
    animation: rccBounce 2.5s ease-in-out infinite;
}

@keyframes rccBounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.rcc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

.rcc-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--rcc-accent-light);
    animation: rccDotPulse 1.4s ease-in-out infinite;
}

@keyframes rccDotPulse {
    0%,100% { opacity: 0.25; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.5); }
}

/* =============================================
   PAGINA RISULTATI
============================================= */
.rcc-vincitori {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.rcc-vincitore-card {
    background: var(--rcc-card-bg);
    border: 1px solid var(--rcc-card-border);
    border-radius: var(--rcc-radius-card);
    padding: 20px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    animation: rccFadeUp 0.6s ease both;
}

.rcc-vincitore-card.primo { border-color: rgba(255,215,0,0.5); background: rgba(255,215,0,0.06); }

.rcc-posizione {
    font-family: var(--rcc-font-title);
    font-size: 28px;
    font-weight: 700;
    color: var(--rcc-text-muted);
    min-width: 36px;
    text-align: center;
}

.rcc-vincitore-card.primo .rcc-posizione { color: var(--rcc-accent-gold); }

/* =============================================
   ADMIN - LAYOUT
============================================= */
.rcc-admin-wrap {
    display: flex;
    min-height: 100vh;
}

.rcc-sidebar {
    width: 220px;
    background: var(--rcc-bg-mid);
    border-right: 1px solid var(--rcc-card-border);
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.rcc-sidebar-logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--rcc-card-border);
    margin-bottom: 16px;
}

.rcc-nav-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 20px;
    color: var(--rcc-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--rcc-transition);
    border-left: 3px solid transparent;
}

.rcc-nav-item:hover { color: var(--rcc-text-primary); background: rgba(245,246,245,0.04); }
.rcc-nav-item.active { color: var(--rcc-text-primary); border-left-color: var(--rcc-accent-light); background: rgba(155,89,208,0.1); }

.rcc-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.rcc-admin-title {
    font-family: var(--rcc-font-title);
    font-family: var(--rcc-font-title);
    font-size: 52px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rcc-card-border);
    font-weight: 400;
    line-height: 1.1;
}

/* Tabelle admin */
.rcc-table-wrap { overflow-x: auto; }

.rcc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rcc-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--rcc-text-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rcc-card-border);
    font-weight: 500;
}

.rcc-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(245,246,245,0.05);
    color: var(--rcc-text-primary);
}

.rcc-table tr:hover td { background: rgba(245,246,245,0.03); }

/* Stat card admin */
.rcc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.rcc-stat {
    background: var(--rcc-card-bg);
    border: 1px solid var(--rcc-card-border);
    border-radius: var(--rcc-radius-card);
    padding: 20px;
}

.rcc-stat-label { color: var(--rcc-text-muted); font-size: 12px; margin-bottom: 8px; }
.rcc-stat-value { font-size: 28px; font-weight: 600; color: var(--rcc-text-primary); }
.rcc-stat-gold .rcc-stat-value { color: var(--rcc-accent-gold); }

/* Badge stato */
.rcc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.rcc-badge-green  { background: rgba(81,207,102,0.15); color: #51cf66; }
.rcc-badge-red    { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.rcc-badge-yellow { background: rgba(255,215,0,0.15);  color: #FFD700; }
.rcc-badge-purple { background: rgba(155,89,208,0.2);  color: var(--rcc-accent-light); }

/* =============================================
   ANIMAZIONI
============================================= */
@keyframes rccFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rccFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rccFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .rcc-admin-wrap { flex-direction: column; }
    .rcc-sidebar {
        width: 100%; height: auto; position: static;
        display: flex; flex-wrap: wrap; padding: 12px;
        gap: 4px;
    }
    .rcc-sidebar-logo { display: none; }
    .rcc-nav-item { border-left: none; border-radius: 8px; font-size: 12px; padding: 8px 12px; }
    .rcc-nav-item.active { border-left: none; }
    .rcc-main { padding: 16px; }
}

@media (max-width: 480px) {
    .rcc-card { padding: 20px 16px; }
    .rcc-hero { height: 160px; }
}

/* =============================================
   ANIMAZIONI ADMIN
============================================= */

/* Fade-up generico per card e righe */
@keyframes rccSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rcc-card {
    animation: rccSlideIn 0.5s ease both;
}

/* Delay progressivo per card multiple */
.rcc-card:nth-child(1) { animation-delay: 0.05s; }
.rcc-card:nth-child(2) { animation-delay: 0.10s; }
.rcc-card:nth-child(3) { animation-delay: 0.15s; }
.rcc-card:nth-child(4) { animation-delay: 0.20s; }
.rcc-card:nth-child(5) { animation-delay: 0.25s; }

/* Righe tabella animate */
.rcc-table tbody tr {
    animation: rccSlideIn 0.4s ease both;
}
.rcc-table tbody tr:nth-child(1)  { animation-delay: 0.05s; }
.rcc-table tbody tr:nth-child(2)  { animation-delay: 0.08s; }
.rcc-table tbody tr:nth-child(3)  { animation-delay: 0.11s; }
.rcc-table tbody tr:nth-child(4)  { animation-delay: 0.14s; }
.rcc-table tbody tr:nth-child(5)  { animation-delay: 0.17s; }
.rcc-table tbody tr:nth-child(6)  { animation-delay: 0.20s; }
.rcc-table tbody tr:nth-child(7)  { animation-delay: 0.23s; }
.rcc-table tbody tr:nth-child(8)  { animation-delay: 0.26s; }

/* Stat card animate */
.rcc-stat {
    animation: rccSlideIn 0.5s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rcc-stat:nth-child(1) { animation-delay: 0.05s; }
.rcc-stat:nth-child(2) { animation-delay: 0.10s; }
.rcc-stat:nth-child(3) { animation-delay: 0.15s; }
.rcc-stat:nth-child(4) { animation-delay: 0.20s; }
.rcc-stat:nth-child(5) { animation-delay: 0.25s; }

.rcc-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107,15,168,0.3);
}

/* Sidebar nav item migliorato */
.rcc-nav-item {
    transition: all 0.25s ease;
    border-radius: 0 8px 8px 0;
    margin-right: 12px;
}

.rcc-nav-item:hover {
    color: var(--rcc-text-primary);
    background: rgba(155,89,208,0.15);
    padding-left: 26px;
}

.rcc-nav-item.active {
    background: linear-gradient(90deg, rgba(107,15,168,0.3), rgba(107,15,168,0.1));
    border-left-color: var(--rcc-accent-gold);
    color: var(--rcc-accent-gold);
}

.rcc-nav-item.active i { color: var(--rcc-accent-gold); }

/* Glow sui bottoni primari */
.rcc-btn:not(.rcc-btn-secondary):hover {
    box-shadow: 0 6px 24px var(--rcc-btn-shadow), 0 0 0 1px rgba(155,89,208,0.3);
}

/* Transizione pagina */
.rcc-main {
    animation: rccFadeIn 0.4s ease both;
}

/* Particelle nel layout admin */
.rcc-admin-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rcc-admin-wrap {
    position: relative;
    z-index: 1;
}

/* Admin title icona allineata */
.rcc-admin-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.rcc-admin-title i {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;

}

/* =============================================
   COUNTDOWN
============================================= */
.rcc-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    animation: rccFadeUp 0.8s 0.3s ease both;
}

.rcc-countdown-item {
    background: var(--rcc-card-bg);
    border: 1px solid var(--rcc-card-border);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    min-width: 64px;
    backdrop-filter: blur(10px);
}

.rcc-countdown-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--rcc-text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.rcc-countdown-label {
    font-size: 10px;
    color: var(--rcc-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.rcc-countdown-sep {
    font-size: 28px;
    font-weight: 800;
    color: var(--rcc-accent-gold);
    line-height: 1;
    margin-bottom: 14px;
}

@media (max-width: 360px) {
    .rcc-countdown-item { min-width: 52px; padding: 10px 10px; }
    .rcc-countdown-num  { font-size: 24px; }
}

/* =============================================
   LAYOUT DESKTOP FRONTEND
============================================= */
@media (min-width: 900px) {
    /* Hero più alto */
    .rcc-hero {
        height: 340px;
        margin-bottom: 32px;
    }

    /* Titolo più grande */
    .rcc-title {
        font-size: clamp(36px, 4vw, 52px);
    }

    /* Categorie sempre su 4 colonne */
    .rcc-categorie {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Countdown più grande */
    .rcc-countdown-num {
        font-size: 42px;
    }
    .rcc-countdown-item {
        min-width: 90px;
        padding: 16px 20px;
    }

    /* Upload toggle più grande */
    .rcc-upload-toggle {
        gap: 16px;
    }
}
