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

:root {
  --ink:        #000000;
  --white:      #ffffff;
  --yellow:     #FDD34C;
  --pink:       #CCCCCC;
  --gray:       #555555;
  --mono:       'JetBrains Mono', monospace;
  --serif:      'Montserrat', sans-serif;
  --sans:       'Lato', sans-serif;
  --gutter:     24px;
  --max:        1280px;
  --shadow:     5px 5px 0 var(--ink);
  --border:     2px solid var(--ink);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.hCSyEP {
  display: none !important;
}

.cky-btn-revisit-wrapper {
  background: #555555 !important;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ─── NAV ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

nav .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-asterisk {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-role {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  max-height: 20px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-role.hidden {
  max-height: 0;
  opacity: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 10px;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--yellow);
  border-color: var(--ink);
}

/* ─── HAMBURGER ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── HERO ─────────────────────────────────────── */
#hero {
  padding-top: 152px;
  padding-bottom: 96px;
  background: var(--yellow);
  border-bottom: var(--border);
}

.hero-left {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  grid-column: 8 / 13;
  display: flex;
  align-items: center;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  background: #fb4b44;
  color: var(--white);
  padding: 0 6px;
  display: inline;
}

.hero-sub {
  font-size: 18px;
  color: #555555;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-dev {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
  max-width: 520px;
  border-left: 3px solid var(--gray);
  padding-left: 14px;
}

/* ─── TERMINAL ─────────────────────────────────── */
.terminal {
  width: 100%;
  background: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 24px 24px 28px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #555555;
}
.terminal-dot:first-child  { background: #555555; }
.terminal-dot:nth-child(2) { background: #FDD34C; }
.terminal-dot:nth-child(3) { background: #CCCCCC; }

.terminal-body {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: #CCCCCC;
  min-height: 180px;
}

.t-line   { display: block; white-space: pre; }
.t-prompt { color: var(--yellow); }
.t-key    { color: #CCCCCC; }
.t-val    { color: #ffffff; }
.t-arrow  { color: var(--yellow); }
.t-status { color: var(--yellow); }

.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--yellow);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── CHI SONO ─────────────────────────────────── */
#chi-sono {
  background: var(--pink);
  border-bottom: var(--border);
  padding: 96px 0;
}

.chi-left {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chi-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.chi-heading em {
  font-style: normal;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  display: inline;
}

.chi-body {
  font-size: 17px;
  color: #555555;
  line-height: 1.8;
}

.chi-quote {
  grid-column: 8 / 13;
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  letter-spacing: -0.02em;
  font-style: normal;
  display: flex;
  align-items: center;
}

@media (max-width: 960px) {
  .chi-left  { grid-column: 1 / -1; }
  .chi-quote { grid-column: 1 / -1; }
}

/* ─── SERVICES ─────────────────────────────────── */
#servizi {
  background: var(--white);
  border-bottom: var(--border);
  padding: 96px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  margin-bottom: 48px;
}

.service-card {
  grid-column: span 4;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px 36px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.service-card:nth-child(1) { background: var(--white); }
.service-card:nth-child(2) { background: var(--pink); }
.service-card:nth-child(3) { background: var(--yellow); }
.service-card:nth-child(4) { background: var(--yellow); grid-column: span 6; }
.service-card:nth-child(5) { background: var(--white); grid-column: span 6; }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 16px;
  opacity: 0.5;
}

.service-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-body {
  font-size: 17px;
  color: #555555;
  line-height: 1.75;
}

/* ─── INDEXING API ─────────────────────────────── */
#indexing-api {
  background: var(--pink);
  border-bottom: var(--border);
  padding: 96px 0;
}

#indexing-api .section-label {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.tool-content {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.tool-heading em {
  font-style: normal;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  display: inline;
}

.tool-desc {
  font-size: 17px;
  color: #000000;
  line-height: 1.8;
  max-width: 560px;
}

.tool-stat {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-left: var(--border);
  padding-left: 48px;
}

.tool-stat-value {
  font-family: var(--mono);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}

.tool-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.6;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .tool-content { grid-column: 1 / -1; }
  .tool-stat {
    grid-column: 1 / -1;
    border-left: none;
    border-top: var(--border);
    padding-left: 0;
    padding-top: 40px;
  }
}

/* ─── RESULTS ──────────────────────────────────── */
#risultati {
  background: var(--yellow);
  border-bottom: var(--border);
  padding: 96px 0;
}

#risultati .section-label {
  background: var(--gray);
  color: var(--white);
  border-color: var(--gray);
}

#risultati h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  grid-column: 1 / 8;
  letter-spacing: -0.03em;
}

.results-intro {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  grid-column: 1 / 8;
  margin-bottom: 56px;
}

/* ─── CASE CARDS ────────────────────────────────── */
.case-card {
  grid-column: span 4;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.case-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.4;
}

.case-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 3px 8px;
}

.case-sector {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.case-position {
  border-top: 1.5px solid rgba(0,0,0,0.15);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-pos-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555555;
}

.case-pos-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 400;
  color: rgba(0,0,0,0.25);
  line-height: 1;
}

.case-arrow {
  font-size: 24px;
  color: var(--yellow);
}

