/* ============================================================
   TaTech Design System — v0.2  (pulito & professionale)
   Homepage ricostruita: markup tahp-* (vedi tatech-design-system.php)
   Scoped sotto body.ta-ds.
   ============================================================ */

body.ta-ds {
  --red:      #d01124;
  --red-dark: #a50e1d;
  --red-tint: #fdecee;
  --ink:      #0f172a;
  --body:     #475569;
  --muted:    #64748b;
  --bg:       #ffffff;
  --bg-alt:   #f7f8fa;
  --dark:     #0f172a;
  --line:     #e7eaf0;
  --r:        16px;
  --r-sm:     11px;
  --sh-sm:    0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --sh:       0 6px 18px rgba(15,23,42,.07);
  --sh-lg:    0 22px 48px -18px rgba(15,23,42,.28);
  --maxw:     1140px;
  --sec-y:    clamp(64px, 8vw, 104px);
  --font:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* La home in modalita' ds: il full-bleed lo gestiamo col trucco 100vw sulle sezioni
   (NON tocchiamo .ct-container: e' condiviso con header/footer). */
body.ta-ds.home { overflow-x: hidden; }
body.ta-ds.home .entry-content > .tahp { margin: 0; }

.tahp, .tahp * { box-sizing: border-box; }
.tahp {
  font-family: var(--font);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
.tahp h1, .tahp h2, .tahp h3 { font-family: var(--font); color: var(--ink); letter-spacing: -.022em; line-height: 1.1; margin: 0; }
.tahp p { margin: 0; line-height: 1.6; }
.tahp a { text-decoration: none; }

/* contenitore interno */
.tahp-inner { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* sezioni full-bleed (indipendenti dal tema) */
.tahp-services, .tahp-shop, .tahp-cta {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding-top: var(--sec-y); padding-bottom: var(--sec-y);
}
.tahp-services { background: var(--bg); }
.tahp-shop     { background: var(--bg-alt); }

/* eyebrow */
.tahp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.tahp-eyebrow--light { color: #ff8a96; }

/* Hero: occhiello come pill con pallino (frontend-design: piccola gerarchia visiva) */
.tahp-hero .tahp-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px); color: #ffd4d9;
}
.tahp-hero .tahp-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a6a; box-shadow: 0 0 0 3px rgba(255,90,106,.25); }

/* parola del titolo (split JS) — solo per il reveal a stagger */
.tahp-word { display: inline-block; will-change: transform; }

/* testata sezione */
.tahp-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.tahp-h2   { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.tahp-lead { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Bottoni ---------- */
.tahp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  border: 1.5px solid transparent; cursor: pointer;
}
.tahp-btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 18px -6px rgba(208,17,36,.5); }
.tahp-btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); color: #fff; }
.tahp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.tahp-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.tahp-btn--soft { background: #fff; color: var(--ink); border-color: var(--line); }
.tahp-btn--soft:hover { border-color: var(--red); color: var(--red); }
.tahp-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tahp-actions:not(.tahp-actions--left) { justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.tahp-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  min-height: clamp(600px, 90vh, 900px);
  background: #030303;
  padding-top: clamp(96px, 12vw, 150px); padding-bottom: clamp(96px, 12vw, 150px);
}

/* alone diffuso nei toni del brand */
.tahp-hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(208,17,36,.07) 0%, transparent 50%, rgba(255,90,106,.05) 100%);
  filter: blur(48px);
}

/* ---- forme geometriche fluttuanti ---- */
.tahp-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tahp-shape  { position: absolute; }
.tahp-shape__inner { position: relative; display: block; animation: tahp-float 12s ease-in-out infinite; will-change: transform; }
.tahp-shape__visual {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px 0 rgba(255,255,255,.08);
}
.tahp-shape__visual::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.20), transparent 70%);
}
@keyframes tahp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@media (prefers-reduced-motion: reduce) { .tahp-shape__inner { animation: none; } }

/* dimensioni + colore (gradiente brand) per forma */
.tahp-shape--1 .tahp-shape__inner { width: 600px; height: 140px; }
.tahp-shape--1 .tahp-shape__visual { background: linear-gradient(90deg, rgba(208,17,36,.18), transparent); }
.tahp-shape--2 .tahp-shape__inner { width: 500px; height: 120px; animation-delay: -3s; }
.tahp-shape--2 .tahp-shape__visual { background: linear-gradient(90deg, rgba(255,90,106,.16), transparent); }
.tahp-shape--3 .tahp-shape__inner { width: 300px; height: 80px;  animation-delay: -6s; }
.tahp-shape--3 .tahp-shape__visual { background: linear-gradient(90deg, rgba(165,14,29,.18), transparent); }
.tahp-shape--4 .tahp-shape__inner { width: 200px; height: 60px;  animation-delay: -2s; }
.tahp-shape--4 .tahp-shape__visual { background: linear-gradient(90deg, rgba(245,158,11,.14), transparent); }
.tahp-shape--5 .tahp-shape__inner { width: 150px; height: 40px;  animation-delay: -8s; }
.tahp-shape--5 .tahp-shape__visual { background: linear-gradient(90deg, rgba(255,255,255,.12), transparent); }

