/*
Theme Name:   Astra Child - Inspire Agency
Template:     astra
Version:      1.0.0
Description:  Inspire Agency custom child theme
*/

/* ──────────────── CSS Variables — Inspire Brand ──────────────── */
:root {
  --tp-red:      #6B0F24;
  --tp-red-dim:  rgba(107, 15, 36, 0.08);
  --tp-red-glow: rgba(107, 15, 36, 0.28);
  --tp-bg:       #0E0809;
  --tp-bg2:      #160C0E;
  --tp-border:   #2D1619;
  --tp-text:     #F5F0E8;
  --tp-muted:    #8A6860;
  --tp-sub:      #B8A09A;

  /* Brand palette extras */
  --tp-ivory:    #F5F0E8;
  --tp-echo:     #E8D5C8;
  --tp-rustic:   #B8907C;
  --tp-umber:    #4A3728;
  --tp-merlot:   #6B0F24;
}

/* ──────────────── Global Reset & Body ──────────────── */
html,
body,
.site,
#page,
.ast-container {
  background-color: #080808 !important;
}

body {
  background-color: var(--tp-bg) !important;
  color: var(--tp-text);
  font-family: 'Raleway', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garant', Georgia, serif !important;
  letter-spacing: 0.01em;
}

.ast-page-title-area { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  color: var(--tp-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

a { text-decoration: none; }

/* ──────────────── Global Buttons ──────────────── */
.tp-btn-primary {
  display: inline-block;
  background: var(--tp-red);
  color: #fff;
  font-size: 10px;
  padding: 13px 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
}
.tp-btn-primary:hover { opacity: 0.88; color: #fff; }

.tp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tp-sub);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
}
.tp-btn-ghost:hover { color: var(--tp-text); }

.tp-arrow {
  color: var(--tp-red);
  font-size: 14px;
  display: inline-block;
  animation: tp-arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes tp-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* ──────────────── Navigation ──────────────── */
.tp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid var(--tp-border);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tp-logo {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-text);
}

.tp-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.tp-logo-dot {
  width: 6px; height: 6px;
  background: var(--tp-red);
  border-radius: 50%;
  animation: tp-pulse 2s ease-in-out infinite;
}

.tp-nav-links { display: flex; gap: 32px; }

.tp-nav-links a {
  color: var(--tp-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.tp-nav-links a:hover { color: var(--tp-text); }

.tp-nav-cta {
  background: var(--tp-red);
  color: #fff !important;
  font-size: 10px;
  padding: 9px 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.tp-nav-cta:hover { opacity: 0.88; }

/* ──────────────── Hero ──────────────── */
.tp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 48px 64px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tp-border);
}

.tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--tp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--tp-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, transparent 30%, black 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, transparent 30%, black 80%);
  pointer-events: none;
}

.tp-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 59, 0, 0.15) 0%, transparent 65%);
  animation: tp-drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.tp-hero-left { position: relative; z-index: 2; }

.tp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tp-border);
  color: var(--tp-sub);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 28px;
}

.tp-badge-dot {
  width: 4px; height: 4px;
  background: var(--tp-red);
  border-radius: 50%;
  animation: tp-blink 1.5s step-end infinite;
}

.tp-hero-h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.tp-hero-h1 span { display: block; color: var(--tp-text); }

.tp-outline {
  -webkit-text-stroke: 1px var(--tp-red);
  color: transparent;
  position: relative;
}
.tp-outline::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  color: var(--tp-red);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: tp-reveal 4s steps(20) infinite;
}

.tp-hero-sub {
  color: var(--tp-sub);
  font-size: 13px;
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 36px;
}

.tp-hero-ctas { display: flex; gap: 16px; align-items: center; }

.tp-hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}

.tp-stat {
  background: var(--tp-bg2);
  border: 1px solid var(--tp-border);
  padding: 20px;
  transition: border-color 0.3s;
}
.tp-stat:hover { border-color: var(--tp-red); }

.tp-stat-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--tp-red);
  line-height: 1;
}

