/* ================================================================================
   VARIABILI CSS E IMPOSTAZIONI GLOBALI
   ================================================================================ */

:root {
    /* Tavolozza colori */
    --primary: #3C3E8F;
    --secondary: #2B99BA;
    --light: #fff;
    --dark: #000000;
    --accent: #753089;

    /* Tipografia */
    --font-primary: "blacker-pro-display", serif;
    --font-display: "blacker-pro-display-regular", serif;

    /* Spaziature */
    --space: 10px;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 3rem;
    --space-xl: 4rem;

    /* Proprietà elementi */
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Animazioni */
    --transition: all 0.3s ease-in-out;
    --animazione-micro-s: 0.7s cubic-bezier(.32, .92, .6, .2);
    --animazione-micro-l: 0.9s cubic-bezier(.32, .92, .65, .39);
}

/* ================================================================================
   RESET E UTILITY
   ================================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container2 {
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.fixed {
    position: fixed;
    width: 100%;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

section {
    scroll-margin-top: 92px;
    padding: var(--space-m);
}

/* ================================================================================
   TIPOGRAFIA E FONT FACE
   ================================================================================ */

@font-face {
    font-family: "blacker-pro-display";
    src: url(../font/Blacker-Pro-Display-Bold.ttf) format("truetype");
}

@font-face {
    font-family: "blacker-pro-display-regular";
    src: url(../font/Blacker-Pro-Display-Regular.ttf) format("truetype");
}

.titolo {
    font-family: var(--font-primary);
    font-size: 60px;
    color: var(--light);
    margin: 0 0 10px 0;
}

.sottotitolo {
    font-family: var(--font-primary);
    font-size: 30px;
    color: var(--light);
    margin: 0 0 10px 0;
}

.testo-citazione {
    font-family: var(--font-display);
    margin-top: 50px;
    font-size: 25px;
}

h3 {
    color: var(--secondary);
    font-size: 20px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

/* ================================================================================
   HEADER E NAVIGAZIONE
   ================================================================================ */

header.header {
    background: var(--primary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs);
}

.imglogo {
    width: 100%;
    max-width: 200px;
}

.header__icon {
    display: none;
    color: var(--light);
}

.header__logo {
    margin-left: 30px;
}

.contenuto-header>li {
    display: inline-block;
}

.contenuto-header>li a {
    color: var(--light);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 20px;
    margin-top: 20px;
}

.contenuto-header>li:hover {
    opacity: 0.7;
}

/* ================================================================================
   HERO SECTIONS
   ================================================================================ */

/* Hero principale - HOME */
.hero {
    background: url(../img/jheronimus-bosch-011.jpg) no-repeat center var(--dark);
    background-position: top;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    box-sizing: border-box;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
}

.hero::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.7;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
}

.hero__content {
    color: var(--light);
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: var(--space-m);
    position: relative;
    z-index: 1;
}

/* Hero secondari */
.hero1,
.hero2,
.hero3,
.hero4 {
    background-position: top;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 50vh;
    padding-top: 50px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.hero1 {
    background: url(../img/1-Visionideltempo-2.jpg) no-repeat center var(--dark);
    background-size: cover;
}

.hero2 {
    background: url(../img/1-divinessenze.jpg) no-repeat center var(--dark);
    background-size: cover;
}

.hero3 {
    background: url(../img/borgo2.jpg) no-repeat center var(--dark);
    background-size: cover;
}

.hero4 {
    background: url(../img/1-1-sede.jpg) no-repeat center var(--dark);
    background-size: cover;
}

.hero1::before,
.hero2::before,
.hero3::before,
.hero4::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.7;
}

.hero1__content,
.hero2__content,
.hero3__content,
.hero4__content {
    color: var(--light);
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: var(--space-m);
    position: relative;
    z-index: 1;
}

/* Hero generici per pagine */
.hero-chisiamo,
.hero-eventi,
.hero-mostre {
    background-color: var(--primary);
    color: var(--light);
    padding: var(--space-l) 0;
    text-align: center;
    background-position: top;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 50vh;
    padding-top: 100px;
    box-sizing: border-box;
}

