/*
Theme Name: Thermocolor
Theme URI: https://thermocolor.it
Author: Thermo Color SRL
Description: Tema professionale per Thermo Color SRL - Tinteggiatura, Verniciatura, Rete e Rasatura, Cappotto Termico
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: thermocolor
*/

:root {
  --rainbow: linear-gradient(90deg, #e63946, #f4a261, #e9c46a, #52b788, #4361ee, #7209b7);
  --accent: #1d4ed8;
  --accent-dark: #1e3aa8;
  --accent-soft: #eaf0ff;
  --ink: #14171f;
  --ink-soft: #5b6472;
  --ink-faint: #8b94a3;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-alt: #0f1320;
  --border: rgba(15, 23, 42, 0.08);
  --border-soft: rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(30, 41, 90, 0.04), 0 8px 24px -8px rgba(30, 41, 90, 0.10);
  --shadow-md: 0 4px 12px -4px rgba(30, 41, 90, 0.08), 0 18px 40px -12px rgba(30, 41, 90, 0.16);
  --shadow-lg: 0 12px 28px -8px rgba(30, 41, 90, 0.12), 0 40px 80px -24px rgba(30, 41, 90, 0.22);
  --ring-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

img { max-width: 100%; }

.text-rainbow {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent { color: var(--accent); }

/* Card pulita (sostituisce il vecchio glassmorphism) */
.glass-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #c8cdd6; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #aab1bd; }

button, a { transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease; }

/* ── Navbar ── */
#tc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background .4s, box-shadow .4s, border-color .4s;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
#tc-navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
#tc-navbar .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#tc-navbar .logo { display: inline-flex; align-items: center; text-decoration: none; }
#tc-navbar .logo img { height: 42px; width: auto; display: block; }
#tc-navbar nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
#tc-navbar nav a:hover { color: var(--ink); }
#tc-navbar .nav-links { display: flex; gap: 2rem; }
#tc-navbar .btn-preventivo {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
}
#tc-navbar .btn-preventivo:hover { background: var(--accent-dark); transform: translateY(-1px); }
#tc-navbar .btn-preventivo:active { transform: scale(0.98); }
#tc-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--ink); }

#tc-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  padding-top: 72px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  flex-direction: column;
}
#tc-mobile-menu.open { display: flex; }
#tc-mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 2rem; }
#tc-mobile-menu nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-soft);
}
#tc-mobile-menu .btn-mobile {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Hero (split chiaro) ── */
#tc-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.75rem; padding: 0.5rem 0.95rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.95rem 1.6rem; border-radius: 9999px;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 600;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.28);
  text-decoration: none; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem; border-radius: 9999px;
  font-size: 1rem; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(0.98); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-item svg { color: #22c55e; flex-shrink: 0; }
.trust-item span { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; height: 540px; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 24px; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.hero-chip {
  position: absolute; left: -18px; bottom: 28px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); border-radius: 14px;
  padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.7rem;
}
.hero-chip .hc-dot { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.hero-chip .hc-num { font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1; }
.hero-chip .hc-label { font-size: 0.75rem; color: var(--ink-soft); }

/* ── Section shared ── */
.tc-section { position: relative; padding: 6rem 0; }
.tc-section.alt { background: var(--bg-soft); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.08; margin-bottom: 1rem; color: var(--ink);
}
.section-sub {
  font-size: 1.1rem; color: var(--ink-soft);
  max-width: 38rem; line-height: 1.65;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem; margin-top: 3.5rem;
}
.service-card {
  position: relative; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.3; }
.service-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }

/* Doppio target */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.audience-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.audience-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.audience-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 0.6rem; }
.audience-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; }

/* ── Before/After ── */
.beforeafter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.ba-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s; }
.ba-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ba-shot { position: relative; }
.ba-shot img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ba-label {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.7rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.ba-label.before { background: rgba(15,23,42,0.72); color: #fff; }
.ba-label.after { background: #22c55e; color: #fff; }
.ba-caption { padding: 1.1rem 1.25rem; }
.ba-caption .ba-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.ba-caption p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Why Us ── */
.whyus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 3.5rem; }
.whyus-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); }
.whyus-number { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--accent); letter-spacing: -0.01em; }
.whyus-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.whyus-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Process ── */
.process-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.process-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.step-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.step-body p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.process-media img {
  width: 100%; height: 100%; max-height: 600px; object-fit: cover;
  border-radius: 24px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-md);
}

