/* =========================================================
   ANET — design system
   Dark, premium, accento verde brand. Nessun framework.
   ========================================================= */

:root {
  --bg: #0a0c0a;
  --bg-soft: #0e120f;
  --surface: #121713;
  --surface-2: #171d18;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6f3;
  --text-muted: #9aa69d;
  --text-dim: #6b756e;
  --accent: #1fae5c;
  --accent-bright: #34e07f;
  --accent-dim: #14733d;
  --accent-ink: #06120a;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-bright);
  display: inline-block;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px rgba(52, 224, 127, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(52, 224, 127, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 13px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-bright);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-image: image-set(
    url("../assets/img/hero-bg.webp") type("image/webp"),
    url("../assets/img/hero-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  animation:
    hero-bg-in 1.8s var(--ease) forwards,
    hero-bg-drift 22s ease-in-out 1.8s infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(10, 12, 10, 0.88) 32%, rgba(10, 12, 10, 0.45) 58%, rgba(10, 12, 10, 0.55) 100%),
    linear-gradient(to top, rgba(10, 12, 10, 0.65) 0%, transparent 30%);
}

@keyframes hero-bg-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-bg-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: hero-bg-in 1.8s var(--ease) forwards;
  }
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
}

.hero-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}

.hero-glow span:nth-child(1) {
  width: 480px;
  height: 480px;
  top: 5%;
  left: 8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-glow span:nth-child(2) {
  width: 380px;
  height: 380px;
  bottom: 0%;
  right: 6%;
  background: radial-gradient(circle, #0e6b39 0%, transparent 70%);
  animation-delay: -6s;
}

.hero-glow span:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, var(--accent-bright) 0%, transparent 70%);
  opacity: 0.18;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 22px 0 24px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 0.9s var(--ease) forwards;
}

.hero h1 .line:nth-child(1) span { animation-delay: 0.05s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.18s; color: var(--accent-bright); }
.hero h1 .line:nth-child(3) span { animation-delay: 0.31s; }

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.5s;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.65s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.trust-bar {
  position: relative;
  z-index: 1;
  margin-top: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.8s;
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-bar span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue .dot-track {
  width: 1px;
  height: 34px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue .dot-track::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--accent-bright);
  animation: scroll-cue 2.2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { top: -20px; }
  60% { top: 34px; }
  100% { top: 34px; }
}

/* ---------- generic sections ---------- */

.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-top: 16px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-soft {
  background: var(--bg-soft);
}

.section-custom-why {
  position: relative;
  overflow: hidden;
}

.section-custom-why .container {
  position: relative;
  z-index: 1;
}

.section-stats-bg {
  position: relative;
  overflow: hidden;
}

.section-stats-bg .container {
  position: relative;
  z-index: 1;
}

.section-servizi-ecommerce {
  position: relative;
  overflow: hidden;
}

.section-servizi-ecommerce .container {
  position: relative;
  z-index: 1;
}

.section-hosting-domini {
  position: relative;
  overflow: hidden;
}

.section-hosting-domini .container {
  position: relative;
  z-index: 1;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 12, 10, 0.55) 18%, rgba(10, 12, 10, 0.72) 60%, var(--bg) 100%);
}

.section-bg--perche {
  background-image: image-set(
    url("../assets/img/perche-bg.webp") type("image/webp"),
    url("../assets/img/perche-bg.jpg") type("image/jpeg")
  );
}

.section-bg--ecommerce {
  background-image: image-set(
    url("../assets/img/servizi-ecommerce-bg.webp") type("image/webp"),
    url("../assets/img/servizi-ecommerce-bg.jpg") type("image/jpeg")
  );
}

.section-bg--domini {
  background-image: image-set(
    url("../assets/img/hosting-domini-bg.webp") type("image/webp"),
    url("../assets/img/hosting-domini-bg.jpg") type("image/jpeg")
  );
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(52,224,127,0.16), rgba(31,174,92,0.05));
  border: 1px solid rgba(52,224,127,0.25);
  margin-bottom: 22px;
  color: var(--accent-bright);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.card .tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 30px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-bright);
  display: block;
}

.stat .label {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 6px;
  display: block;
}

/* ---------- partner badge ---------- */

.partner-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
}

.partner-card .partner-logo {
  flex: 0 0 auto;
  width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.partner-card .partner-logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.partner-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

@media (max-width: 640px) {
  .partner-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 80px 48px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(52,224,127,0.14), transparent 60%), var(--surface);
  border: 1px solid var(--border-strong);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 18px auto 16px;
  max-width: 600px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 34px;
}

