/* ============================================================
   FOGLIARINO — Contatti, Footer, Final CTA, Tweaks
   ============================================================ */

/* ============== CONTATTI ============== */
.contatti {
  background: var(--bg);
}
.contatti-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}

/* LEFT — info cards */
.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.contact-block-main {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-left: 48px;
  line-height: 1.5;
}
.contact-block-main a { transition: color .15s ease; }
.contact-block-main a:hover { color: var(--brand); }
.contact-hours {
  margin-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-hours-row:last-child { border-bottom: none; }
.contact-hours-row span:first-child { font-weight: 500; }
.contact-hours-time { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }

/* MAP */
.contact-map {
  position: relative;
  height: 240px;
  margin-top: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact-map-streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.contact-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
}
.contact-map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(14,15,17,.3);
  position: relative;
  z-index: 2;
}
.contact-map-pin-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(4); opacity: 0; }
}
.contact-map-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  z-index: 3;
  text-align: center;
}
.contact-map-label .caps { color: #fff; font-size: 10px; }
.contact-map-label .spec { color: rgba(255,255,255,.6); margin-top: 2px; }
.contact-map-open {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, color .2s ease;
}
.contact-map-open:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* RIGHT — form */
.contatti-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form-eyebrow .caps { color: var(--ink-muted); }
.form-eyebrow-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--brand-tint);
  color: var(--brand-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-bottom: 1.5px solid var(--ink);
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--brand); }
.form-field textarea { resize: vertical; min-height: 80px; }

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.form-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.form-chip:hover { border-color: var(--ink); }
.form-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-privacy { color: var(--ink-muted); max-width: 240px; line-height: 1.5; }
.form-privacy a { color: var(--brand); }

@media (max-width: 900px) {
  .contatti-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
  .contatti-form { padding: 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
}

/* FINAL CTA */
.final-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
}
.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px 48px;
  align-items: center;
}
.final-cta .eyebrow.inverse { color: rgba(255,255,255,.6); margin-bottom: 20px; }
.final-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.final-cta-title em { font-style: normal; color: var(--brand); }
.final-cta-text {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 440px;
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .final-cta-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col-brand .wordmark { color: #fff; }
.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 24px 0 28px 0;
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Social nella sezione Contatti (sfondo chiaro) */
.contact-social { display: flex; gap: 10px; margin-top: 4px; }
.contact-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-social-link:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }

.footer-col-title {
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
  font-size: 11px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--brand); }
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.footer-contact svg { color: var(--brand); margin-top: 4px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  position: relative;
  z-index: 2;
}
.footer-bottom-left { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a:hover { color: #fff; }

.footer-bigmark {
  position: absolute;
  left: 50%;
  bottom: -45px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(140px, 22vw, 360px);
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.035);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-col-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bigmark { font-size: 22vw; bottom: -25px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-brand { grid-column: span 1; }
}

/* ============== TWEAKS TWEAKS (overrides) ============== */
/* Position the tweaks panel discretely */
[class*="tweaks-panel"] { font-family: var(--font-body); }

/* ============== CONSENSO PRIVACY (form) ============== */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  max-width: 62%;
}
.form-consent input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.form-consent a { color: var(--brand); font-weight: 500; }

/* ============== PLACEHOLDER MAPPA (consenso) ============== */
.map-consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: var(--surface-2);
}
.map-consent[hidden] { display: none; }
.map-consent p { margin: 0; max-width: 300px; font-size: 13px; color: var(--ink-muted); }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--surface-dark);
  color: var(--ink-inverse);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  flex-wrap: wrap;
}
.cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  max-width: 720px;
}
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
.cookie-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .form-consent { max-width: 100%; }
}