/* posizioni (base mobile) */
.tahp-shape--1 { left: -10%; top: 15%; }
.tahp-shape--2 { right: -5%; top: 70%; }
.tahp-shape--3 { left: 5%;   bottom: 5%; }
.tahp-shape--4 { right: 15%; top: 10%; }
.tahp-shape--5 { left: 20%;  top: 5%; }
@media (min-width: 768px) {
  .tahp-shape--1 { left: -5%; top: 20%; }
  .tahp-shape--2 { right: 0%; top: 75%; }
  .tahp-shape--3 { left: 10%; bottom: 10%; }
  .tahp-shape--4 { right: 20%; top: 15%; }
  .tahp-shape--5 { left: 25%; top: 10%; }
}

/* velo scuro alto/basso per profondità */
.tahp-hero__fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, #030303 0%, transparent 35%, transparent 65%, rgba(3,3,3,.8) 100%);
}

.tahp-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* scroll cue */
.tahp-hero__cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; display: flex; justify-content: center; }
.tahp-hero__cue span { width: 4px; height: 9px; margin-top: 7px; border-radius: 3px; background: #fff; animation: tahp-cue 1.6s ease-in-out infinite; }
@keyframes tahp-cue { 0%,100% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 70% { opacity: 0; transform: translateY(11px); } }
@media (prefers-reduced-motion: reduce) { .tahp-hero__cue span { animation: none; opacity: .8; } }
.tahp-hero .tahp-hero__title { color: #fff; font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; max-width: 820px; }
.tahp-hero__title .tahp-hero__accent {
  display: block;
  background: linear-gradient(90deg, #ff8a96 0%, #ffffff 55%, #ff5a6a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tahp-hero__sub { color: #cbd5e1; font-size: clamp(16px, 1.9vw, 21px); margin-top: 20px; max-width: 600px; }
.tahp-hero .tahp-actions { margin-top: 34px; }
.tahp-hero .tahp-actions { justify-content: flex-start; }

.tahp-stats { list-style: none; margin: 52px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 48px; }
.tahp-stats li { display: flex; flex-direction: column; padding-right: 48px; border-right: 1px solid rgba(255,255,255,.16); }
.tahp-stats li:last-child { border-right: 0; padding-right: 0; }
.tahp-stats strong { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.tahp-stats span { color: #94a3b8; font-size: 14px; margin-top: 4px; }

/* ============================================================
   SERVIZI
   ============================================================ */
.tahp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tahp-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm); padding: 30px 28px; color: var(--body);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.tahp-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.tahp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: #f1cdd1; }
.tahp-card:hover::before { transform: scaleX(1); }
.tahp-card:hover .tahp-card__icon { background: var(--red); }
.tahp-card__icon { transition: background-color .22s ease; }
.tahp-card__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--red-tint); border-radius: 13px; font-size: 27px; margin-bottom: 18px;
}
.tahp-card__title { font-size: 19px; font-weight: 700; }
.tahp-card__text { margin-top: 9px; color: var(--muted); font-size: 15px; flex: 1; }
.tahp-card__more { margin-top: 16px; color: var(--red); font-weight: 600; font-size: 14px; }

/* ============================================================
   IL NEGOZIO
   ============================================================ */
.tahp-shop__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: stretch; }
.tahp-shop__photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); border: 1px solid var(--line); }
.tahp-shop__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.tahp-shop__info { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 34px; align-self: center; }
.tahp-shop__addr { font-size: 20px; color: var(--ink); line-height: 1.4; }
.tahp-shop__note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.tahp-shop__hours { list-style: none; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tahp-shop__hours li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.tahp-shop__hours span { color: var(--muted); }
.tahp-shop__hours b { color: var(--ink); }
.tahp-map { margin-top: 36px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.tahp-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============================================================
   CTA
   ============================================================ */
.tahp-cta { background: var(--dark); text-align: center; }
.tahp-cta .tahp-cta__title { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.tahp-cta__sub { color: #cbd5e1; margin-top: 14px; font-size: 18px; }
.tahp-cta .tahp-actions { margin-top: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .tahp-grid { grid-template-columns: repeat(2, 1fr); }
  .tahp-shop__grid { grid-template-columns: 1fr; gap: 28px; }
  .tahp-shop__photo img { min-height: 260px; }
}
@media (max-width: 600px) {
  .tahp-grid { grid-template-columns: 1fr; }
  .tahp-hero .tahp-actions, .tahp-actions:not(.tahp-actions--left) { justify-content: stretch; }
  .tahp-btn { flex: 1; justify-content: center; }
  .tahp-stats { gap: 18px 28px; }
  .tahp-stats li { padding-right: 28px; }
}
