/* IMPOSTAZIONI GENERALI */
body {
    font-family: "Marcellus", serif;
    color: #ffffff;
    background: linear-gradient(135deg, 
    #e0a43a 0%, 
    #d3922f 25%, 
    #c07f25 50%, 
    #a86b1c 75%, 
    #915715 100%
);

    position: relative;
    z-index: 0;
    min-height: 100vh;
}

/* Sfondo con pattern sovrapposto all'ocra */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('https://img.freepik.com/premium-photo/picture-black-background-with-words-word-it_421632-26090.jpg?w=900') no-repeat center center fixed,
        linear-gradient(135deg, rgba(204, 119, 34, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    background-size: cover;
    background-blend-mode: overlay;
    opacity: 0.15;
    z-index: -1;
}

/* TITOLI */
h2 {
    font-family: 'Reenie Beanie', cursive;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: #0d0d0d;
    -webkit-text-stroke: 1.1px #000;
    text-shadow: 0px 5px 0 #00000057;
    transform: rotate(-1.2deg);
    text-align: center;
    padding: 0 10px;
}

.presentation h1 {
    text-align: center;
    padding: 0px 0;
    font-size: 12.7rem;
    text-transform: none;
    font-weight: 700;
    letter-spacing: -1px;
    color: #FFFFFF;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 140, 0, 0.3);
    position: relative;
}

/* NAVBAR MODERNA SENZA FASCE BIANCHE */
.navbar {
    background: 
        linear-gradient(145deg, #8a5200, #6b3f00),
        rgba(220, 20, 60, 0.3) !important;
    background-blend-mode: overlay;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* RIMOSSO: navbar::before che creava la fascia bianca superiore */

.navbar .container::after {
    content: none; /* Rimuovi linea laterale destra */
}

/* Logo */
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 5px;
}

.navbar-brand img:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

/* Pulsante hamburger */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu per desktop */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(255, 215, 0, 0.2);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

/* Menu per mobile */
.menu-container {
    background: rgba(107, 63, 0, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

.menu-container a {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-left: 4px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.menu-container a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    transform: translateX(8px);
    border-left-color: #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* BOX CONTENUTI */
.col-box {
    padding: 25px;
    border-radius: 15px;
    font-family: "Marcellus", serif;
    font-weight: 400;
    align-items: center;
    justify-content: center;
    text-align: justify;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.col-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFA500, transparent);
}

.col-box p {
    width: 100%;
    color: #F0F0F0;
    line-height: 1.6;
}

/* SEZIONE LABORATORIO - FASCIA OBLIQUA FANTASIOSA */
#laboratorio {
    position: relative;
    padding: 120px 0;
    text-align: center;
    margin: 60px 0;
    overflow: hidden;
    isolation: isolate;
}

/* Sfondo principale con pattern diagonale */
#laboratorio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(138, 82, 0, 0.9) 0%,
            rgba(107, 63, 0, 0.85) 25%,
            rgba(255, 140, 0, 0.8) 50%,
            rgba(255, 165, 0, 0.85) 75%,
            rgba(138, 82, 0, 0.9) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.1) 10px,
            rgba(255, 215, 0, 0.1) 20px
        );
    z-index: -2;
    transform: skewY(-4deg); /* Effetto obliquo */
    transform-origin: top left;
}

/* Contenitore interno con bordo artistico */
#laboratorio .container > .row {
    background: rgba(26, 15, 0, 0.7);
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Box con sfondo semicerchio */
#laboratorio .text-box {
    position: relative;
    text-align: center;
    padding: 30px;
}

#laboratorio .semicerchio {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-49%);
    width: 300px;
    height: 300px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 150px;
    filter: blur(20px);
}

#laboratorio .text-box p {
    position: relative;
    z-index: 1;
    text-align: justify;
    font-size: 1.1rem;
    color: #E8E8E8;
}

/* CAROUSEL */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    padding: 15px;
    background: rgba(26, 15, 0, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.7) rgba(26, 15, 0, 0.3);
    padding: 10px;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: rgba(26, 15, 0, 0.3);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FFA500, #FFD700);
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 15px;
}

.carousel img {
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid transparent;
    object-fit: cover;
}

