/* =============================================
   STYLE_EVENTI.CSS - Per eventi.html
   ============================================= */

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

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

#eventi-noi { background: var(--panna); }

/* =============================================
   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;
  gap: 1rem;
}

/* =============================================
   BOTTONI
   ============================================= */
.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

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

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

.btn:hover {
  opacity: 0.9;
}

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

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

/* =============================================
   CALENDARIO
   ============================================= */
.calendar {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
}

/* =============================================
   SEZIONE EVENTI FATTI DA NOI
   ============================================= */
.eventi-fatti-da-noi {
  background: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}

.eventi-fatti-da-noi h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: #4caf50;
}

.eventi-fatti-da-noi p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--scuro);
}

/* GALLERY */
.eventi-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

/* CARD */
.event-card {
  width: 300px;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform .25s ease;
}

.event-card:hover {
  transform: scale(1.03);
}

/* VIDEO */
.event-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) contrast(1.2);
  border-radius: 22px 22px 0 0;
}

/* OVERLAY DESKTOP */
.hover-style {
  position: relative;
}

.hover-style .hover-content {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: opacity .3s ease;
}

.hover-style:hover .hover-content {
  opacity: 1;
}

.hover-style .hover-content h3 {
  margin: 5px 0;
  color: white;
}

.hover-style .hover-content p {
  margin: 5px 0;
  color: #c0c0c0;
}

/* MOBILE INFO BOX */
.mobile-info {
  display: none;
  background: #fff;
  padding: 15px 18px;
  border-top: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
  text-align: left;
}

.mobile-info h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  color: #222;
}

.mobile-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #444;
}

/* Bottone stile Instagram / Drive */
.mobile-info .btn-drive,
.hover-content .btn-drive {
  display: inline-block;
  padding: 10px 16px;
  background: #ffffff;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.mobile-info .btn-drive:hover,
.hover-content .btn-drive:hover {
  opacity: 0.9;
}

/* =============================================
   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;
  }

  .eventi-fatti-da-noi {
    padding: 40px 15px;
  }

  .eventi-fatti-da-noi h2 {
    font-size: 1.4rem;
  }

  .eventi-fatti-da-noi p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .event-card {
    width: 90%;
    max-width: 350px;
    height: auto;
  }

  .hover-style .hover-content {
    display: none !important;
  }

  .mobile-info {
    display: block;
    text-align: center !important; 
    padding: 20px 18px;          
  }

  .mobile-info h3 {
    font-size: 1.1rem;
  }

  .mobile-info p {
    font-size: 0.95rem;
  }

  .mobile-info .btn-drive {
    background: #2196f3 !important; 
    color: #fff !important;
    display: block;                
    margin: 0 auto;                
    max-width: 200px;            
  }

  #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);
}

.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; }
}