.cta-banner .hero-cta {
  justify-content: center;
  animation: none;
  opacity: 1;
}

.cta-banner--photo > *:not(.cta-banner-bg) {
  position: relative;
  z-index: 1;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation:
    hero-bg-in 1.8s var(--ease) forwards,
    hero-bg-drift 22s ease-in-out 1.8s infinite alternate;
}

.cta-banner-bg--progetto {
  background-image: image-set(
    url("../assets/img/index-cta-bg.webp") type("image/webp"),
    url("../assets/img/index-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg--portfolio {
  background-image: image-set(
    url("../assets/img/portfolio-cta-bg.webp") type("image/webp"),
    url("../assets/img/portfolio-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg--chisiamo {
  background-image: image-set(
    url("../assets/img/chisiamo-cta-bg.webp") type("image/webp"),
    url("../assets/img/chisiamo-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg--contatti {
  background-image: image-set(
    url("../assets/img/contatti-cta-bg.webp") type("image/webp"),
    url("../assets/img/contatti-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg--grazie {
  background-image: image-set(
    url("../assets/img/grazie-cta-bg.webp") type("image/webp"),
    url("../assets/img/grazie-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg--hosting {
  background-image: image-set(
    url("../assets/img/hosting-cta-bg.webp") type("image/webp"),
    url("../assets/img/hosting-cta-bg.jpg") type("image/jpeg")
  );
}

.cta-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(52, 224, 127, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 12, 10, 0.78) 0%, rgba(10, 12, 10, 0.62) 45%, rgba(10, 12, 10, 0.82) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner-bg {
    animation: hero-bg-in 1.8s var(--ease) forwards;
  }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img {
  height: 32px;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social a:hover {
  color: var(--accent-ink);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14.5px;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-icon-inline {
  display: inline-flex;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.wa-icon-inline svg {
  width: 20px;
  height: 20px;
}

.wa-icon-inline:hover {
  color: #25d366;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-sitemap-link {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.footer-sitemap-link:hover {
  color: var(--accent-bright);
  text-decoration-color: var(--accent-bright);
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: 168px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 18px;
  max-width: 760px;
}

.page-hero p.lead {
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 20px;
  font-size: 1.1rem;
}

.page-hero-servizi,
.page-hero-chisiamo,
.page-hero-portfolio,
.page-hero-contatti,
.page-hero-hosting {
  overflow: hidden;
}

.page-hero-servizi .container,
.page-hero-chisiamo .container,
.page-hero-portfolio .container,
.page-hero-contatti .container,
.page-hero-hosting .container {
  position: relative;
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation:
    hero-bg-in 1.8s var(--ease) forwards,
    hero-bg-drift 22s ease-in-out 1.8s infinite alternate;
}

.page-hero-bg--servizi {
  background-image: image-set(
    url("../assets/img/servizi-hero-bg.webp") type("image/webp"),
    url("../assets/img/servizi-hero-bg.jpg") type("image/jpeg")
  );
}

.page-hero-bg--chisiamo {
  background-image: image-set(
    url("../assets/img/chi-siamo-hero-bg.webp") type("image/webp"),
    url("../assets/img/chi-siamo-hero-bg.jpg") type("image/jpeg")
  );
}

.page-hero-bg--portfolio {
  background-image: image-set(
    url("../assets/img/portfolio-hero-bg.webp") type("image/webp"),
    url("../assets/img/portfolio-hero-bg.jpg") type("image/jpeg")
  );
}

.page-hero-bg--contatti {
  background-image: image-set(
    url("../assets/img/contatti-hero-bg.webp") type("image/webp"),
    url("../assets/img/contatti-hero-bg.jpg") type("image/jpeg")
  );
}

.page-hero-bg--hosting {
  background-image: image-set(
    url("../assets/img/hosting-hero-bg.webp") type("image/webp"),
    url("../assets/img/hosting-hero-bg.jpg") type("image/jpeg")
  );
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(10, 12, 10, 0.88) 32%, rgba(10, 12, 10, 0.45) 58%, rgba(10, 12, 10, 0.55) 100%),
    linear-gradient(to top, rgba(10, 12, 10, 0.65) 0%, transparent 30%);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg {
    animation: hero-bg-in 1.8s var(--ease) forwards;
  }
}

.section-come-lavoriamo {
  position: relative;
  overflow: hidden;
}

.section-come-lavoriamo .container {
  position: relative;
  z-index: 1;
}

.section-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation:
    hero-bg-in 1.8s var(--ease) forwards,
    hero-bg-drift 22s ease-in-out 1.8s infinite alternate;
}

.section-hero-bg--metodo {
  background-image: image-set(
    url("../assets/img/servizi-metodo-bg.webp") type("image/webp"),
    url("../assets/img/servizi-metodo-bg.jpg") type("image/jpeg")
  );
}

.section-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 12, 10, 0.55) 18%, rgba(10, 12, 10, 0.72) 60%, var(--bg) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .section-hero-bg {
    animation: hero-bg-in 1.8s var(--ease) forwards;
  }
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

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

/* ---------- timeline (processo) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.timeline-step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
}

.timeline-step .n {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-bright);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.timeline-step h3 {
  font-size: 1rem;
  margin: 12px 0 8px;
}

.timeline-step p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- portfolio mock browser ---------- */

.mock-browser {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  background: #0d100e;
}

.mock-browser .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #141815;
  border-bottom: 1px solid var(--border);
}

.mock-browser .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  display: inline-block;
}

.mock-browser .screen {
  height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-browser .bl {
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.mock-browser .screen-img {
  padding: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.portfolio-body {
  padding: 26px 26px 30px;
}

.portfolio-body .cat {
  font-size: 12px;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.portfolio-body h3 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
}

.portfolio-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.concept-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 64px;
}

.concept-notice .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--accent-bright);
}

.concept-notice p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.concept-notice strong {
  color: var(--text);
}

/* ---------- contact page ---------- */

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

.contact-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wa-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
}

.card-link-inline {
  position: relative;
  z-index: 2;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}

.card-link-inline:hover {
  color: var(--accent-bright);
}

.wa-badge svg {
  width: 23px;
  height: 23px;
}

.wa-badge:hover {
  transform: scale(1.08);
}

.contact-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(52,224,127,0.16), rgba(31,174,92,0.05));
  border: 1px solid rgba(52,224,127,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

.contact-card h3 {
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.contact-card .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

.form-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- about / values ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.value-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.value-row:last-child {
  border-bottom: 1px solid var(--border);
}

.value-row .idx {
  font-family: var(--font-display);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 14px;
  padding-top: 3px;
}

.value-row h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-row p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--text);
}

.big-quote .accent {
  color: var(--accent-bright);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    padding: 100px 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    gap: 4px;
    z-index: 90;
  }

  .site-header.nav-open .main-nav a {
    font-size: 1.4rem;
    padding: 14px 0;
  }

  .site-header.nav-open .header-actions .btn {
    display: inline-flex;
  }

  .site-header.nav-open .header-actions {
    position: fixed;
    z-index: 95;
    top: 22px;
    right: 76px;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 130px 0 80px; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 12, 10, 0.55) 0%, var(--bg) 62%, var(--bg) 100%);
  }
  .section { padding: 80px 0; }
  .cta-banner { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-cta,
  .cta-banner .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn,
  .cta-banner .hero-cta .btn {
    width: 100%;
  }
  .trust-bar { gap: 10px 20px; }
  .stats { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- promo: 10 siti gratis ---------- */

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(52, 224, 127, 0.3);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}

.promo-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(52, 224, 127, 0.6);
  animation: promo-pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 224, 127, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 224, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 224, 127, 0); }
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.55);
}

.btn-whatsapp:hover {
  background: #26e070;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.7);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-bright);
}

.price-compare {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-compare .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-compare .price-row span:first-child {
  color: var(--text-muted);
  font-size: 14.5px;
}

.price-compare .price-row.is-old span:last-child {
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.price-compare .price-row.is-new span:last-child {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.price-compare hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.promo-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-bright);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 16px;
}

.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(52, 224, 127, 0.1);
  border: 1px solid rgba(52, 224, 127, 0.3);
  color: var(--text);
  font-size: 14.5px;
}

.form-feedback.is-visible {
  display: block;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
}

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

.faq-item .faq-plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-item .faq-plus::before,
.faq-item .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--accent-bright);
  transition: transform 0.25s var(--ease);
}

.faq-item .faq-plus::before {
  top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%);
}

.faq-item .faq-plus::after {
  left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%);
}

.faq-item[open] .faq-plus::after {
  transform: translateX(-50%) rotate(90deg) scale(0);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 0 0 20px;
}

@media (max-width: 760px) {
  .checklist { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .promo-form { padding: 28px 22px; }
}
