/* =========================================================
   RESTYLING GRAFICO MODERNO - DON AGOSTINO CANTONI
   ========================================================= */

:root {
    --primary-color: #2b4c65;      /* Blu profondo caldo */
    --accent-color: #c87d4b;       /* Terracotta / ambra calda */
    --bg-light: #f7f8fa;           /* Grigio-panna leggerissimo */
    --text-dark: #2c333a;
    --text-muted: #5f6c7b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 16px 38px rgba(0, 0, 0, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.75;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lora', Georgia, serif;
    color: var(--primary-color);
}

/* --- PARALLAX & BANNER --- */
.banner,
.testimonials,
.parallax-divider {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 28, 38, 0.68) 0%, rgba(18, 28, 38, 0.52) 100%);
    z-index: 1;
}

.banner .container,
.banner header {
    position: relative;
    z-index: 2;
}

.banner-text h1 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.banner-text h1 sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.45em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 14px;
    bottom: 0;
    color: #f3d5b5;
}

.banner-text h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    opacity: 0.92;
    margin-top: 22px;
}

/* Fascia divisoria parallax tra le sezioni */
.parallax-divider {
    height: 220px;
}

.parallax-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(25, 38, 50, 0.42);
}

/* --- SEZIONI INTRO & SPETTACOLO (SLIDER) --- */
#intro blockquote,
#spettacolo blockquote {
    padding: 45px 50px;
    border-left: none;
}

#intro blockquote h1,
#spettacolo blockquote h1 {
    font-size: 28px;
    margin-bottom: 18px;
    line-height: 1.3;
}

#spettacolo blockquote h1 sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 6px;
    bottom: 0;
}

#intro blockquote p,
#spettacolo blockquote p {
    font-size: 15.5px;
    color: var(--text-dark);
    line-height: 1.8;
}

#spettacolo blockquote a {
    display: inline-block;
    margin: 5px 0;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

#spettacolo blockquote a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
    text-decoration: none;
}

/* --- SEZIONE CONCORSO (CARD MODERNE) --- */
#services {
    background-color: var(--bg-light);
    padding: 80px 0;
}

#services .partners-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

#services .partners-bar h5 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

#services .partners-bar img {
    max-height: 44px;
    width: auto;
    margin: 8px auto;
    filter: grayscale(15%);
    transition: filter 0.25s ease;
}

#services .partners-bar img:hover {
    filter: grayscale(0%);
}

/* Griglia flex per allineare l'altezza delle card nella stessa riga */
#services .row.concorsi-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

#services .row.concorsi-row > [class*='col-'] {
    display: flex;
    margin-bottom: 25px;
}

.concorso-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 28px;
    width: 100%;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Evidenzia la prima card (edizione corrente 2026-2027) */
#services .row.concorsi-row:first-of-type > div:first-child .concorso-card {
    border-top-color: var(--accent-color);
    box-shadow: 0 14px 36px rgba(200, 125, 75, 0.14);
}

.concorso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.concorso-card .icon {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 14px;
    display: inline-block;
}

.concorso-card h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.concorso-card h5 sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 6px;
    bottom: 0;
    line-height: 1.4;
}

.concorso-card p {
    font-size: 14.5px;
    color: var(--text-dark);
    line-height: 1.72;
}

.concorso-card em {
    color: #3e4c59;
    display: inline-block;
    padding-left: 10px;
    border-left: 2px solid var(--accent-color);
}

.concorso-card .concorso-links {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eef1f5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.concorso-card .concorso-links a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: #f0f4f8;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.concorso-card .concorso-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.concorso-card video {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* --- GALLERIA FOTO (#works) --- */
#works .work {
    padding: 12px;
}

#works .work a {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#works .work a:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    text-decoration: none;
    color: var(--accent-color);
}

#works .work img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* --- MUSICHE (#teams) --- */
#teams .person {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    transition: transform 0.25s ease;
}

#teams .person:hover {
    transform: translateY(-4px);
}

#teams .person-content {
    padding: 16px 20px;
    text-align: center;
}

#teams .person-content h4 {
    margin: 0;
    font-size: 18px;
}

/* --- GLI SCRITTI (#testimonials) --- */
#testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 43, 58, 0.78);
}

#testimonials blockquote {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 70px 25px;
    text-align: center;
    border: none;
}

#testimonials blockquote h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

#testimonials blockquote p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.85;
}

/* --- RESPONSIVE & MOBILE PARALLAX FIX --- */
@media only screen and (max-width: 991px) {
    .banner,
    .testimonials,
    .parallax-divider {
        background-attachment: scroll;
    }

    #intro blockquote,
    #spettacolo blockquote {
        padding: 30px 22px;
    }
}

/* --- MENU IN ALTO PIÙ FINE E SLANCIATO --- */
#header,
#header.fixed {
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(43, 76, 101, 0.08);
    z-index: 9999 !important;
}

#header .header-content {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    min-height: 0 !important;
}

#header .logo img {
    max-height: 36px;
    width: auto;
}

#header .primary-nav {
    margin-top: 6px !important;
}

#header .primary-nav li {
    margin-left: 20px !important;
}

#header .primary-nav li a,
#header.fixed .primary-nav li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.8px !important;
    color: #2b4c65 !important;
    padding: 4px 0 !important;
}

#header .primary-nav li a:hover,
#header.fixed .primary-nav li a:hover {
    color: #c87d4b !important;
}
