/* ============================== */
/*  CHIUSURA / FOOTER — OLIVA PRO */
/* ============================== */

.chiusura-pro{
  --olive:   #35392a;
  --olive-2: #2e3226;
  --text:    #fff;
  --muted:   rgba(255,255,255,.75);
  --accent:  #a87344; /* mattone/arancio progetto */
  position: relative;
  isolation: isolate;
  color: var(--text);
  background: var(--olive);
  overflow: hidden;
}

/* ---- Layer di fondo: gradiente + grana leggera ---- */
.chiusura-bg{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 15% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 500px at 85% 120%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--olive) 0%, var(--olive-2) 100%);
}
.chiusura-grain{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .08;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 2px);
  mix-blend-mode: multiply;
}

/* ---- Layout principale ---- */
.chiusura-container{
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 5vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px){
  .chiusura-container{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ---- Brand (colonna sinistra) ---- */
.chiusura-brand{
  display: grid;
  justify-items: center;   /* centrato orizzontalmente nella colonna sx */
  align-content: start;    /* più in alto nella colonna */
  gap: 12px;
}
.chiusura-brand .closure-logo,
.chiusura-brand .brand-logo{
  display: block;
  width: clamp(200px, 22vw, 360px);  /* più grande, responsivo */
  height: auto;
  margin: 0 0 8px 0;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
}
.chiusura-brand h2{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.chiusura-brand .sub{
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

/* Evidenziazione coerente col resto del sito */
.chiusura-pro .hl-strong{
  background: linear-gradient(180deg, transparent 62%, rgba(255,255,255,.22) 62%);
  color: inherit;
}

/* ---- Cards contatti (colonna destra) ---- */
.chiusura-contacts .contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 560px){
  .chiusura-contacts .contact-grid{ grid-template-columns: 1fr; }
}

.c-card{
  --mx: 50%; --my: 50%; /* luce di default al centro */
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-auto-rows: auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .3s ease, background .25s ease, border-color .25s ease;
  overflow: hidden;
}
.c-card .ico{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
}
.c-card .ico svg{ width: 20px; height: 20px; fill: #fff; opacity: .95; }
.c-card .label{ font-weight: 700; }
.c-card .hint{ grid-column: 2 / -1; font-size: 12px; color: var(--muted); }

.c-card::after{
  content: "";
  position: absolute; inset: -2px;
  border-radius: 18px;
  background: radial-gradient(400px 120px at var(--mx) var(--my), rgba(255,255,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.c-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}
.c-card:hover::after{ opacity: 1; }
.c-card:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 2px;
}

/* ---- Linea ambiente con pallini animati ---- */
.chiusura-ambient{
  position: relative; z-index: 1;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.chiusura-ambient .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; opacity: .22; margin: 0 8px;
  animation: dotFloat 5s ease-in-out infinite;
}
.chiusura-ambient .dot:nth-child(2){ animation-delay: .6s;  opacity: .28; }
.chiusura-ambient .dot:nth-child(3){ animation-delay: 1.2s; opacity: .34; }
@keyframes dotFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* ---- Barra legale ---- */
.chiusura-legal{
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(3px);
}
.legal-container{
  max-width: 1200px; margin: 0 auto; padding: 14px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.legal-left{ align-items:center; margin: 0; font-size: 14px; color: var(--muted); }
.legal-links{ justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.legal-links a{
  color: #fff; text-decoration: none; font-size: 14px; opacity: .9; position: relative;
}
.legal-links a::after{
  content: ""; position: relative; left: 0; right: 0; bottom: -2px; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; opacity: .6;
}
.legal-links a:hover::after{ transform: scaleX(1); }

/* ---- Back to top ---- */
.to-top{
  position: fixed; right: 18px; bottom: 18px; z-index: 20;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, border-color .2s ease;
}
.to-top svg{ width: 18px; height: 18px; fill: currentColor; }
.to-top:hover{ background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.to-top.show{ opacity: 1; transform: translateY(0); }

/* ---- Reveal on scroll (coerente con altre sezioni) ---- */
.chiusura-pro [data-fade]{ opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.chiusura-pro [data-fade].in{ opacity: 1; transform: none; }

/* ---- Mobile-first centrato (tutta la sezione) ---- */
@media (max-width: 768px){
  .chiusura-pro{ text-align: center; }
  .chiusura-brand{ justify-items: center; }
  .chiusura-contacts .contact-grid{ grid-template-columns: 1fr; }
}

/* ---- Ridotta animazione per accessibilità ---- */
@media (prefers-reduced-motion: reduce){
  .chiusura-pro *{ animation: none !important; transition: none !important; }
}

@media (max-width: 768px){
  .legal-container{
    justify-content: center;  /* centra tutto il contenuto */
    text-align: center;       /* centra anche il testo */
  }
  .legal-links{
    justify-content: center;  /* centra i link */
    width: 100%;
  }
}

