/* ==========================================================================
   FabyooTech — styles.css
   Estratto da index.html. Condiviso da home e landing.
   ========================================================================== */

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

:root {
  --orange: #e76f34;
  --orange-dark: #c45a22;
  --petrol: #1a4d5c;
  --petrol-light: #235f72;
  --dark: #0A1628;
  --dark-mid: #162547;
  --dark-light: #1E3566;
  --white: #FFFFFF;
  --off-white: #F2F1EC;
  --gray: #333333;
  --gray-mid: #666666;
  --border: #e0e0d8;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --max-w: 1400px;
  --pad: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 111, 52, 0.18);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.nav-logo span {
  color: var(--orange);
}

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

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--orange-dark);
}

.nav-hide {
  color: rgba(10, 22, 40, 0.97) !important;
}

.nav-hide:hover {
  color: rgba(10, 22, 40, 0.97) !important;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO FULLSCREEN ── */
#hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(231, 111, 52, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: dotshift 28s linear infinite;
}

@keyframes dotshift {
  0% {
    background-position: 0 0
  }

  100% {
    background-position: 48px 48px
  }
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(10, 22, 40, 0.97) 0%, rgba(10, 22, 40, 0.8) 50%, rgba(10, 22, 40, 0.35) 100%);
}

/* Terminale decorativo */
.hero-terminal {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.08;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 2;
  color: var(--orange);
  white-space: pre;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--orange);
  font-weight: 300;
}

.hero-claim {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  line-height: 1.35;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 48px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-stats {
  display: flex;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 700px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 32px;
  flex: 1;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--orange);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin-top: 6px;
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  animation: bounce 2.5s ease-in-out infinite;
  text-decoration: none;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--orange), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(7px)
  }
}

/* ── ZONE STRIP ── */
.zone-strip {
  background: var(--petrol);
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.zone-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zone-label::after {
  content: '→';
  color: var(--orange);
}

.zones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.zone-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-left: 2px solid var(--orange);
  text-decoration: none;
  transition: background .2s, color .2s;
}

a.zone-pill:hover,
a.zone-pill:focus-visible {
  background: rgba(231, 111, 52, 0.15);
  color: var(--orange);
}

/* ── SECTIONS ── */
.section {
  padding: 96px var(--pad);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-dark {
  background: var(--dark);
  padding: 96px var(--pad);
}

.section-petrol {
  background: var(--petrol);
  padding: 96px var(--pad);
}

.section-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--gray);
}

h2.section-title em {
  font-style: italic;
  color: var(--orange);
  font-weight: 300;
}

.section-dark h2.section-title,
.section-petrol h2.section-title {
  color: #fff;
}

.section-intro {
  font-size: 17px;
  color: var(--gray-mid);
  max-width: 600px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 56px;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.5);
}

.section-petrol .section-intro {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark .section-tag {
  color: rgba(255, 255, 255, 0.45);
}

/* ── DIAGNOSI BADGE ── */
.diagnosi-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(231, 111, 52, 0.07);
  border: 1px solid rgba(231, 111, 52, 0.2);
  padding: 16px 24px;
  margin-bottom: 56px;
}

.diagnosi-badge-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--orange);
  white-space: nowrap;
}

.diagnosi-badge-text {
  font-size: 14px;
  color: var(--gray-mid);
  font-weight: 300;
  line-height: 1.6;
}

.diagnosi-badge-text strong {
  color: var(--gray);
  font-weight: 500;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.svc {
  background: var(--white);
  padding: 44px 40px;
  transition: background .2s;
}

.svc:hover {
  background: var(--off-white);
}

.svc-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 24px;
}

.svc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--gray);
}

.svc p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── PACKAGES ── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pkg {
  background: var(--dark-mid);
  padding: 48px 40px;
  position: relative;
  transition: background .2s;
}

.pkg:hover {
  background: var(--dark-light);
}

.pkg.featured {
  border-top: 3px solid var(--orange);
}

.pkg-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.pkg-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.pkg-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--orange);
  margin: 20px 0 4px;
}

.pkg-price-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  margin-bottom: 24px;
}

.pkg-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  font-weight: 300;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.pkg-features li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 300;
}

.pkg-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.pkg-cta {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.pkg-cta:hover,
.pkg.featured .pkg-cta {
  background: var(--orange);
  border-color: var(--orange);
}

.pkg-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 32px;
  line-height: 1.7;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  max-width: var(--max-w);
}

.pkg-note strong {
  color: rgba(255, 255, 255, 0.6);
}

/* ── OPEN SOURCE ── */
.oss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.oss-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.oss-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--orange);
  padding: 10px 18px;
  transition: background .2s;
}

.oss-tag:hover {
  background: rgba(255, 255, 255, 0.16);
}

.oss-saving {
  background: var(--orange);
  padding: 28px 36px;
  display: inline-block;
}