.hero-chisiamo .container,
.hero-eventi .container,
.hero-mostre .container,
.hero-eventi1 .container,
.hero-eventi2 .container,
.hero-eventi3 .container,
.hero-eventi4 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
    min-height: 20vh;
}

/* ================================================================================
   COMPONENTI E WIDGET
   ================================================================================ */

/* Bottoni */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary);
    color: white;
}

/* Icone social */
.fa-brands {
    padding: 15px;
    width: 25px;
    height: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
}

.fa-brands:hover {
    opacity: 0.7;
}

.fa-facebook-f,
.fa-instagram,
.fa-youtube {
    background: #ffffff;
    color: var(--primary);
}

/* Linea decorativa */
.linea-container {
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.hero .linea-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.linea-con-arca {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.linea {
    flex-grow: 1;
    height: 2px;
    background-color: var(--primary);
}

.arca {
    width: 150px;
    margin: 15px 15px;
}

/* ================================================================================
   SEZIONI CONTENUTO
   ================================================================================ */

/* Sezione immagine e testo */
.sezione-immagine-e-testo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.immagine-container {
    flex: 1;
    max-width: 50%;
}

.immagine-container img {
    width: 100%;
    height: auto;
    border-radius: 50px;
}

.testo-container {
    flex: 1;
    max-width: 50%;
    text-align: left;
    margin-left: 30px;
}

.testo-container h1 {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 10px;
}

.testo-container h2 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.testo-container p {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'blacker-pro-display-regular';
}

/* Chi siamo */
.content__chisiamo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.testo-container2 {
    flex: 1;
    max-width: 50%;
    text-align: left;
    margin-left: 30px;
}

.testo-container2 h2 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.testo-container2 p {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'blacker-pro-display-regular';
}

.immagine-container2 {
    flex: 1;
    max-width: 50%;
    margin-left: 40px;
}

.immagine-container2 img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    text-align: right;
}

.contenuto-chisiamo .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-l);
    padding: var(--space-l) 0;
}

.contenuto-chisiamo .testo {
    flex: 1;
    max-width: 600px;
    font-family: var(--font-display);
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--dark);
}

.contenuto-chisiamo .immagine {
    flex: 1;
    max-width: 400px;
}

.contenuto-chisiamo img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* ================================================================================
   CAROUSEL EVENTI
   ================================================================================ */

.eventi-carousel {
    background-color: var(--primary);
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 60px 60px;
    position: relative;
}

.titolo-sezione {
    color: var(--light);
    font-size: 2.5rem;
    font-family: var(--font-primary);
    margin-bottom: 30px;
}

.carousel-wrapper {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.evento-slide {
    position: relative;
    width: 300px;
    height: 440px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.evento-slide:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 62, 143, 0.8);
    color: white;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 30px;
    font-size: 1.2rem;
    font-family: var(--font-display);
    text-align: center;
    padding: 10px;
}

.evento-slide:hover .overlay {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: var(--light);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary);
    color: white;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 0.5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* ================================================================================
   FONDATORI SECTION
   ================================================================================ */

.fondatori-section {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fondatori-section.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fondatori-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.fondatori-section p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--primary);
}

.fondatori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.fondatore-card {
    background-color: #f9f9f9;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    padding-bottom: 20px;
}

.fondatore-card:hover {
    transform: translateY(-5px);
}

.fondatore-img {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.fondatore-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.fondatore-img:hover img {
    transform: scale(1.05);
}

.hover-name {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 62, 143, 0.7);
    color: var(--secondary);
    font-size: 1.2rem;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
    padding: 0 10px;
    text-align: center;
}

.fondatore-img:hover .hover-name {
    opacity: 1;
}

.fondatore-card h3 {
    font-size: 1.2rem;
    margin: 15px 10px 5px;
    color: var(--primary);
    font-family: var(--font-display);
}

.fondatore-card p {
    font-size: 0.95rem;
    color: #333;
    padding: 0 15px;
}

.fondatori-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fondatori-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================================
   SEZIONI EVENTI E MOSTRE
   ================================================================================ */

.sezione-eventi {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.sezione-mostre {
    padding: var(--space-l) 0;
}

.sezione-mostre .container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    justify-content: center;
}

.titolo-sezione2 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 50px;
}

.titolo-sezione3 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 50px;
    margin-top: 10px;
}

