/* ========================================
   BELLINI 2025 - FOGLIO DI STILE MODERNO
   ======================================== */

/* ========================================
   1. RESET & CONFIGURAZIONI BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========================================
   2. VARIABILI CSS
   ======================================== */

:root {
    /* Colori principali */
    --primary-color: #FF6600;
    --secondary-color: #0066cc;
    --accent-color: #ff9900;
    
    /* Colori testo */
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    
    /* Colori sfondo */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #e9ecef;
    --bg-dark-gray: #495057;
    --bg-light-gray: #f1f3f4;
    
    /* Bordi e ombre */
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    
    /* Transizioni */
    --transition: all 0.3s ease;
}

/* ========================================
   3. LAYOUT BASE
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ========================================
   4. COMPONENTI PRINCIPALI
   ======================================== */

/* HEADER */
.header {
    background: linear-gradient(135deg, #777, #444);
    color: var(--text-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--text-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-text h1 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 2px;
}

.contact-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.contact-info p:last-child {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info a {
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.9;
}

.contact-info a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* NAVIGAZIONE */
.nav {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-item a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 80%;
}

/* MENU HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 30%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.7) 100%);
    color: var(--text-white);
    padding: 3rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-white);
}

/* FOOTER */
.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Regola con alta specificità per sovrascrivere eventuali conflitti */
footer.footer .container .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    justify-content: space-between !important;
    grid-template-columns: none !important;
}

footer.footer .container .footer-content .footer-section {
    flex: 1 !important;
    min-width: 200px !important;
    max-width: 300px !important;
    display: block !important;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-white);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a {
    color: var(--text-white);
    opacity: 0.8;
    text-decoration: none;
    display: inline;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ========================================
   5. COMPONENTI UI
   ======================================== */

/* CARD */
.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* BOTTONI */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* FORM */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* TABELLE */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--bg-gray);
}

/* ========================================
   6. UTILITY CLASSES
   ======================================== */

/* Allineamento testo */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margini bottom */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Margini top */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Visibilità */
.hidden {
    display: none !important;
}

/* ========================================
   7. ANIMAZIONI
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   8. STILI SPECIFICI
   ======================================== */

/* EVENT CARD */
.event-card {
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary-color);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.event-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.event-location {
    color: var(--text-light);
    font-style: italic;
}

/* ANNO CONTAINER */
.anno-container {
    background-color: var(--bg-light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.anno-container .card {
    background-color: var(--bg-white);
}

/* PROGRAMMA CONCERTO */
.programma-concerto {
    line-height: 1.8;
}

.programma-concerto p {
    margin-bottom: 1rem;
}

.programma-concerto strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* PREZZI */
.prezzo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.prezzo-ridotto {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

/* LINK DISCRETO */
.link-discreto {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.link-discreto:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* PROSSIMI EVENTI */
.prossimi-eventi .event-card {
    height: 100%;
}

.prossimi-eventi .event-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* PROGRAMMA DI SALA */
.event-card .btn {
    align-self: flex-start;
    width: auto;
}

.programma-sala-btn {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin: 1rem auto 0 auto;
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.programma-sala-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* HEADER PROGRAMMA */
.header-programma-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.programma-miniatura {
    display: inline-block;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.programma-miniatura:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.programma-miniatura img {
    width: 120px;
    height: auto;
    display: block;
}

/* CONFERENZA STAMPA */
.conferenza-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.conferenza-header h4 {
    margin-bottom: 0;
    flex: 1;
}

.conferenza-header .programma-miniatura {
    flex-shrink: 0;
}

.conferenza-header .programma-miniatura img {
    width: 80px;
    height: auto;
    display: block;
}

/* FIRMA PRESIDENTE */
.firma-presidente {
    font-style: italic;
    text-align: right;
    margin-top: 1rem;
    color: var(--text-light);
}

/* HOMEPAGE SPECIFICI */
.evidenziatoArancio {
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   9. RESPONSIVE DESIGN
   ======================================== */

/* TABLET */
@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-info {
        text-align: right;
    }
    
    .nav {
        padding: 0.5rem;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        margin-left: auto;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 1rem;
        margin-top: 0.5rem;
        z-index: 1002;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-item a {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: var(--border-radius);
    }
    
    .hero {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Layout concerti: sopra e sotto invece che affiancati */
    .concerto-container {
        flex-direction: column !important;
    }
    
    .concerto-container .card {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .concerto-container .card:last-child {
        margin-bottom: 0;
    }
    
    /* Immagini più piccole su mobile */
    .concerto-container .card img {
        height: 150px !important;
    }
    
    /* Pulsante Programma di Sala su mobile */
    .programma-sala-btn {
        height: 40px;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Header programma */
    .header-programma-section {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .programma-miniatura img {
        width: 70px !important;
        height: auto !important;
        max-width: 70px !important;
    }
    
    /* Conferenza stampa */
    .conferenza-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .conferenza-header .programma-miniatura img {
        width: 60px !important;
    }
}

/* MOBILE */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .logo {
        text-align: left;
    }
    
    .contact-info {
        text-align: right;
    }
    
    .section {
        padding: 1rem;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    
    .programma-sala-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.4rem;
        height: 35px;
    }
    
    .anno-container {
        padding: 0.5rem 0.3rem;
    }
    
    .programma-miniatura img {
        width: 70px !important;
        height: auto !important;
        max-width: 50px !important;
    }
    
    .conferenza-header .programma-miniatura img {
        width: 50px !important;
    }
}