.case-pos-to {
  color: var(--ink);
  font-weight: 500;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1.5px solid rgba(0,0,0,0.15);
  padding-top: 20px;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-metric-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.case-metric-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555555;
}

/* ─── BLOG ─────────────────────────────────────── */
#blog {
  background: #000000;
  border-bottom: var(--border);
  padding: 96px 0;
}

#blog .section-label {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

#blog h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  grid-column: 1 / 8;
  letter-spacing: -0.03em;
}

.blog-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  grid-column: 1 / 8;
  margin-bottom: 56px;
}

.blog-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-bottom: 48px;
}

.blog-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.blog-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s;
}

.blog-card-link:hover {
  color: var(--gray);
  border-color: var(--gray);
}

.blog-cta-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-blog {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-blog:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.blog-cta-note {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ─── FAQ ──────────────────────────────────────── */
#faq {
  background: var(--white);
  border-bottom: var(--border);
  padding: 96px 0;
}

#faq .section-label {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

#faq h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 56px;
  grid-column: 1 / 7;
  letter-spacing: -0.03em;
}

.faq-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 2px solid var(--ink);
}

.faq-item:last-child {
  border-bottom: 2px solid var(--ink);
}

.faq-item summary {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-marker {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item[open] .faq-marker {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--gray);
}

.faq-body {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  padding: 0 0 28px 0;
  max-width: 760px;
}

/* ─── CONTACT ──────────────────────────────────── */
#contatti {
  background: var(--pink);
  border-bottom: var(--border);
  padding: 96px 0;
}

#contatti .section-label {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.contact-left {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 8px;
}

.contact-right {
  grid-column: 5 / 13;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}

#contatti h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
}

.contact-desc {
  font-size: 17px;
  color: #555555;
  line-height: 1.7;
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-social a:hover {
  color: var(--yellow);
}

/* ─── CONTACT FORM ───────────────────────────── */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 18px 0 8px;
}

.form-section-label:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-field {
  position: relative;
  margin-bottom: 10px;
}

.form-field::after {
  content: '*';
  position: absolute;
  top: 9px;
  right: 10px;
  color: #c00;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  line-height: 1;
}

.form-row .form-field {
  margin-bottom: 0;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="url"],
#contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: var(--border);
  background: #fafafa;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s, background 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #999;
}

.form-consent-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 16px 0 8px;
}

.form-consent-text a {
  color: var(--ink);
  text-decoration: underline;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: var(--border);
  background: #fff;
  transition: background 0.15s;
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox-box {
  background: var(--ink);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.form-checkbox input[type="checkbox"]:focus-visible + .form-checkbox-box {
  box-shadow: 0 0 0 3px var(--yellow);
}

.form-required {
  color: #c00;
}

.form-feedback {
  font-size: 14px;
  padding: 10px 0;
  min-height: 20px;
}

.form-feedback.success { color: #1a7a1a; font-weight: 600; }
.form-feedback.error   { color: #c00;    font-weight: 600; }

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.form-submit-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── SCROLL TO TOP ──────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, color 0.2s, background 0.2s;
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  background: var(--yellow);
  color: var(--ink);
}

.tally-powered { display: none !important; }

.cohATV { display: none !important; }
.ceyZbH { display: none !important; }

/* ─── NEWSLETTER ────────────────────────────────── */
#newsletter {
  background: var(--yellow);
  border-bottom: var(--border);
  padding: 96px 0;
}

#newsletter .section-label {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.newsletter-content {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.newsletter-desc {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.75;
}

.newsletter-embed {
  grid-column: 7 / 13;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-embed iframe {
  max-width: 100%;
  box-shadow: var(--shadow);
  border: var(--border) !important;
}

@media (max-width: 960px) {
  .newsletter-content {
    grid-column: 1 / -1;
  }
  .newsletter-embed {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 28px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* ─── POLICY PAGES ──────────────────────────────── */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 0 96px;
  font-family: var(--sans);
  color: var(--ink);
}

.policy-content h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.policy-content .policy-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.policy-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

.policy-content h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--ink);
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.policy-content ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 4px;
}

.policy-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content a:hover {
  color: var(--yellow);
}

/* ─── TICKER ────────────────────────────────────── */
#ticker-hero {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--white);
  border-bottom: var(--border);
}

.ticker-stage {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%) rotate(-3deg);
}

.ticker-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.ticker-inner {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.ticker-inner span {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
}

.tw-ink    { color: var(--ink); }
.tw-yellow { color: var(--yellow); }
.tw-pink   { color: var(--pink); }

.ticker-sep {
  color: var(--ink);
  opacity: 0.25;
  margin: 0 0.25em;
  font-weight: 400;
  text-shadow: none;
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 960px) {
  .hero-left, .hero-right,
  .contact-left, .contact-right { grid-column: 1 / -1; }
  .service-card { grid-column: span 6; }
  .case-card { grid-column: span 6; }
}

@media (max-width: 760px) {
  .blog-cards { grid-template-columns: 1fr; }
  .blog-cta-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  #hero { padding-top: 100px; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: 1 / -1; }
  .case-card { grid-column: 1 / -1; }
  #risultati h2,
  .results-intro { grid-column: 1 / -1; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--white);
    border-bottom: var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px var(--gutter);
    border: none;
  }
}