.titolo-sezione4 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 5px;
}

.titolo-sezione5 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.griglia-eventi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.evento-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.evento-card:hover {
    transform: scale(1.02);
}

.evento-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.evento-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-card:hover img {
    transform: scale(1.05);
}

.evento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--primary);
    color: white;
    text-align: center;
    font-family: var(--font-display);
}

.evento-overlay h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Card evento e mostra */
.evento,
.mostra {
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 300px;
    padding: var(--space-s);
    text-align: center;
}

.evento img,
.mostra img {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
}

.evento h2 {
    font-family: var(--font-primary);
    color: var(--primary);
    font-size: 1.5em;
    margin-top: var(--space-xs);
}

.evento .data {
    color: var(--secondary);
    font-weight: bold;
    margin: var(--space-xs) 0;
    font-family: var(--font-display);
}

.evento .descrizione,
.mostra .descrizione {
    font-family: var(--font-display);
    font-size: 1em;
    margin-top: var(--space-xs);
}

/* Evento singolo */
.evento-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.evento-testo {
    flex: 1 1 400px;
    font-size: 1.1rem;
    text-align: justify;
    font-family: var(--font-display);
    line-height: 1.7;
    color: var(--dark);
}

.evento-img-right {
    width: 50%;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

p.data {
    font-family: var(--font-primary);
    color: var(--secondary);
}

p.white {
    color: var(--light);
}

/* ================================================================================
   GALLERIA E LIGHTBOX
   ================================================================================ */

/* Galleria 1 - Blu */
.sezione-galleria {
    padding: 60px 0;
    background-color: var(--primary);
    text-align: center;
    margin-top: 100px;
}

/* Galleria 2 - Bianca */
.sezione-galleriawhite {
    padding: 60px 0;
    background-color: var(--light);
    text-align: center;
    margin-top: 100px;
}

.galleria-wrapper {
    position: relative;
    padding: 0 60px;
    overflow: hidden;
}

.galleria-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.galleria-track::-webkit-scrollbar {
    display: none;
}

.galleria-slide {
    height: 300px;
    width: auto;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.galleria-slide:hover {
    transform: scale(1.05);
}

.galleria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.galleria-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.galleria-btn.prev {
    left: 10px;
}

.galleria-btn.next {
    right: 10px;
}

/* Lightbox 1 - Blu */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 62, 143, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Lightbox 2 - Bianco */
.lightboxwhite {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 153, 186, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-contentwhite {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.lightboxwhite .closewhite {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Frecce navigazione lightbox */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.lightbox-nav.prev-lightbox {
    left: 30px;
}

.lightbox-nav.next-lightbox {
    right: 30px;
}

/* ================================================================================
   VIDEO E SEDE
   ================================================================================ */

.sezione-video {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.video-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-container iframe {
    width: 480px;
    height: 270px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

/* Sede */
.sezione-sede {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.sede-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sede-container iframe {
    width: 480px;
    height: 270px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);

}

.sede-container img {
    width: 580px;
    height: 370px;
    border-radius: 30px;
    box-shadow: var(--box-shadow);
}

/* ================================================================================
   CITAZIONE STATUTO
   ================================================================================ */

.sezione-citazione {
    padding: 80px 20px;
    font-family: var(--font-display, 'Poppins', sans-serif);
}

.titolo-citazione {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary);
    font-family: var(--font-primary);
}

.titolo-citazione span {
    font-size: 1.2rem;
    font-weight: 300;
    display: block;
    margin-top: 8px;
    color: var(--secondary);
}

.box-citazione {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(to right, #3C3E8F, #2B99BA);
    color: var(--light);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    line-height: 1.8;
    font-size: 1.1rem;
}

.box-citazione p {
    margin-bottom: 20px;
}

.box-citazione .firmato {
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 30px;
    color: #3C3E8F;
}

/* ================================================================================
   ANIMAZIONI E EFFETTI
   ================================================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-info {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.demo-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ================================================================================
   FOOTER
   ================================================================================ */

footer {
    background-color: var(--primary);
    color: var(--primary);
    padding: 30px 0;
}

footer .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.colonna {
    flex: 1;
    margin: 10px;
    min-width: 300px;
    text-align: left;
}

.testo-footer,
footer a {
    color: var(--light);
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
    font-family: 'blacker-pro-display-regular';
    margin-bottom: var(--space-m);
}

footer a i {
    font-size: 24px;
    margin-right: 10px;
    transition: color 0.3s ease;
}

footer iframe {
    border-radius: 8px;
    width: 100%;
    height: 200px;
}

footer i {
    margin-right: 8px;
}

footer a:hover {
    color: #f4b400;
}

.column a:nth-child(2) i,
.column a:nth-child(3) i,
.column a:nth-child(4) i {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* ================================================================================
   RESPONSIVE DESIGN - TABLET (max-width: 768px)
   ================================================================================ */

@media (max-width: 1200px) {
    .evento-slide {
        width: 280px;
        height: 400px;
    }
}


@media (max-width: 768px) {

    /* Typography */
    .titolo {
        font-size: 2rem;
    }

    .sottotitolo {
        font-size: 1.2rem;
    }

    .testo-citazione {
        font-size: 20px;
    }

    /* Header mobile */
    .header__icon {
        display: block;
    }

    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: var(--animazione-micro-s);
    }

    .open .header__menu {
        transform: translateY(0);
        transition: 0.3s ease-in-out;
    }

    .contenuto-header {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
        font-size: 3em;
    }

    /* Hamburger menu */
    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: var(--animazione-micro-s);
        display: flex;
    }

    .icon-hamburger span {
        background: var(--light);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: var(--space-s);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 8px;
        width: 70%;
    }

    .icon-hamburger span:nth-child(4) {
        top: 20px;
    }

    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .cover__hb {
        display: none;
    }

    body.open .header__menu {
        display: block;
    }

    /* Hero sections */
    .hero {
        padding: 100px 20px 20px 20px;
    }

    .hero__content {
        padding: 30px 10px;
    }

    /* Content sections */
    .sezione-immagine-e-testo,
    .content__chisiamo {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .immagine-container,
    .testo-container,
    .immagine-container2,
    .testo-container2 {
        max-width: 100%;
        align-items: center;
    }

    .linea-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Carousel */
    .carousel-wrapper {
        padding: 0 50px;
    }

    .evento-slide {
        width: 250px;
        height: 350px;
    }

    .titolo-sezione {
        font-size: 2rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    /* Foundatori */
    .fondatori-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer .container {
        text-align: center;
        padding: 20px;
    }

    /* Evento singolo */
    .evento-flex {
        flex-direction: column;
        align-items: center;
    }

    .evento-img-right {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    /* Galleria */
    .galleria-wrapper {
        padding: 0 15px;
    }

    .galleria-track {
        flex-direction: column;
        align-items: center;
    }

    .galleria-slide {
        width: 90%;
        height: auto;
        margin-bottom: 15px;
    }

    .galleria-btn {
        display: none;
    }

    /* Video e sede */
    .sezione-video {
        padding: 20px;
    }

    .sezione-sede {
        padding: 40px 15px;
    }

    .sede-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sede-container img {
        max-width: 100%;
        width: 100%;
    }

    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-container iframe {
        width: 100%;
        max-width: 90vw;
        height: 220px;
    }

    .titolo-sezione2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .titolo-sezione4,
    .titolo-sezione5 {
        font-size: 2rem;
    }

    .titolo-sezione3 {
        font-size: 1.2rem;
    }
}

/* ================================================================================
   RESPONSIVE DESIGN - MOBILE (max-width: 480px)
   ================================================================================ */

@media (max-width: 480px) {

    /* Carousel */
    .carousel-wrapper {
        padding: 0 40px;
    }

    .evento-slide {
        width: 220px;
        height: 300px;
    }

    .eventi-carousel {
        border-radius: 0 0 30px 30px;
    }

    .titolo-sezione {
        font-size: 1.8rem;
    }

    /* Galleria */
    .galleria-track {
        gap: 15px;
    }

    .galleria-slide {
        height: 180px;
    }

    .lightbox-content,
    .lightbox-contentwhite {
        max-width: 95%;
        max-height: 80%;
    }

    .sezione-sede {
        padding: 30px 10px;
    }

    .sede-container {
        gap: 15px;
    }

    .titolo-sezione2 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
}