.carousel img:hover {
    transform: scale(1.25);
    border-color: #FFA500;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

/* IMMAGINI GENERALI */
img, .img-fluid {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 0, 0.95);
    text-align: center;
    z-index: 2000;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    margin-top: 8%;
    border: 3px solid #FFA500;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255, 165, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #FFA500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #FFD700;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #FFA500;
    cursor: pointer;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    color: #FFD700;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* BOTTONE TOGGLE */
#toggle-text {
    background: linear-gradient(135deg, #8a5200, #6b3f00);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 25px;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Marcellus', serif;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#toggle-text:hover {
    background: linear-gradient(135deg, #9a5a00, #7a4700);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

/* ARTIST TITLE */
.artist-title {
    font-size: 1rem;
    color: #FFA500;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* COVER PHOTO */
.cover-photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.cover-photo::before,
.cover-photo::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 165, 0, 0.08);
    border-radius: 50%;
    z-index: 2;
    filter: blur(15px);
}

.cover-photo::before {
    top: -100px;
    left: -100px;
}

.cover-photo::after {
    bottom: -100px;
    right: -100px;
}

/* HOME ICON */
.home-icon {
    text-decoration: none;
}

.home-icon .material-icons {
    color: #FFD700;
    font-size: 28px;
    transition: all 0.3s ease;
}

.home-icon:hover .material-icons {
    color: #FFA500;
    transform: scale(1.2);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a0f00, #2c1a00);
    color: #FFD700;
    border-top: 3px solid #8a5200;
    margin-top: 50px;
}

/* COOKIE CONSENT */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #8a5200, #6b3f00);
    color: #FFD700;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 2px solid #FFA500;
    z-index: 9999;
}

.cookie-consent p {
    margin: 0;
    flex: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cookie-consent button {
    margin-left: 20px;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: #1a0f00;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent button:hover {
    background: linear-gradient(135deg, #FFB733, #FFA500);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

h2 {
    font-family: 'Reenie Beanie', cursive;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: #0d0d0d;
    -webkit-text-stroke: 1.1px #000;
    text-shadow: 0px 5px 0 #00000057;
    transform: rotate(-1.2deg);
    text-align: center;
    padding: 0 10px;
}

.cover-video {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cover-video-carnevale {
    width: 38%;
    height: auto;
    max-height: 113vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fade-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Classe base per gli elementi da animare */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.9s ease-out;
}

/* Quando diventa visibile */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ritardo progressivo per far apparire gli elementi uno dopo l'altro */
.fade-in:nth-child(1) { transition-delay: 0.2s; }
.fade-in:nth-child(2) { transition-delay: 0.4s; }
.fade-in:nth-child(3) { transition-delay: 0.6s; }
.fade-in:nth-child(4) { transition-delay: 0.8s; }
.fade-in:nth-child(5) { transition-delay: 1.0s; }
.fade-in:nth-child(6) { transition-delay: 1.2s; }

.fade-in {
    opacity: 0;
    transform: scale(0.96);
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: rgba(220, 20, 60, 0.08);
    border: 1px solid rgba(200, 30, 60, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-header {
    background: #c1121f;
    color: white;
    padding: 14px 18px;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.card-body {
    padding: 18px 22px;
    font-size: 1.05rem;
}

.card-body strong {
    color: #a00;
}

.card-body br {
    content: "";
    display: block;
    margin-bottom: 0.6em;
}

/* Opzionale: stile leggermente diverso per la card delle mostre */
.extra-card .card-header {
    background: #9e1b32; /* rosso un po' più scuro per differenziarla */
}

.extra-card .card-body {
    text-align: center;
}

/* ANIMAZIONI */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.col-box, .carousel-container {
    animation: fadeIn 0.8s ease-out;
}

/* Effetto glow per elementi interattivi */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 165, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 165, 0, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 165, 0, 0.5); }
}

.navbar-nav .nav-link:focus,
#toggle-text:focus,
.cookie-consent button:focus {
    animation: glow 2s infinite;
    outline: none;
}

/* Animazioni per la sezione laboratorio */
@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* IMPOSTAZIONI RESPONSIVE MOBILE */

/* Per schermi fino a 768px (tablet e mobile) */
@media (max-width: 768px) {
    
    /* 1. TITOLI RESPONSIVI */
    h2 {
        font-size: 3.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0 5px;
        -webkit-text-stroke: 0.8px #000;
    }
    
    /* MODIFICA RICHIESTA: h2::after per mobile */
    h2::after {
        top: 50px !important;
    }
    
    h4 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h5 {
        font-size: 1.4rem;
    }
    
    h6 {
        font-size: 1.2rem;
    }
    
    /* 2. TESTO RESPONSIVO */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .col-box p, #laboratorio .text-box p {
        font-size: 1rem !important;
        text-align: justify;
        padding: 0 10px;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* 3. IMMAGINI RESPONSIVE */
    .img-fluid, img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Video landing page */
    .cover-video {
        max-height: 40vh !important;
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    /* Video carnevale */
    .cover-video-carnevale {
        width: 100% !important;
        max-height: 50vh !important;
        margin: 1rem 0;
    }
    
    /* 4. LAYOUT SEZIONI */
    /* Sezione Landing */
    #landing .row {
        flex-direction: column !important;
    }
    
    #landing .col-md-6 {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    /* Sezione Laboratorio - Responsive */
    #laboratorio {
        padding: 80px 0;
        margin: 40px 0;
    }
    
    #laboratorio::before {
        transform: skewY(-6deg); /* Più obliquo su mobile */
    }
    
    #laboratorio .container > .row {
        padding: 25px 15px;
        margin: 20px 0;
    }
    
    #laboratorio .container::before,
    #laboratorio .container::after {
        font-size: 1.8rem;
    }
    
    #laboratorio .container::before {
        top: -25px;
        left: 10px;
    }
    
    #laboratorio .container::after {
        bottom: -25px;
        right: 10px;
    }
    
    #laboratorio .col-md-6 {
        width: 100% !important;
        padding: 15px !important;
    }
    
    #laboratorio img.img-fluid {
        width: 100% !important;
        margin: 1rem 0;
    }
    
    .text-box {
        padding: 20px 15px !important;
    }
    
    .semicerchio {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* Sezione Carnevale */
    #carnevale .row {
        flex-direction: column !important;
    }
    
    #carnevale .col-12.col-md-6 {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    /* Griglia programmi carnevale */
    .program-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        font-size: 1.1rem !important;
        padding: 10px 15px !important;
    }
    
    .card-body {
        padding: 15px !important;
        font-size: 0.95rem !important;
    }
    
    /* Griglia artisti */
    .row-cols-2.row-cols-md-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .artist-title {
        font-size: 0.9rem;
    }
}

