/* =====================================================
   app.css - Concorso Caffè Toraldo
   Palette chiara in linea con caffetoraldo.it
   Accent oro: #bda364 / #b88230
   Sfondo: bianco / crema #f8f4f0
   Testo: antracite #1d1e20
   ===================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f8f4f0;
    color: #1d1e20;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #b88230;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #8a6120;
}

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

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #141a1f;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container--narrow {
    max-width: 760px;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e2e2e0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: .50rem 1.25rem;
	min-height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Nav */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: .5rem .9rem;
    color: #303133;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s, color .2s;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #b88230;
    background: rgba(189, 163, 100, .08);
}

.nav-link.nav-cta {
    background: #bda364;
    color: #fff !important;
    font-weight: 700;
    padding: .5rem 1.1rem;
    border-radius: 6px;
}

.nav-link.nav-cta:hover {
    background: #a8893e;
    transform: translateY(-1px);
}

.nav-link.nav-shop {
    color: #909399;
    font-size: .8rem;
    text-transform: none;
}

.nav-link.nav-shop:hover {
    color: #b88230;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #bda364;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Banner stato concorso */
.concorso-banner {
    text-align: center;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.concorso-aperto {
    background: #bda364;
    color: #fff;
}

.concorso-presto {
    background: #f0ebe0;
    color: #8a6120;
    border-top: 1px solid #e2d5b0;
}

.concorso-chiuso {
    background: #f4f4f5;
    color: #909399;
    border-top: 1px solid #e2e2e0;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: flex-start; /* Allinea in alto per controllare lo spazio dalla banda */
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem 3rem; /* Ridotto da 5rem a 2.5rem */
    background: #141a1f;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
	background: #3C4651;
	background: radial-gradient(circle,rgba(60, 70, 81, 1) 0%, rgba(44, 53, 61, 1) 100%);
	/*background:
        radial-gradient(ellipse 70% 50% at 50% 20%, rgba(60, 70, 81, .18) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(44, 53, 61, .1) 0%, transparent 60%),
        linear-gradient(180deg, #3c4651 0%, #2c353d 100%);*/
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Aumentato leggermente per fare spazio all'immagine più grande */
}

.hero-event-logo {
    margin-bottom: 1.5rem; /* Ridotto da 2rem a 1.5rem */
    display: flex;
    justify-content: center;
}

.event-logo-img {
    max-width: 760px; /* Aumentato da 320px a 500px a 760px */
    height: auto;
    border-radius: 20px;
    /*box-shadow: 0 10px 40px rgba(0, 0, 0, .4);*/
    transition: transform .3s ease;
	margin: 30px 0px; 
}

.event-logo-img:hover {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .event-logo-img {
        max-width: 90%; /* Responsive sui dispositivi piccoli */
    }
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    background: rgba(189, 163, 100, .15);
    border: 1px solid rgba(189, 163, 100, .4);
    color: #bda364;
    border-radius: 999px;
    padding: .4rem 1.25rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .4);
}

.hero-accent {
    background: linear-gradient(135deg, #bda364, #e8c97a, #bda364);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-light-blue {
    color: #4a93d2; 
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, .75);
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-deadline {
    color: rgba(255, 255, 255, .5);
    font-size: .875rem;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(189, 163, 100, .12);
    border: 1px solid rgba(189, 163, 100, .3);
    color: #bda364;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.concorso-chiuso-hero {
    background: rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, .8);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(189, 163, 100, .7), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0;
        transform: scaleY(.5)
    }

    50% {
        opacity: 1;
        transform: scaleY(1)
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem 1.75rem;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: #bda364;
    color: #fff !important;
    border-color: #bda364;
}

.btn-primary:hover {
    background: #a8893e;
    border-color: #a8893e;
    box-shadow: 0 4px 16px rgba(189, 163, 100, .35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #bda364 !important;
    border-color: #bda364;
}

.btn-outline:hover {
    background: rgba(189, 163, 100, .1);
}

.btn-success {
    background: #28a745;
    color: #fff !important;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff !important;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545 !important;
    border-color: rgba(220, 53, 69, .5);
}

.btn-outline-danger:hover {
    background: rgba(220, 53, 69, .07);
}

.btn-sm {
    padding: .4rem .9rem;
    font-size: .8rem;
}

.btn-lg {
    padding: .9rem 2.25rem;
    font-size: 1rem;
}

.pulse-anim {
    animation: pulseCta 2.5s infinite;
}

@keyframes pulseCta {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(189, 163, 100, .4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(189, 163, 100, 0);
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    margin-bottom: .6rem;
    background: rgba(189, 163, 100, .1);
    border: 1px solid rgba(189, 163, 100, .3);
    color: #b88230;
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #141a1f;
    margin-bottom: .5rem;
}

.section-subtitle {
    color: #73767a;
    max-width: 560px;
    margin: 0 auto;
    font-size: .95rem;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== PREMI ===== */
.section-premi {
    background: #fff;
}

.premi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.premio-card {
    background: #fafafa;
    border: 1px solid #e2e2e0;
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    transition: transform .25s, box-shadow .25s;
}

.premio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
}

/* Ribbon etichetta */
.premio-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #bda364;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: .5rem .75rem;
    text-align: center;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Card immagine premio */
.premio-card-image {
    margin: 2.75rem auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.premio-card-image--jersey {
    height: 180px;
}

.premio-card-image--stadium {
    height: 140px;
}

.jersey-thumb,
.stadium-thumb {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .15));
}

.jersey-thumb {
    object-fit: contain;
}

/* Card principale - sfondo caldo */
.premio-card--main {
    background: linear-gradient(145deg, #fffdf7, #fdf8ec);
    border-color: #bda364;
}

/* Card premium - sfondo scuro blu */
.premio-card--premium {
	background-color: #4a93d2;
    /*background: linear-gradient(135deg, #1d2b44 0%, #001d3d 100%);*/
    color: #fff;
    border: 2px solid #bda364;
}

.premio-card--premium .premio-title,
.premio-card--premium .premio-desc {
    color: #fff;
}

.premio-card--premium .premio-date {
    background: rgba(189, 163, 100, .15);
    color: #e8c97a;
}

.premio-body {
    flex: 1;
}

.premio-icon-0 {
    font-size: 3rem;
    margin-bottom: .75rem;
    margin-top: 2rem;
}

.premio-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.premio-qty {
    font-size: 3.5rem;
    font-weight: 900;
    color: #bda364;
    line-height: 1;
    margin-bottom: .25rem;
}

.premio-title {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    color: #141a1f;
}

.premio-desc {
    color: #606266;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.premio-date {
	margin-top: 1rem;
    font-size: .8rem;
    color: #b88230;
    padding: .5rem .75rem;
    background: rgba(189, 163, 100, .08);
    border: 1px solid rgba(189, 163, 100, .25);
    border-radius: 8px;
    font-size: .85rem;
    color: #b88230;
    text-align: center;
}

.premio-date-1 {
	margin-top: 1rem;
    font-size: .8rem;
    color: #b88230;
    padding: .5rem .75rem;
    background-color: #f0ebd7;
	border: 1px solid #f0ebd7;
    /*border: 1px solid rgba(189, 163, 100, .25);*/
    border-radius: 8px;
    font-size: .85rem;
    color: #b88230;
    text-align: center;
}

.premio-date-2 {
	margin-top: 1rem;
    font-size: .8rem;
    color: #b88230;
    padding: .5rem .75rem;
    background-color: #6ea9db;
	border: 1px solid #6ea9db;
    /*border: 1px solid rgba(189, 163, 100, .25);*/
    border-radius: 8px;
    font-size: .85rem;
    color: #b88230;
    text-align: center;
}

.montepremi-badge {
    margin-top: 1rem;
    padding: .6rem 1rem;
    background: rgba(189, 163, 100, .1);
    border: 1px solid rgba(189, 163, 100, .25);
    border-radius: 8px;
    font-size: .85rem;
    color: #b88230;
    text-align: center;
}

/* ===== STEPS ===== */
.section-steps {
    background: #f8f4f0;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.step-card {
    background: #fff;
    border: 1px solid #e2e2e0;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: transform .25s, box-shadow .25s;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bda364;
    font-size: 1.5rem;
    padding: 0 .5rem;
    align-self: center;
}

.step-number {
    width: 38px;
    height: 38px;
    background: #bda364;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: .6rem;
}

.step-title {
    font-size: 1rem;
    margin-bottom: .5rem;
    color: #141a1f;
}

.step-desc {
    color: #73767a;
    font-size: .875rem;
}

.video-rules {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid #e2e2e0;
    border-left: 4px solid #bda364;
    border-radius: 0 14px 14px 0;
    padding: 1.75rem 2rem;
}

.rules-title {
    color: #b88230;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.rules-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .5rem;
}

.rules-list li {
    font-size: .875rem;
    color: #303133;
    padding: .25rem 0;
}

/* ===== DATE SECTION ===== */
.section-date {
    background: #fff;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.date-card {
    background: #f8f4f0;
    border: 1px solid #e2e2e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform .2s;
}

.date-card:hover {
    transform: translateY(-2px);
    border-color: #bda364;
}

.date-icon {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    margin-top: 1rem;
}

.date-icon-0 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    margin-top: 2rem;
}

.date-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #909399;
    margin-bottom: .3rem;
}

.date-value {
    font-size: 1rem;
    font-weight: 700;
    color: #b88230;
}

/* ===== FORM ===== */
.section-partecipa {
    padding: 3rem 0 5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: #141a1f;
}

.page-subtitle {
    color: #73767a;
    margin-top: .5rem;
}

.card-white {
    background: #fff;
    border: 1px solid #e2e2e0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

@media (min-width: 640px) {
    .card-white {
        padding: 2.5rem;
    }
}

.form-intro {
    background: rgba(189, 163, 100, .07);
    border-left: 3px solid #bda364;
    border-radius: 0 8px 8px 0;
    padding: .875rem 1rem;
    margin-bottom: 1.75rem;
    font-size: .9rem;
    color: #303133;
}

.form-fieldset {
    border: 1px solid #e2e2e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-legend {
    padding: 0 .5rem;
    color: #b88230;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row--3 {
    grid-template-columns: auto 1fr auto;
}

.form-group--wide {
    grid-column: span 1;
}

/* CAP piccolo | Città grande | Provincia piccola */
.form-row--indirizzo {
    grid-template-columns: 90px 1fr 70px;
    gap: 1rem;
}

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

    .form-row--3 {
        grid-template-columns: 1fr 1fr;
    }

    .form-row--3 .form-group--wide {
        grid-column: 1 / -1;
    }

    /* Mobile: Città piena, CAP+Prov affiancati */
    .form-row--indirizzo {
        grid-template-columns: 1fr 1fr;
    }

    .form-group--citta {
        grid-column: 1 / -1;
        order: -1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: .85rem;
    color: #606266;
    margin-bottom: .4rem;
    font-weight: 600;
}

.required {
    color: #dc3545;
}

.form-control {
    background: #fff;
    border: 1.5px solid #dcdfe6;
    color: #1d1e20;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #bda364;
    box-shadow: 0 0 0 3px rgba(189, 163, 100, .15);
}

.form-control::placeholder {
    color: #c0c4cc;
}

.form-error {
    color: #dc3545;
    font-size: .8rem;
    margin-top: .25rem;
    display: block;
}

/* Upload area */
.upload-area {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    text-align: center;
    min-height: 160px;
    padding: 2rem;
    background: #fafafa;
    border: 2px dashed #bda364;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.upload-label:hover,
.upload-area.drag-over .upload-label {
    background: rgba(189, 163, 100, .07);
    border-color: #a8893e;
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-text strong {
    color: #b88230;
    display: block;
    margin-bottom: .25rem;
}

.upload-text .upload-hint {
    color: #909399;
    font-size: .82rem;
    display: none;
}

@media (hover:hover) {
    .upload-text .upload-hint {
        display: block;
    }
}

.upload-formats {
    font-size: .75rem;
    color: #c0c4cc;
}

.upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f0f9eb;
    border: 1px solid #c0e6a0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: .75rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.preview-icon {
    font-size: 1.8rem;
}

.preview-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.preview-name {
    display: block;
    color: #529b2e;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    display: block;
    color: #909399;
    font-size: .8rem;
}

.preview-remove {
    background: none;
    border: none;
    color: #c0c4cc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: .25rem .4rem;
    border-radius: 6px;
}

.preview-remove:hover {
    background: #fee;
    color: #dc3545;
}

.upload-help {
    font-size: .8rem;
    color: #909399;
    margin-top: .75rem;
    padding: .5rem;
    text-align: center;
}

/* Checkboxes */
.form-check {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #dcdfe6;
    border-radius: 5px;
    cursor: pointer;
    margin-top: .1rem;
    transition: background .2s, border-color .2s;
}

.form-check-input:checked {
    background: #bda364;
    border-color: #bda364;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.854 3.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3.5-3.5a.5.5 0 01.708-.708L6.5 10.293l6.646-6.647a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-label {
    font-size: .875rem;
    color: #606266;
    line-height: 1.5;
}

.link-inline {
    color: #b88230;
    text-decoration: underline;
}

/* Submit */
.form-submit-area {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-note {
    color: #909399;
    font-size: .8rem;
    margin-top: .75rem;
}

.btn-submit {
    min-width: 260px;
    font-size: 1rem;
    padding: 1rem 2rem;
    white-space: normal !important;
    max-width: 100%;
}

@media (max-width: 520px) {
    .btn-submit {
        min-width: 0 !important;
        width: 100% !important;
        padding: .875rem 1.25rem !important;
        font-size: .95rem;
        display: block;
    }
}

.btn-submit.loading {
    opacity: .7;
    cursor: not-allowed;
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    line-height: 1.5;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: .05rem;
}

.alert-big {
    padding: 1.5rem;
    border-radius: 14px;
}

.alert-success {
    background: #f0f9eb;
    border: 1px solid #b3e19d;
    color: #529b2e;
}

.alert-warning {
    background: #fdf6ec;
    border: 1px solid #f3d19e;
    color: #b88230;
}

.alert-danger {
    background: #fef0f0;
    border: 1px solid #fcd3d3;
    color: #c45656;
}

.alert-info {
    background: #ecf5ff;
    border: 1px solid #a0cfff;
    color: #337ecc;
}

/* ===== GALLERIA ===== */
.section-galleria {
    padding: 2.5rem 0 5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.video-card {
    background: #fff;
    border: 1px solid #e2e2e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    -webkit-tap-highlight-color: transparent;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.video-card:focus {
    outline: 2px solid #bda364;
    outline-offset: 2px;
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #f4f4f5;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.video-card:hover .video-thumb {
    transform: scale(1.04);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity .2s;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem .875rem;
    flex-wrap: wrap;
    gap: .25rem;
    border-top: 1px solid #f4f4f5;
}

.video-author {
    font-size: .8rem;
    font-weight: 600;
    color: #303133;
}

.video-date {
    font-size: .72rem;
    color: #909399;
}

.galleria-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.galleria-empty h2 {
    margin-bottom: .75rem;
    color: #141a1f;
}

.galleria-empty p {
    color: #73767a;
}

/* ===== MODALE VIDEO ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 26, 31, .92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    animation: modalIn .25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.92)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.video-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, .3);
}

.video-modal-info {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    margin-bottom: .5rem;
    text-align: center;
}

.video-modal-content video {
    width: 100%;
    max-height: 80svh;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
    display: block;
}

/* ===== REGOLAMENTO ===== */
.section-regolamento {
    padding: 3rem 0 5rem;
}

.regolamento-content {
    margin-top: 1.5rem;
}

.regolamento-placeholder {
    text-align: center;
    padding: 3rem 1rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.regolamento-placeholder h2 {
    margin-bottom: .75rem;
}

.regolamento-placeholder p {
    color: #73767a;
    margin-bottom: .5rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2c353d;
    color: rgba(44, 53, 61, .7);
    padding: 3rem 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 60px;
    margin-bottom: .75rem;
}

.footer-tagline {
    font-size: .82rem;
    color: rgba(255, 255, 255, .4);
}

.footer-heading {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bda364;
    margin-bottom: .75rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: .4rem;
}

.footer-nav a {
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
    transition: color .2s;
}

.footer-nav a:hover {
    color: #bda364;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.5rem 0;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.8;
}

.footer-legal a {
    color: rgba(189, 163, 100, .7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 0;
    text-align: center;
    font-size: .75rem;
    color: rgba(255, 255, 255, .25);
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 .35rem;
}

.badge-warning {
    background: rgba(230, 162, 60, .2);
    color: #b88230;
}

.badge-success {
    background: rgba(40, 167, 69, .15);
    color: #28a745;
}

.badge-danger {
    background: rgba(220, 53, 69, .15);
    color: #dc3545;
}

.badge-info {
    background: rgba(51, 126, 204, .15);
    color: #337ecc;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e2e2e0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease, padding .35s;
    }

    .main-nav.open {
        max-height: 400px;
        padding: .75rem 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: .1rem;
        padding: 0 1rem;
    }

    .nav-link {
        padding: .75rem 1rem;
        border-radius: 8px;
    }

    .site-header {
        position: relative;
    }

    .step-arrow {
        display: none;
    }

    .steps-grid {
        gap: 1rem;
    }

    .step-card {
        min-width: 100%;
        max-width: 100%;
    }
}