/* =============================================
   STYLE_CONTATTI.CSS - Per contatti.html
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --azzurro: #4fc3f7;
  --verde: #4caf50;
  --scuro: #1b1b1b;
  --chiaro: #f9f9f9;
  --panna: #f5f1ea;
}

* {
  box-sizing: border-box;
}

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

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

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 {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  user-select: none;
}

/* =============================================
   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;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

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

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.contatti-main {
  max-width: 1100px;
  margin: 0 auto;
}

.contatti-main-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   SEZIONI
   ============================================= */
.contatti-section {
  padding: 3.5rem 2rem;
  background: var(--chiaro);
}

.contatti-section-alt {
  background: var(--panna);
  /* full-width background */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50% + 2rem);
  padding-right: calc(50vw - 50% + 2rem);
}

.contatti-section-title {
  color: var(--verde);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* =============================================
   CARD TELEFONO (singola, centrata)
   ============================================= */
.contact-card-phone {
  max-width: 500px;
  margin: 0 auto;
}

/* =============================================
   GRID EMAIL
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* =============================================
   CONTACT CARD
   ============================================= */
.contact-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  font-weight: 600;
}

.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azzurro);
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: anywhere;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--verde);
  text-decoration: underline;
}

.contact-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
}

/* =============================================
   WHATSAPP BOX
   ============================================= */
.whatsapp-box {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
}

.whatsapp-box p {
  margin: 0 0 1.4rem;
  color: #555;
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

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

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

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.92);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  #nav-menu.open ul {
    display: flex;
    max-height: 400px;
    padding: 1rem 0;
  }

  .menu-toggle { display: block; }

  .contatti-section { padding: 2.5rem 1.2rem; }

  .contatti-section-alt {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .contact-card-phone { max-width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }

  .whatsapp-box { padding: 1.5rem; }

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

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

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}