.oss-saving .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: #fff;
  display: block;
  line-height: 1;
}

.oss-saving .small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  display: block;
  margin-top: 6px;
  max-width: 280px;
  line-height: 1.5;
}

.oss-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.oss-item {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  padding: 28px 32px;
  transition: border-color .2s;
}

.oss-item:hover {
  border-left-color: var(--orange);
}

.oss-item-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 8px;
}

.oss-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.oss-item-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.65;
}

/* ── HOW ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.step {
  background: var(--white);
  padding: 48px 40px;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}

.step:hover {
  border-bottom-color: var(--orange);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--gray);
}

.step p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── CONTACT / FORM ── */
#contatti {
  background: var(--dark);
  color: #fff;
}

.contact-grid {
  max-width: var(--max-w);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
}

.contact-line {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-line:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-line-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.contact-line-value {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.contact-line-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(231, 111, 52, 0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e76f34' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--dark-mid);
  color: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.6;
}

.form-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 17px 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--orange-dark);
}

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

.form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.form-success {
  display: none;
  background: rgba(231, 111, 52, 0.12);
  border: 1px solid rgba(231, 111, 52, 0.3);
  color: #fff;
  font-size: 14px;
  padding: 16px 20px;
}

/* ── FOOTER ── */
footer {
  background: rgba(10, 22, 40, 0.97);
  /* background-color: #1a4d5c; */
  border-top: 1px solid rgba(231, 111, 52, 0.12);
  padding: 36px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
}

.footer-logo span {
  color: var(--orange);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-links-fabyoo a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color .2s;
}

.footer-links-fabyoo a:hover {
  color: var(--orange);
}

.footer-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
  font-weight: 300
}

/* ── TEMPLATE SHOWCASE ── */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tpl-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background .2s;
}

.tpl-card:hover {
  background: var(--off-white);
}

.tpl-preview {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-preview-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
  padding: 20px;
}

.tpl-preview-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 28px;
  opacity: 0.5;
}

.tpl-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(231, 111, 52, 0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-card:hover .tpl-preview-overlay {
  background: rgba(231, 111, 52, 0.85);
  text-decoration: none;
  outline: none;
  border: none;
}

.tpl-preview-btn {
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 24px;
  text-decoration: none;
}

.tpl-card:hover .tpl-preview-btn {
  opacity: 1;
  transform: none;
}

.tpl-body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tpl-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 12px;
}

.tpl-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.tpl-desc {
  font-size: 14px;
  color: var(--gray-mid);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.tpl-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tpl-features li {
  font-size: 13px;
  color: var(--gray-mid);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 300;
}

.tpl-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.tpl-pricing {
  background: var(--dark);
  margin-top: 24px;
}

.tpl-pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tpl-pricing-main {
  text-align: center;
}

.tpl-pricing-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--orange);
  line-height: 1;
}

.tpl-pricing-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.tpl-pricing-item {
  text-align: center;
}

.tpl-pricing-item-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #fff;
}

.tpl-pricing-item-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin-top: 4px;
  line-height: 1.5;
}

.tpl-note {
  font-size: 13px;
  color: var(--gray-mid);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 24px;
  max-width: var(--max-w);
}

.tpl-note strong {
  color: var(--gray);
  font-weight: 500;
}

/* ── SPORTELLO DIGITALE ── */
.sportello-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 48px;
}

.sportello-card {
  background: var(--dark-mid);
  padding: 40px 36px;
  transition: background .2s;
}

.sportello-card:hover {
  background: var(--dark-light);
}

.sportello-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.sportello-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.sportello-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.65;
}

.sportello-pricing {
  display: flex;
  gap: 32px;
  align-items: baseline;
  margin-top: 48px;
  flex-wrap: wrap;
}

.sportello-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sportello-price-box .price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
}

.sportello-price-box .price-old {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
}

.sportello-price-box .price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.sportello-zone {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.sportello-zone-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--orange);
  padding: 5px 14px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  border-top: 1px solid rgba(231, 111, 52, 0.2);
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.show {
  transform: none;
}

.cookie-banner-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.6;
  max-width: 720px;
}

.cookie-banner-text a {
  color: var(--orange);
  text-decoration: none;
}

.cookie-banner-text a:hover {
  color: #fff;
  text-decoration: none;
}

.cookie-banner-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

.cookie-btn-accept:hover {
  background: var(--orange-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .24s;
}

.reveal-delay-3 {
  transition-delay: .36s;
}

/* ── RECAPTCHA ── */

/* Riduce il badge alla sola icona sul lato sinistro */
.grecaptcha-badge {
  width: 70px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  left: 0 !important;
  right: auto !important;
  border-radius: 0 5px 5px 0 !important;
  visibility: hidden;
}

/* Fa riapparire il testo completo solo al passaggio del mouse */
.grecaptcha-badge:hover {
  width: 256px !important;
}

/* ── RESPONSIVE ── */
@media (max-height: 820px) {
  #hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 48px;
  }
}

