/* MODIFICHE ALLA SEZIONE DELLA TORRE DI PALIDORO */


/* sezione nascosta all'inizio */
.title-torredipalidoro-storia.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.p-3d-torredipalidoro.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* quando diventa visibile */
.title-torredipalidoro-storia.visible {
    opacity: 1;
    transform: translateY(0);
}
.p-3d-torredipalidoro.visible {
    opacity: 1;
    transform: translateY(0);
}

/* posizione del titolo */
.title-torredipalidoro-storia {
    position: relative;
    padding-bottom: 2rem; /* spazio sotto il titolo + barra */
    text-align: center;
    will-change: opacity, transform;
}

/* modifiche al titolo */
.title-torredipalidoro-storia h2 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 34px;
    text-align: center;
    padding: 1rem 1rem;
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* la bar sotto al titolo */
.torredipalidoro-bar {
    width: 30%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 3px;
    margin: -1rem auto 0.1rem auto; /* margine sopra e sotto */
    position: static; /* torna nel normale flusso del documento */
}

/* modifiche al paragrafo */
.p-torredipalidoro p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 17px;
    color: var(--dark-color);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 800px;
}

/* sottolinea */
.sottolinea {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px; /* spessore */
}

/* MODELLO 3D */
.torre-modello-3d-torredipalidoro model-viewer {
    width: 100%;
    height: 400px;
    max-width: 600px;
    border: none;
    background-color: transparent;
    margin-left: 3rem;
    transition: transform 0.3s ease;
    transform: scale(1.7);
}

/* si ingrandisce solo al passaggio del mouse */
.torre-modello-3d-torredipalidoro model-viewer:hover {
    transform: scale(1.9);
}

/* per far sì che il paragrafo e il modello 3d siano affiancati */
.p-3d-torredipalidoro {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding: 0 1rem;
    will-change: opacity, transform;
}

.p-torredipalidoro, .torre-modello-3d-torredipalidoro {
    flex: 1 1 400px;
    max-width: 600px;
    will-change: opacity, transform; /* per far si che eviti il lag durante l'animazione */
}

/* SEPARATORE */
.divider-dopoguerra {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    height: 50px;
    margin: 1rem -1rem;
}


