/* Stili aggiuntivi rispetto a site.css (Tailwind compilato) */

/* Entrata pagina */
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageEnter .6s ease-out both; }

/* Apertura modali */
@keyframes modalOpen { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.animate-modal-open { animation: modalOpen .35s ease-out forwards; }
.modal-panel { max-height: calc(100vh - 2rem); }

/* Bottone WhatsApp flottante: si allarga al passaggio del mouse */
.wa-fab { width: 3.5rem; transition: width .5s ease-out; }
.wa-fab-label { opacity: 0; transition: opacity .2s; }
@media (hover: hover) {
    .wa-fab:hover, .wa-fab:focus-visible { width: 20rem; padding-left: 1rem; padding-right: 1.5rem; }
    .wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { opacity: 1; }
}

/* Carousel */
[data-carousel] { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-track > * { flex: 0 0 100%; min-width: 0; }

/* Partner: scorrimento continuo */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { display: flex; width: max-content; animation: marquee 54s linear infinite; }
.marquee > * { width: 100vw; flex-shrink: 0; }
@media (min-width: 480px) { .marquee > * { width: 50vw; } }
@media (min-width: 768px) { .marquee > * { width: 33.333vw; } }
@media (min-width: 1280px) { .marquee > * { width: 25vw; } }
@media (prefers-reduced-motion: reduce) {
    .marquee, .carousel-track, .page-enter, .fade-up { animation: none !important; transition: none !important; }
}

/* Contenuto HTML delle news */
.news-content p { margin: 0 0 1em; }
.news-content ul, .news-content ol { margin: 0 0 1em 1.25em; }
.news-content ul { list-style: disc; }
.news-content ol { list-style: decimal; }
.news-content a { color: #0A3D62; text-decoration: underline; }
.news-content h2, .news-content h3 { font-weight: 700; color: #0A3D62; margin: 1.2em 0 .5em; }
.news-content strong { font-weight: 700; }
.news-content img { max-width: 100%; height: auto; }