.tp-stat-label {
  color: var(--tp-muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
}

.tp-service-strip {
  background: var(--tp-bg2);
  border: 1px solid var(--tp-border);
  padding: 14px 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-stag {
  color: var(--tp-sub);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-left: 1px solid var(--tp-red);
  padding-left: 8px;
}

/* ──────────────── Marquee ──────────────── */
.tp-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
  background: var(--tp-bg);
  padding: 12px 0;
}

.tp-marquee-track {
  display: flex;
  animation: tp-scroll 18s linear infinite;
  width: max-content;
}
.tp-marquee-track:hover { animation-play-state: paused; }

.tp-marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  white-space: nowrap;
}
.tp-marquee-item span {
  color: var(--tp-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.tp-marquee-item em { color: var(--tp-red); font-size: 8px; font-style: normal; }

/* ──────────────── Section Base ──────────────── */
.tp-section {
  padding: 72px 48px;
  border-bottom: 1px solid var(--tp-border);
}

.tp-section-label {
  color: var(--tp-rustic);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Raleway', sans-serif;
}

.tp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.tp-section-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  font-family: 'Cormorant Garant', Georgia, serif;
  font-style: italic;
}

.tp-section-count {
  font-size: 80px;
  font-weight: 300;
  color: var(--tp-border);
  line-height: 1;
  letter-spacing: 0.1em;
  user-select: none;
  font-family: 'Cormorant Garant', Georgia, serif;
}

/* ──────────────── Servizi ──────────────── */
.tp-servizi-list { display: flex; flex-direction: column; }

.tp-servizio {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--tp-border);
  cursor: pointer;
  transition: padding-left 0.3s ease;
}
.tp-servizio:hover { padding-left: 12px; }
.tp-servizio:hover .tp-servizio-num,
.tp-servizio:hover .tp-servizio-arrow { color: var(--tp-red); }
.tp-servizio:hover .tp-servizio-arrow { transform: translateX(4px); }

.tp-servizio-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-muted);
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

.tp-servizio-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.tp-servizio-content p { color: var(--tp-sub); font-size: 12px; line-height: 1.6; }

.tp-servizio-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.tp-tag {
  border: 1px solid var(--tp-border);
  color: var(--tp-muted);
  font-size: 8px;
  padding: 3px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.tp-servizio:hover .tp-tag { border-color: #2a2a2a; color: var(--tp-sub); }

.tp-servizio-arrow {
  color: var(--tp-muted);
  font-size: 18px;
  transition: color 0.3s, transform 0.3s;
}

/* ──────────────── Chi siamo ──────────────── */
.tp-chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.tp-chi-text h2 { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; margin-bottom: 24px; font-family: 'Cormorant Garant', serif; font-style: italic; }
.tp-chi-text h2 em { font-style: normal; color: var(--tp-merlot); }
.tp-chi-text p { color: var(--tp-sub); font-size: 13px; line-height: 1.9; margin-bottom: 14px; }

.tp-differentiators { margin-top: 32px; display: flex; flex-direction: column; }

.tp-diff-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--tp-border);
}
.tp-diff-num { color: var(--tp-red); font-size: 11px; font-weight: 700; min-width: 20px; margin-top: 2px; }
.tp-diff-text { color: var(--tp-sub); font-size: 12px; line-height: 1.6; }
.tp-diff-text strong { color: var(--tp-text); font-weight: 600; }

.tp-chi-visual { display: flex; flex-direction: column; gap: 2px; }

.tp-visual-block {
  background: var(--tp-bg2);
  border: 1px solid var(--tp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.tp-visual-block:hover { border-color: var(--tp-red); }
.tp-visual-block img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ──────────────── Numeri ──────────────── */
.tp-numeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.tp-numero {
  background: var(--tp-bg);
  border: 1px solid var(--tp-border);
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.tp-numero:hover { border-color: var(--tp-red); }
.tp-numero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--tp-red);
  width: 0;
  transition: width 0.4s ease;
}
.tp-numero:hover::after { width: 100%; }

.tp-numero-val {
  font-size: 48px;
  font-weight: 900;
  color: var(--tp-text);
  line-height: 1;
  letter-spacing: -0.05em;
}
.tp-numero-val sup { color: var(--tp-red); font-size: 24px; vertical-align: super; }

.tp-numero-label {
  color: var(--tp-sub);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.5;
}

/* ──────────────── Portfolio ──────────────── */
.tp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tp-p-item {
  background: var(--tp-bg2);
  border: 1px solid var(--tp-border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
}
.tp-p-item:nth-child(1) { grid-row: span 2; min-height: 0; }

.tp-p-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tp-p-item:hover img { transform: scale(1.05); }

.tp-p-item-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-border);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tp-p-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, transparent 100%);
}
.tp-p-cat { color: var(--tp-red); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; }
.tp-p-name { color: var(--tp-text); font-size: 12px; font-weight: 700; margin-top: 3px; }