@media (max-width: 1360px) {
  :root {
    --pad: 36px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid rgba(231, 111, 52, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 14px var(--pad);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .oss-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-terminal {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 20px;
  }

  .services-grid,
  .pkg-grid,
  .steps-grid,
  .tpl-grid,
  .sportello-grid {
    grid-template-columns: 1fr;
  }

  .tpl-pricing-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-claim {
    font-size: 16px;
  }

  #hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .hero-terminal {
    display: none;
  }

  .oss-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  #chisono .section-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ── WIDGET CHAT (#ftc) ── */
#ftc {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: 'Barlow Condensed', -apple-system, sans-serif;
}

#ftc-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

#ftc-wa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  text-decoration: none;
}

#ftc-wa:hover {
  transform: scale(1.1);
}

#ftc-wa svg {
  width: 22px;
  height: 22px;
}

#ftc-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #e76f34;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

#ftc-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

#ftc-btn svg {
  width: 26px;
  height: 26px;
}

#ftc-btn.hidden {
  display: none;
}

#ftc-buttons.chat-open #ftc-wa {
  display: none;
}

#ftc-box {
  display: none;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
  overflow: hidden;
  flex-direction: column;
}

#ftc-box.open {
  display: flex;
}

#ftc-head {
  background: #1a4d5c;
  color: #fff;
  padding: .9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ftc-head-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

#ftc-head-info strong {
  font-size: 1rem;
}

#ftc-head-info span {
  font-size: .78rem;
  opacity: .75;
}

#ftc-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 .2rem;
  opacity: .7;
}

#ftc-close:hover {
  opacity: 1;
}

#ftc-body {
  padding: 1rem;
}

.ftc-bubble {
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.5;
  margin-bottom: .6rem;
}

.ftc-bubble-in {
  background: #f5f5f5;
  color: #333;
  border-bottom-left-radius: 4px;
}

.ftc-orari {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: #888;
  margin-bottom: 1rem;
  padding-left: .2rem;
}

.ftc-orari svg {
  flex-shrink: 0;
}

#ftc-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#ftc-form input,
#ftc-form textarea {
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  resize: none;
  transition: border-color .2s;
}

#ftc-form input:focus,
#ftc-form textarea:focus {
  outline: none;
  border-color: #e76f34;
  box-shadow: 0 0 0 3px rgba(231, 111, 52, .1);
}

#ftc-send {
  padding: .65rem;
  border: none;
  border-radius: 8px;
  background: #e76f34;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}

#ftc-send:hover {
  background: #d4612e;
}

#ftc-send:disabled {
  opacity: .5;
  cursor: wait;
}

.ftc-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: .6rem;
  border: 1px solid #1a4d5c;
  border-radius: 8px;
  color: #1a4d5c;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.ftc-tel:hover {
  background: #1a4d5c;
  color: #fff;
}

.ftc-tel svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #ftc-box {
    width: calc(100vw - 2rem);
    right: -.5rem;
    bottom: 68px;
  }

  #ftc {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   LANDING GEO — /assistenza-informatica/<comune>/
   ========================================================================== */

#hero.hero-landing {
  height: auto;
  min-height: 0;
  padding-top: 144px;
  padding-bottom: 88px;
}

.hero-landing .hero-title {
  font-size: clamp(48px, 6vw, 96px);
}

.breadcrumb {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb [aria-current] {
  color: rgba(255, 255, 255, 0.85);
}

.local-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

.local-text p {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--gray-mid);
  max-width: 68ch;
  margin-bottom: 20px;
}

.local-text p strong {
  font-weight: 500;
  color: var(--gray);
}

.local-facts {
  border-top: 3px solid var(--orange);
  background: var(--white);
  padding: 32px 32px 8px;
}

.local-fact {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.local-fact:last-child {
  border-bottom: 0;
}

.local-fact-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.local-fact-value {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 48px 24px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gray);
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  font-size: 30px;
  color: var(--orange);
  transition: transform .2s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.faq-answer {
  padding: 0 48px 28px 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--gray-mid);
}

.nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.nearby a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  transition: border-color .2s, color .2s;
}

.nearby a:hover,
.nearby a:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

@media (max-width: 1360px) {
  .local-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav-dropdown-panel {
    position: static;
    border: none;
    min-width: 0;
    padding: 0 0 8px;
    background: transparent;
  }

  .nav-dropdown-btn {
    display: block;
    padding: 14px var(--pad);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    text-align: left;
  }

  .nav-zone-group {
    padding: 0 var(--pad) 0 calc(var(--pad) + 16px);
  }

  .nav-dropdown-panel {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-panel {
    display: block;
  }
}

@media (max-width: 720px) {
  #hero.hero-landing {
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .faq-item summary {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dots {
    animation: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
