/* =============================================
   STYLE_HOME.CSS - Per index.html
   ============================================= */

/* FONT E COLORI BASE */
:root {
  --azzurro: #4fc3f7;
  --verde: #4caf50;
  --scuro: #1b1b1b;
  --chiaro: #ffffff;
  --panna: #f5f1ea;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: var(--chiaro);
  color: var(--scuro);
}

#progetto { background: var(--chiaro); }
#giornali { background: var(--panna); }
#community { background: var(--chiaro); }
#merch { background: var(--panna); }
#contatti { background: var(--chiaro); }

/* =============================================
   HEADER
   ============================================= */
header {
  background: linear-gradient(90deg, var(--azzurro), var(--verde));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 50px;
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

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

nav a.active {
  text-decoration: underline;
  font-weight: 700;
}

/* MENU TOGGLE (MOBILE) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  color: white;
  background: url('immagini/home_4.webp') no-repeat center 75%;
  background-size: cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  margin-bottom: 1.5rem;
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* =============================================
   BOTTONI
   ============================================= */
.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  border: 2px solid transparent;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-green {
  background-color: var(--verde);
}

.btn-blue {
  background-color: var(--azzurro);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.btn:hover {
  opacity: 0.9;
}

/* =============================================
   SEZIONI
   ============================================= */
.section {
  padding: 3rem 2rem;
  text-align: center;
}

.section h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

/* =============================================
   SEZIONE PROGETTO
   ============================================= */
.progetto {
  padding: 4rem 2rem;
  background-color: var(--chiaro);
  display: flex;
  justify-content: center;
}

.progetto-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 60%;
}

.progetto-image {
  flex: 1;
}

.progetto-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.progetto-text {
  flex: 1;
  text-align: left;
}

.progetto-text h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

.progetto-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--scuro);
}

/* =============================================
   SEZIONE PAGINE GIORNALE
   ============================================= */
.giornali {
  padding: 4rem 2rem;
  background-color: var(--panna);
  text-align: center;
}

.giornali h2 {
  color: var(--verde);
  margin-bottom: 2rem;
}

.giornali-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.giornale-card {
  display: block;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  color: var(--scuro);
  transition: transform 0.3s, box-shadow 0.3s;
}

.giornale-card img {
  width: 100%;
  height: auto;
  display: block;
}

.giornale-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
}

.giornale-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =============================================
   CARD COMMUNITY
   ============================================= */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-width: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* =============================================
   ANTEPRIMA EVENTI (HOME)
   ============================================= */
.eventi-home {
  padding: 70px 20px;
  background: var(--chiaro);
  text-align: center;
}

.eventi-home h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--chiaro);
}

.eventi-preview {
  display: flex;
  justify-content: center;
}

.evento-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%; 
  min-height: 130px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evento-box h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #222;
}

.evento-box .btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

.eventi-home {
  background: url("immagini/eventi_bg.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

/* overlay scuro per leggibilità */
.eventi-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.eventi-home * {
  position: relative;
  z-index: 1;
}

/* =============================================
   CAROSELLO MERCH CON FRECCE
   ============================================= */
.merch-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merch-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.merch-scroll::-webkit-scrollbar {
  display: none;
}

.merch-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
}

.merch-item:hover {
  transform: scale(1.05);
}

.merch-item img {
  width: 100%;
  border-radius: 10px;
  height: auto;
}

.item h4 {
  margin: 0.5rem 0;
}

/* Frecce laterali */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  color: var(--verde);
  z-index: 2;
}

.arrow:hover {
  background: white;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* =============================================
   BOTTONE WHATSAPP
   ============================================= */
.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: scale(1.05);
}

.whatsapp-order {
  margin-top: 2rem;
  text-align: center;
}

/* =============================================
   BOX CONTATTI
   ============================================= */
.contact-box {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 520px;
  margin: 2rem auto;
  text-align: left;
}

.contact-box p {
  font-size: 1rem;
  margin: 0.8rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.contact-box strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-box a {
  color: var(--azzurro);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: white;
  padding: 1rem 1.5rem;
  display: none; 
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
}

#cookie-banner button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#accept-cookies {
  background: #4caf50;
  color: white;
}

#reject-cookies {
  background: #555;
  color: white;
}

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem 0;
  }

  nav.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card {
    width: 85%;
    max-width: none;
    text-align: center;
  }

  .progetto-container {
    flex-direction: column;
    text-align: center;
    width: 90%;
  }

  .progetto-text {
    text-align: center;
  }

  .progetto-image {
    width: 100%;
  }

  .giornale-card h3 {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .arrow {
    display: none;
  }

  .eventi-home {
    padding: 40px 15px;
  }

  .evento-box {
    padding: 20px;
    width: 90%;
    max-width: none; 
  }

  .evento-box h3 {
    font-size: 1.2rem;
  }

  .contact-box {
    width: 85%;
    padding: 1.5rem;
  }

  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  #cookie-banner div {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    width: 100%;
  }

  #cookie-banner button {
    flex: 1;
  }
}


/* =============================================
   FOOTER RISTRUTTURATO
   ============================================= */
.site-footer {
  background-color: var(--scuro);
  color: #ccc;
  font-size: 0.9rem;
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.footer-brand .footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
}

.footer-brand .footer-tagline {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.footer-socials a:hover {
  background: var(--verde);
  color: white;
}

.footer-col-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links li {
  line-height: 1.6; }

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--azzurro);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #888;
}

.footer-bottom a {
  color: var(--azzurro);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 1.2rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