/* ──────────────── Testimonianze ──────────────── */
.tp-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tp-testi {
  background: var(--tp-bg2);
  border: 1px solid var(--tp-border);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.tp-testi::before {
  content: '\201C';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 100px;
  font-weight: 900;
  color: var(--tp-border);
  line-height: 1;
  pointer-events: none;
}

.tp-testi-stars { color: var(--tp-red); font-size: 10px; letter-spacing: 0.2em; margin-bottom: 14px; }

.tp-testi p {
  color: var(--tp-sub);
  font-size: 12px;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.tp-testi-author { display: flex; align-items: center; gap: 12px; }

.tp-avatar {
  width: 32px; height: 32px;
  background: var(--tp-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--tp-muted);
  flex-shrink: 0;
}

.tp-author-info strong { display: block; color: var(--tp-text); font-size: 11px; }
.tp-author-info span { color: var(--tp-muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ──────────────── Contatti ──────────────── */
.tp-contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tp-contatti-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-red-dim);
  border: 1px solid rgba(255, 59, 0, 0.2);
  color: var(--tp-red);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 20px;
}

.tp-contatti-text h2 { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.tp-contatti-text h2 em { font-style: normal; color: var(--tp-red); }
.tp-contatti-text > p { color: var(--tp-sub); font-size: 13px; line-height: 1.8; margin-bottom: 32px; }

.tp-contact-links { display: flex; flex-direction: column; gap: 2px; }

.tp-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--tp-border);
  padding: 14px 18px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  color: var(--tp-sub);
}
.tp-contact-link:hover { border-color: var(--tp-red); background: var(--tp-red-dim); color: var(--tp-sub); }

.tp-link-icon { color: var(--tp-red); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; min-width: 52px; }
.tp-link-val { font-size: 12px; flex: 1; }
.tp-link-arrow { color: var(--tp-muted); margin-left: auto; transition: color 0.2s, transform 0.2s; }
.tp-contact-link:hover .tp-link-arrow { color: var(--tp-red); transform: translateX(3px); }

/* Contact Form 7 / WPForms overrides */
.tp-form-wrap .wpcf7-form,
.tp-form-wrap .wpforms-form { display: flex; flex-direction: column; gap: 2px; }

.tp-form-wrap input[type="text"],
.tp-form-wrap input[type="email"],
.tp-form-wrap textarea,
.tp-form-wrap select {
  width: 100%;
  background: var(--tp-bg2) !important;
  border: 1px solid var(--tp-border) !important;
  color: var(--tp-text) !important;
  padding: 12px 14px !important;
  font-size: 12px !important;
  font-family: inherit !important;
  outline: none !important;
  border-radius: 0 !important;
  transition: border-color 0.2s;
}
.tp-form-wrap input:focus,
.tp-form-wrap textarea:focus { border-color: var(--tp-red) !important; }
.tp-form-wrap textarea { min-height: 80px; resize: none; }

.tp-form-wrap input[type="submit"],
.tp-form-wrap .wpforms-submit {
  background: var(--tp-red) !important;
  color: #fff !important;
  font-size: 10px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  border-radius: 0 !important;
}

.tp-privacy-note { color: var(--tp-muted); font-size: 9px; letter-spacing: 0.05em; margin-top: 8px; line-height: 1.6; }

/* ──────────────── Footer ──────────────── */
.tp-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--tp-border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: var(--tp-bg2);
}

.tp-footer-logo { font-size: 12px; font-weight: 900; letter-spacing: 0.4em; text-transform: uppercase; color: var(--tp-text); }
.tp-footer-logo span { color: var(--tp-red); }

.tp-footer-links { display: flex; justify-content: center; gap: 24px; }
.tp-footer-links a { color: var(--tp-muted); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
.tp-footer-links a:hover { color: var(--tp-text); }

.tp-footer-copy { color: var(--tp-muted); font-size: 9px; letter-spacing: 0.05em; text-align: right; }

/* ──────────────── @keyframes ──────────────── */
@keyframes tp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--tp-red-glow); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}
@keyframes tp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes tp-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 30px) scale(1.1); }
}
@keyframes tp-reveal {
  0%        { clip-path: inset(0 100% 0 0); }
  50%, 100% { clip-path: inset(0 0% 0 0); }
}
@keyframes tp-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ──────────────── Responsive ──────────────── */
@media (max-width: 768px) {
  .tp-nav { padding: 14px 20px; }
  .tp-nav-links { display: none; }
  .tp-hero { grid-template-columns: 1fr; padding: 48px 20px; }
  .tp-hero-right { display: none; }
  .tp-section { padding: 48px 20px; }
  .tp-chi-siamo-grid,
  .tp-contatti-grid { grid-template-columns: 1fr; gap: 32px; }
  .tp-numeri-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-portfolio-grid { grid-template-columns: 1fr 1fr; }
  .tp-p-item:nth-child(1) { grid-row: auto; }
  .tp-testi-grid { grid-template-columns: 1fr; }
  .tp-footer { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .tp-footer-links { justify-content: center; }
  .tp-footer-copy { text-align: center; }
}