/* STILE CONDIVISO PER TUTTE LE SECTION - MODIFICATO SENZA FASCE BIANCHE */
.section-styled {
    position: relative;
    padding: 20px 0;
    text-align: center;
    margin: 1px 0;
    overflow: hidden;
    isolation: isolate;
}

/* Sfondo principale con pattern diagonale - MODIFICATO */


/* RIMOSSO: .section-styled::after che creava la fascia bianca triangolare */

/* Contenitore interno - MODIFICATO SENZA BORDI BIANCHI */
.section-styled .container > .row {
   
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid rgba(255, 165, 0, 0.2);
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* RIMOSSO: .section-styled .container > .row::before (bordo gradient animato) */

/* FRAME BIANCO TRASPARENTE PER VIDEO/IMMAGINI - MODIFICATO */
.white-frame {
    background: rgba(255, 255, 255, 0.1); /* Ridotta trasparenza */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.white-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFA500, transparent);
}

.white-frame video,
.white-frame img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* REGOLAMENTO BOX - MODIFICATO */
.regolamento-box {
    background: rgba(26, 15, 0, 0.85);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border-left: 5px solid #FFA500;
    border-right: 1px solid rgba(255, 165, 0, 0.2);
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.regolamento-content h5 {
    color: #FFD700;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 5px;
}

.regolamento-content p {
    text-align: justify;
    margin-bottom: 15px;
    color: #E8E8E8;
}

/* BOTTONE SCARICA REGOLAMENTO */
.btn-warning {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border: none;
    color: #1a0f00;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFB733, #FFA500);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* BOTTONE OUTLINE */
.btn-outline-light {
    border: 2px solid #FFD700;
    color: #FFD700;
    background: transparent;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFA500;
    border-color: #FFA500;
}

/* RESPONSIVE PER LE NUOVE SEZIONI */
@media (max-width: 768px) {
    .section-styled {
        padding: 40px 0;
        margin: 0px 0;
    }
    
    .section-styled::before {
        transform: skewY(-6deg);
    }
    
    .section-styled .container > .row {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .white-frame {
        padding: 8px;
    }
    
    .regolamento-box {
        padding: 20px;
    }
    
    h2 {
        font-family: 'Reenie Beanie', cursive;
        font-size: 3rem;
        font-weight: 400;
        line-height: 1.05;
        letter-spacing: 0.5px;
        color: #0d0d0d;
        -webkit-text-stroke: 1.1px #000;
        text-shadow: 0px 5px 0 #00000057;
        transform: rotate(-1.2deg);
        text-align: center;
        padding: 0 10px;
    }
    
    h2::after {
        top: 50px !important;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    h4 {
        font-size: 1.6rem;
    }
}

/* STILI PER LE CARD MODERNE CON HEADER PASTELLO */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: rgba(26, 15, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-header {
    border: none;
    font-family: 'Reenie Beanie', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    color: white;
    padding: 20px;
    text-align: center;
}

/* COLORI PASTELLO PER CARD HEADER */
.card:nth-child(1) .card-header {
    background: linear-gradient(135deg, #FFB6C1, #FF9EB5); /* Rosa pastello */
}

.card:nth-child(2) .card-header {
    background: linear-gradient(135deg, #B5EAD7, #97E6C6); /* Verde pastello */
}

.card:nth-child(3) .card-header {
    background: linear-gradient(135deg, #C7CEEA, #A5B4FC); /* Blu pastello */
}

.card:nth-child(4) .card-header {
    background: linear-gradient(135deg, #FFDAC1, #FFB7B2); /* Pesca pastello */
}

.card-body {
    padding: 25px;
    font-family: 'Poppins', sans-serif;
    color: #E8E8E8;
    line-height: 1.7;
}

.card-body strong {
    color: #FFD700;
}

/* IMMAGINE RIDIMENSIONATA */
.cover-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 165, 0, 0.3);
    margin: 0 auto;
    display: block;
}

/* RIMOZIONE FRAME BIANCHI */
.white-frame {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* LAYOUT CARD - 2 PER RIGA */
.program-row {
    margin-bottom: 30px;
}

.program-row .card {
    margin-bottom: 20px;
}

/* REGOLAMENTO CON FONDO PASTELLO MODERNO */
.regolamento-box {
    background: linear-gradient(135deg, rgba(107, 63, 0, 0.9), rgba(138, 82, 0, 0.9));
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.regolamento-content h5 {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2rem;
    color: #FFD700;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px dashed rgba(255, 215, 0, 0.3);
}

.regolamento-content p {
    font-family: 'Poppins', sans-serif;
    color: #E8E8E8;
    margin-bottom: 20px;
    text-align: justify;
}

/* STILI AGGIUNTIVI PER RESPONSIVE CARD */
@media (max-width: 768px) {
    .card-header {
        font-size: 1.8rem;
        padding: 15px;
    }
    
    .cover-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .regolamento-box {
        padding: 25px;
    }
    
    .card-body {
        padding: 20px;
    }
}




.custom-background-row-prima-card {
    background-image: url('assets/img/sfondoCard/prima-card.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.5rem;
    border-radius: 15px;
    position: relative;
    margin: 2rem 0;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    min-height: 400px; /* Altezza minima per visualizzare meglio lo sfondo */
}

/* Overlay per migliorare la leggibilità - versione più leggera */
.custom-background-row-prima-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 15, 0, 0.4); /* Overlay scuro ma trasparente */
    z-index: 1;
    border-radius: 15px;
}

.custom-background-row-prima-card > div {
    position: relative;
    z-index: 2;
}

/* Migliora la leggibilità del testo */
.custom-background-row-prima-card h3 {
    color: #FFD700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 3rem;
}

.custom-background-row-prima-card p {
    color: #F0F0F0 !important;
    font-size: 1.1rem;
    line-height: 1.7;
}

.custom-background-row-prima-card strong {
    color: #FFA500 !important;
    font-weight: 700;
}

/* Sfondo per la seconda row */
.custom-background-row-seconda-card {
    background-image: url('assets/img/sfondoCard/prima-card.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 2rem;
    border-radius: 15px;
    position: relative;
    margin: 2rem 0;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    min-height: 400px;
    overflow: hidden;
}

.custom-background-row-seconda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 15, 0, 0.85) 0%,
        rgba(107, 63, 0, 0.75) 50%,
        rgba(26, 15, 0, 0.85) 100%
    );
    z-index: 1;
    border-radius: 15px;
}

.custom-background-row-seconda-card > div {
    position: relative;
    z-index: 2;
}

/* Card inclinate */
.card-tilt-left {
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.card-tilt-right {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.card-tilt-left:hover,
.card-tilt-right:hover {
    transform: rotate(0deg) translateY(-10px);
}

/* Card con immagine di sfondo */
.card-with-bg {
    position: relative;
    overflow: hidden;
    background: rgba(26, 15, 0, 0.9) !important;
    border: 2px solid rgba(255, 165, 0, 0.4);
}

.card-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/img/sfondoCard/prima-card.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    border-radius: 15px;
}

.card-with-bg .card-header,
.card-with-bg .card-body {
    position: relative;
    z-index: 1;
}

/* Migliora la leggibilità del testo */
.card-with-bg .card-body {
    background: rgba(26, 15, 0, 0.7);
    color: #F5F5F5;
}

.card-with-bg .card-body strong {
    color: #FFD700;
}

.card-with-bg .card-body em {
    color: #FFA500;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-background-row-seconda-card {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .card-tilt-left,
    .card-tilt-right {
        transform: rotate(0deg);
    }
    
    .card-tilt-left:hover,
    .card-tilt-right:hover {
        transform: translateY(-10px);
    }
}