/* ── Final CTA ── */
#tc-finalcta { position: relative; padding: 5.5rem 0; text-align: center; overflow: hidden; background: var(--bg-alt); }
#tc-finalcta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 50% -20%, rgba(67,97,238,0.35), transparent 60%);
}
.finalcta-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.finalcta-inner .section-label { color: #8aa2ff; }
.finalcta-inner h2 { font-size: clamp(2rem,4.5vw,3rem); font-weight: 800; margin-bottom: 1rem; color: #fff; letter-spacing: -0.02em; }
.finalcta-inner p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2.25rem; }
.finalcta-btns { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; }
#tc-finalcta .btn-primary { background: #fff; color: var(--bg-alt); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
#tc-finalcta .btn-primary:hover { background: #eef1f6; color: var(--bg-alt); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.95rem 1.6rem; border-radius: 9999px;
  background: #25d366; color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none;
}
.btn-wa:hover { background: #20bd5a; transform: translateY(-2px); color: #fff; }
.btn-wa:active { transform: scale(0.98); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem,3.5vw,2.5rem); font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.contact-info p { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 2.25rem; }
.info-blocks { display: flex; flex-direction: column; gap: 0.875rem; }
.info-block {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; text-decoration: none; box-shadow: var(--shadow-sm);
}
a.info-block:hover { border-color: var(--accent); transform: translateY(-1px); }
.info-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.info-block-label { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 2px; }
.info-block-val { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow-md); }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border-radius: 10px; padding: 0.8rem 1rem;
  font-size: 0.95rem; font-weight: 500;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group select option { background: #fff; color: var(--ink); }
.form-group textarea { resize: none; }
.btn-submit {
  width: 100%; padding: 1rem; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  box-shadow: 0 8px 22px rgba(29,78,216,0.25); margin-top: 0.25rem;
}
.btn-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-submit:active { transform: scale(0.99); }
.form-note { text-align: center; font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.75rem; }
.form-success {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 400px; gap: 1.25rem; box-shadow: var(--shadow-md);
}
.form-success svg { color: #22c55e; }
.form-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.form-success p { font-size: 0.95rem; color: var(--ink-soft); max-width: 18rem; }
.form-success button { background: none; border: none; font-size: 0.875rem; color: var(--accent); cursor: pointer; text-decoration: underline; }

/* ── Footer ── */
#tc-footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand-logo { margin-bottom: 1rem; }
.footer-brand-logo img { height: 50px; width: auto; }
.footer-brand-desc { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; max-width: 20rem; margin-bottom: 1.25rem; }
.footer-tagline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 9999px;
  padding: 0.5rem 1rem; font-size: 0.75rem; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.footer-col h4 { font-size: 0.75rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-contact li a { color: var(--ink-soft); text-decoration: none; }
.footer-contact li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8125rem; color: var(--ink-faint); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8125rem; color: var(--ink-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ── WhatsApp FAB ── */
#tc-wa-btn {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: auto; z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45); text-decoration: none;
}
#tc-wa-btn:hover { transform: scale(1.08); background: #20bd5a; }

/* ── AOS: leggero ── */
[data-aos] { transition-duration: 0.55s !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner, .section-inner, #tc-navbar .nav-inner, .footer-inner { padding-left: 1.75rem; padding-right: 1.75rem; }
}
@media (max-width: 900px) {
  #tc-hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7rem; padding-bottom: 3.5rem; }
  .hero-figure img { height: 380px; }
  .hero-copy { max-width: 40rem; }
  .process-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-media { order: -1; }
  .process-media img { max-height: 300px; }
}
@media (max-width: 768px) {
  #tc-navbar { height: 64px; }
  #tc-navbar .nav-links, #tc-navbar .btn-preventivo { display: none; }
  #tc-hamburger { display: block; }
  #tc-mobile-menu { padding-top: 64px; }
  .tc-section { padding: 4.5rem 0; }
  #tc-finalcta { padding: 4.25rem 0; }
  .services-grid, .whyus-grid { margin-top: 2.5rem; }
  .beforeafter-grid { margin-top: 2.5rem; gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 0 1.5rem; }
  .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: 6rem; }
  .footer-inner { padding: 3rem 1.5rem; }
  .contact-form-wrap { padding: 1.75rem; }
  .ba-shot img { height: 200px; }
}
@media (max-width: 560px) {
  .hero-h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-sub { font-size: 1.05rem; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { justify-content: center; }
  .hero-trust { flex-direction: column; gap: 0.6rem; }
  .finalcta-btns { flex-direction: column; align-items: stretch; }
  .finalcta-btns .btn-primary, .finalcta-btns .btn-wa { justify-content: center; }
  .hero-figure img { height: 300px; }
  .hero-chip { left: 50%; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .ba-pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .ba-pair { grid-template-columns: 1fr; }
  .hero-figure img { height: 260px; }
}

/* ════════════════════════════════════════════
   POLISH (emil-design-eng): logo, icone, social,
   sezione "perché", easing forti e reveal
   ════════════════════════════════════════════ */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Logo tipografico con pennellata CSS (niente immagine) */
#tc-navbar .logo { gap: 0.55rem; }
.logo-brush {
  position: relative; flex-shrink: 0;
  width: 40px; height: 30px; border-radius: 16px 16px 14px 6px;
  background: var(--rainbow);
  transform: skewX(-10deg) rotate(-3deg);
  box-shadow: 0 3px 10px rgba(15,23,42,0.20);
  display: flex; align-items: center; justify-content: center;
}
.logo-brush svg {
  width: 18px; height: 18px;
  transform: skewX(10deg) rotate(3deg);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
.footer-brand-logo .logo-brush { width: 46px; height: 34px; }
.footer-brand-logo .logo-brush svg { width: 21px; height: 21px; }
.logo-word {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; white-space: nowrap;
}
.logo-word strong { font-weight: 800; color: var(--ink); }
.lw-color {
  font-weight: 800;
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.footer-brand-logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-brand-logo .logo-word { font-size: 1.4rem; }

/* Icone servizi: glifo bianco su tile sfumato */
.service-icon {
  width: 54px; height: 54px; border-radius: 15px;
  transition: transform .35s var(--ease-out);
}
.service-card:hover .service-icon { transform: translateY(-2px) scale(1.05); }
.audience-icon { width: 56px; height: 56px; border-radius: 16px; transition: transform .35s var(--ease-out); }
.audience-card:hover .audience-icon { transform: translateY(-2px) scale(1.05); }

/* Hover card con easing forte */
.service-card, .audience-card, .ba-item, .whyus-card, .info-block {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s ease;
}
.audience-card:hover, .whyus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Sezione "Perché sceglierci" ridisegnata */
.whyus-card { display: flex; flex-direction: column; }
.whyus-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
  transition: transform .35s var(--ease-out);
}
.whyus-card:hover .whyus-icon { transform: translateY(-2px) scale(1.06); }

/* Press feedback (emil): scala su :active */
.btn-primary:active, .btn-ghost:active, .btn-wa:active,
.btn-submit:active, #tc-navbar .btn-preventivo:active,
.social-row a:active, a.info-block:active { transform: scale(0.97); }

/* Social */
.social-label { font-size: 0.75rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 2rem 0 0.75rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), color .25s ease, border-color .25s ease, background .25s ease;
}
.social-row a:hover { transform: translateY(-3px); border-color: var(--ink-faint); box-shadow: var(--shadow-md); }
.footer-social { margin-top: 1.25rem; }

/* Reveal allo scroll più morbido (override AOS easing) */
[data-aos] { transition-timing-function: var(--ease-out) !important; }

@media (hover: none) {
  .service-card:hover, .audience-card:hover, .ba-item:hover, .whyus-card:hover { transform: none; }
}

/* ════════════════════════════════════════════
   HIGH-END POLISH (high-end-visual-design)
   tipografia, ombre soffuse, respiro, squircle
   ════════════════════════════════════════════ */

/* Tipografia più decisa */
.hero-h1 { font-weight: 800; letter-spacing: -0.035em; }
.section-title { font-weight: 800; letter-spacing: -0.03em; }
.hero-sub, .section-sub { letter-spacing: -0.006em; }

/* Eyebrow come badge pill */
.section-label, .finalcta-inner .section-label {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.85rem; border-radius: 9999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.finalcta-inner .section-label { background: rgba(138,162,255,0.14); color: #aebdff; }

/* Più respiro tra le sezioni */
.tc-section { padding: 7.5rem 0; }
#tc-finalcta { padding: 7rem 0; }

/* Card: squircle + highlight interno (double-bezel soft) */
.service-card, .audience-card, .ba-item, .whyus-card,
.contact-form-wrap, .form-success, .info-block {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--ring-inset);
}
.service-card:hover, .audience-card:hover, .whyus-card:hover, .ba-item:hover {
  box-shadow: var(--shadow-md), var(--ring-inset);
}
.contact-form-wrap { border-radius: 24px; }
.hero-figure img { border-radius: 26px; }
.process-media img { border-radius: 26px; }

/* CTA: icona "button-in-button" */
.btn-primary .btn-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 9999px;
  background: rgba(255,255,255,0.18); margin-left: 0.15rem;
  transition: transform .35s var(--ease-out), background .25s ease;
}
#tc-finalcta .btn-primary .btn-ic { background: rgba(15,19,32,0.08); }
.btn-primary:hover .btn-ic { transform: translate(2px,-1px) scale(1.05); }

/* Navbar: leggermente più alta per respiro */
#tc-navbar { height: 76px; }

/* Honeypot anti-spam: fuori dallo schermo, non focalizzabile */
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consenso privacy */
.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0.25rem 0 1rem; cursor: pointer;
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.form-consent a { color: var(--accent); text-decoration: underline; }
.form-consent a:hover { color: var(--accent-dark); }

/* Pagine statiche (Privacy Policy, ecc.) */
.tc-page { padding: 9rem 0 5rem; min-height: 70vh; }
.tc-page .section-inner { max-width: 820px; }
.tc-page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 2rem; color: var(--ink); }
.tc-page-content { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.tc-page-content h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 2.5rem 0 1rem; }
.tc-page-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 2rem 0 0.75rem; }
.tc-page-content p { margin-bottom: 1.1rem; }
.tc-page-content ul, .tc-page-content ol { margin: 0 0 1.1rem 1.4rem; }
.tc-page-content li { margin-bottom: 0.5rem; }
.tc-page-content a { color: var(--accent); text-decoration: underline; }
.tc-page-content a:hover { color: var(--accent-dark); }
.tc-page-content strong { color: var(--ink); }
@media (max-width: 768px) { .tc-page { padding: 7rem 0 3.5rem; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-aos] { transition-duration: 0.01s !important; }
  .service-card:hover, .ba-item:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}
