/* ===============================
   SNAMI NAPOLI - STILE ISTITUZIONALE
   =============================== */

:root {
  --snami-rosso-scuro: #8b681eff;
  --snami-rosso-chiaro: #C94E42;
  --snami-verde: #4C8C57;
  --snami-giallo: #FBEA96;
  --sfondo-chiaro: #F9F6F1;
  --sfondo-sezione: #F4EFEA;
}

/* ====== FONT ====== */
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--sfondo-chiaro);
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.section-title {
  font-family: 'Merriweather', serif;
}

/* ====== GALLERIA ====== */
.collage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collage img {
  width: 200px;
  /* puoi cambiare la larghezza */
  height: 150px;
  /* puoi cambiare l'altezza */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

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

/* ====== NAVBAR ====== */
.navbar {
  background-color: var(--snami-rosso-scuro);
}

.navbar a.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a.nav-link:hover {
  color: var(--snami-giallo) !important;
}

.navbar-brand img {
  height: 60px;
}

/* ====== CAROSELLO ====== */
#carouselHome {
  position: relative;
}

#carouselHome .carousel-item img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* Overlay sfumato rosso SNAMI */
#carouselHome .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(139, 30, 30, 0.45),
      rgba(201, 78, 66, 0.45));
  z-index: 1;
}

#carouselHome .carousel-caption {
  position: absolute;
  z-index: 2;
  bottom: 20%;
  text-align: center;
}

.text-shadow {
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

/* ====== SEZIONI ====== */
section {
  padding: 60px 0;
}

section:nth-of-type(even) {
  background-color: var(--sfondo-sezione);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--snami-rosso-scuro);
  font-weight: 700;
}

/* ====== CARD ====== */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ====== NEWSLETTER ====== */
.newsletter {
  background-color: var(--snami-giallo);
  padding: 40px;
  border-radius: 10px;
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--snami-rosso-scuro);
  color: #fff;
  padding: 30px 0;
}

footer a {
  color: var(--snami-giallo);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ====== BOTTONI ====== */
.btn-snami {
  background-color: var(--snami-rosso-scuro);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-snami:hover {
  background-color: var(--snami-rosso-chiaro);
  transform: scale(1.03);
  color: #fff;
}

.btn-outline-snami {
  background-color: transparent;
  color: var(--snami-rosso-scuro);
  border: 2px solid var(--snami-rosso-scuro);
  border-radius: 6px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-outline-snami:hover {
  background-color: var(--snami-rosso-scuro);
  color: #fff;
  transform: scale(1.03);
}

/* ====== ANIMAZIONI CAROSELLO ====== */
.animate-caption {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-item.active .animate-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.carousel-caption h2 {
  animation: fadeInDown 1s ease forwards;
}

.carousel-caption p {
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-ticker {
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: #790000;
  color: white;
  font-size: 16px;
  padding: 8px 0;
  white-space: nowrap;
  border-top: 2px solid #5a0000;
  border-bottom: 2px solid #5a0000;
  position: relative;
  z-index: 20;
}

.news-track {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: scroll-news 350s linear infinite;
  position: absolute;
  left: 100%;
}

@keyframes scroll-news {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-200%);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  #carouselHome .carousel-caption {
    bottom: 5%;
    padding: 0 15px;
  }

  #carouselHome .carousel-caption h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  #carouselHome .carousel-caption p {
    font-size: 0.95rem;
  }

  #privacyModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  #privacyModal a {
    color: var(--snami-rosso-scuro);
    text-decoration: underline;
  }



}