:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #14140f;
  --muted: #6b6b62;
  --border: #e7e4dc;
  --dark: #14140f;
  --accent: #35506b;

  --container: 1180px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
button, input, textarea, select {
  font-family: inherit;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.6;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .nav {
  min-height: 64px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

/* Selettore lingua IT / ES */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.lang-switch span {
  color: var(--border);
}

.lang-switch-landing {
  margin-left: auto;
  margin-right: 16px;
}

.desktop-nav li {
  position: relative;
  list-style: none;
}

.desktop-nav a {
  font-size: 14px;
  position: relative;
}

.desktop-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.desktop-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.desktop-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 14px 8px 8px;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 150;
}

.desktop-nav li:hover > .sub-menu {
  display: block;
}

.desktop-nav .sub-menu li {
  list-style: none;
}

.desktop-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.desktop-nav .sub-menu a::after {
  content: none;
}

.desktop-nav .sub-menu a:hover {
  background: var(--bg);
}

.desktop-nav a.nav-cta,
.desktop-nav li:last-child a {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-nav a.nav-cta:hover,
.desktop-nav li:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 20px 20px;
}

.mobile-menu li {
  list-style: none;
  margin: 0;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
}

.mobile-menu .sub-menu {
  padding-left: 16px;
  border-left: 1px solid var(--border);
  margin: 4px 0 4px 4px;
}

.mobile-menu .sub-menu li {
  list-style: none;
}

.mobile-menu .sub-menu a {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}


/* HERO */

.hero {
  padding: 72px 0 48px;
}

.hero-title {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(60px, 7.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-line span {
  display: inline-block;
  transform: translateY(112%);
  opacity: 0;
  animation: heroLineIn 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) span { animation-delay: 0.1s; }
.hero-line:nth-child(2) span { animation-delay: 0.28s; }
.hero-line:nth-child(3) span { animation-delay: 0.46s; }


/* TRUST BAR */

.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-bar-label {
  font-size: 14px;
  color: var(--muted);
}

.trust-bar-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 40px;
  row-gap: 24px;
  align-items: center;
}

.trust-bar-logos img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

/* Il logo WooCommerce è un wordmark molto "sottile": senza questa eccezione
   sembra minuscolo rispetto alle icone squadrate degli altri brand. */
.trust-bar-logos img:nth-child(2) {
  height: 90px;
}

.trust-bar-logos img:hover {
  opacity: 0.9;
}

@keyframes heroLineIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

p.hero-fade-in { animation-delay: 1.35s; }
div.hero-fade-in { animation-delay: 1.5s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-text {
  margin: 36px 0 0;
  max-width: 620px;
  font-size: 22px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-secondary {
  border: 1px solid var(--border);
}

.btn-light {
  background: white;
  color: #111;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,.4);
  color: white;
  background: transparent;
}


/* SERVICES */

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

.service-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
}

.service-row:hover {
  padding-left: 12px;
}

.service-row h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
}


/* PROJECTS */

.section-dark {
  background: var(--dark);
  color: white;
}

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

.project-card-featured {
  grid-column: 1 / -1;
}

.project-card-featured .project-type::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.project-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-placeholder {
  transform: scale(1.05);
}

.project-placeholder {
  transition: transform 0.5s ease;
}

.project-info .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.project-card:hover .arrow {
  transform: translate(4px, -4px);
}

.project-info h3 {
  transition: opacity 0.3s ease;
}

.project-card:hover .project-info h3 {
  opacity: 0.7;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,#333,#1d1d1d);
}

.project-placeholder span {
  color: rgba(255,255,255,.55);
  font-size: clamp(26px,4vw,54px);
  font-weight: 700;
  text-align: center;
  padding: 0 20px;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
}

.project-type {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: #999;
}

.project-info h3 {
  margin: 4px 0 0;
  font-size: 26px;
}

.arrow {
  font-size: 30px;
}


/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border);
}

.process-item {
  padding: 32px 28px 0 0;
  transition: transform 0.3s ease;
}

.process-item:hover {
  transform: translateX(4px);
}

.process-item:hover span {
  color: var(--text);
}

.process-item span {
  transition: color 0.3s ease;
}

.process-item span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
}

.process-item h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}


/* TAG LIST */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.tag-list span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

.text-link {
  font-weight: 700;
}


/* ABOUT */

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

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


/* CTA + FORM CONTATTI */

.cta-section {
  padding: 0 0 48px;
}

.cta-box {
  padding: 70px;
  border-radius: 30px;
  background: var(--dark);
  color: white;
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(46px,6vw,82px);
  line-height: .98;
}

.cta-box > p:not(.eyebrow) {
  margin-top: 24px;
  color: #aaa;
  font-size: 20px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-message {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
}

.form-message-success {
  background: rgba(90, 200, 130, 0.15);
  color: #7be0a4;
}

.form-message-error {
  background: rgba(220, 90, 90, 0.15);
  color: #ff9b9b;
}

.contact-form {
  margin-top: 36px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-row label {
  font-size: 13px;
  color: #ccc;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: white;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.form-row select {
  appearance: none;
  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 fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row select option {
  background: #14140f;
  color: white;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.09);
}

.contact-form .btn {
  align-self: flex-start;
}

.av-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}


/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--dark);
  color: white;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

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

.cookie-banner-inner {
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
}

.cookie-banner a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-azioni {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

.cookie-banner .btn-primary {
  background: white;
  color: var(--dark);
}

.cookie-banner .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  background: transparent;
}

.cookie-banner .btn-outline-light:hover {
  border-color: white;
}


/* FOOTER */

.site-footer {
  padding: 0 0 40px;
}

.footer-content {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a {
  transition: opacity 0.2s ease;
}

.footer-legal a:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
}


/* FORM: transizioni sui campi */

.form-row input,
.form-row select,
.form-row textarea {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.text-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.text-link:hover {
  transform: translateX(4px);
  opacity: 0.75;
}

.footer-links a {
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}


/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* Sfalsamento automatico per le card nelle griglie */

.projects-grid .project-card:nth-child(1) { --reveal-delay: 0s; }
.projects-grid .project-card:nth-child(2) { --reveal-delay: 0.1s; }
.projects-grid .project-card:nth-child(3) { --reveal-delay: 0.2s; }
.projects-grid .project-card:nth-child(4) { --reveal-delay: 0.3s; }
.projects-grid .project-card:nth-child(5) { --reveal-delay: 0.4s; }
.projects-grid .project-card:nth-child(6) { --reveal-delay: 0.5s; }

.process-grid .process-item:nth-child(1) { --reveal-delay: 0s; }
.process-grid .process-item:nth-child(2) { --reveal-delay: 0.08s; }
.process-grid .process-item:nth-child(3) { --reveal-delay: 0.16s; }
.process-grid .process-item:nth-child(4) { --reveal-delay: 0.24s; }

/* Chi non vuole animazioni le disattiviamo del tutto */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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


/* PROJECT SINGLE PAGE */

.project-single-hero {
  padding: 60px 0 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--text);
  transform: translateX(-4px);
}

.project-single-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 900px;
}

.project-single-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  max-height: 640px;
}

.project-single-image img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

.project-single-body {
  padding-top: 70px;
}

.project-single-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
  align-items: start;
}

.project-meta-box {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-meta-box .btn {
  width: 100%;
}

.project-meta-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Tipografia del contenuto: qualsiasi cosa venga scritta nell'editor
   viene "contenuta" dentro questi stili, così non rompe mai il layout */
.entry-content {
  max-width: 700px;
  font-size: 18px;
  color: var(--text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 44px 0 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.entry-content h1 { font-size: 34px; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.entry-content li {
  margin-bottom: 8px;
}

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

.entry-content img,
.entry-content figure {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 30px 0;
}

.entry-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--text);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
}

.entry-content strong {
  color: var(--text);
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .project-card-featured {
    grid-column: auto;
  }

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

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

  .project-meta-box {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .project-meta-box .btn {
    width: auto;
  }

  .project-meta-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 650px) {

  .cookie-banner-inner {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner-azioni {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner .btn {
    width: 100%;
  }

  .trust-bar-logos {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 14px;
    row-gap: 24px;
  }

  .trust-bar-logos img {
    height: 18px;
    max-width: 56px;
  }

  .trust-bar-logos img:nth-child(2) {
    height: 40px;
  }

  .desktop-nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 14px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: block;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-title {
    font-size: clamp(28px, 8.5vw, 42px);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 42px 28px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}


/* LANDING PAGE PUBBLICITARIA (preventivo sito web) */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.btn-small {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-large {
  padding: 18px 30px;
  font-size: 17px;
}

.landing-hero {
  padding: 90px 0 60px;
}

.landing-hero h1 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.landing-hero-sub {
  margin: 0 0 32px;
  max-width: 620px;
  font-size: 19px;
  color: var(--muted);
}

.landing-microtrust {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.landing-trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-trust-inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.landing-trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.landing-trust-nomi {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.landing-trust-nomi a {
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.landing-trust-nomi a:hover {
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 3px;
}
  margin: 36px 0 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Le righe servizio dentro la sezione scura hanno bisogno di un
   contrasto diverso, altrimenti bordo e testo muted spariscono */
.section-dark .service-row {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.section-dark .service-row p {
  color: rgba(255, 255, 255, 0.6);
}

.landing-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.landing-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.landing-footer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 650px) {
  .landing-hero {
    padding: 60px 0 44px;
  }

  .btn-large {
    width: 100%;
  }

  .landing-trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .landing-pivot {
    font-size: 19px;
  }
}


/* ICONE per problema/soluzione */

.service-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.service-row-head {
  display: flex;
  flex-direction: column;
}

.service-row-icon.icon-problema {
  background: rgba(207, 46, 46, 0.1);
  color: #cf2e2e;
}

.service-row-icon.icon-soluzione {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.service-row-icon svg {
  width: 18px;
  height: 18px;
}

/* Sfondo leggermente più ricco per l'hero della landing */
.landing-hero {
  background: radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.035), transparent 45%);
}

.landing-trust-nomi a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-trust-nomi a::before {
  content: "✓";
  color: #1a7f4e;
  font-weight: 700;
}


/* FUNNEL A STEP (pagina preventivo) */

.funnel-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 32px;
  overflow: hidden;
}

.funnel-progress-bar {
  height: 100%;
  width: 14.28%;
  background: white;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-step { display: none; }
.funnel-step.is-attiva {
  display: block;
  animation: funnelStepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes funnelStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.funnel-step .form-row {
  margin-bottom: 0;
}

.funnel-step label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.funnel-azioni {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.funnel-indietro {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
}

.funnel-indietro:hover { color: white; }

.funnel-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.funnel-choice {
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.15s ease;
}

.funnel-choice:hover { border-color: white; background: rgba(255, 255, 255, 0.09); }
.funnel-choice.is-selected { border-color: white; background: white; color: var(--dark); font-weight: 600; }

.funnel-riepilogo-riga {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  gap: 16px;
}

.funnel-riepilogo-label { color: rgba(255, 255, 255, 0.6); flex-shrink: 0; }
.funnel-riepilogo-valore { text-align: right; font-weight: 600; }

.funnel-skip {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

/* Il form della pagina preventivo continua senza interruzioni lo
   sfondo scuro della sezione "Soluzione" appena sopra: niente più
   salto a sfondo chiaro con un riquadro scuro "che galleggia" in mezzo. */
.landing-cta-dark {
  background: var(--dark);
  padding-top: 0;
  margin-top: -1px;
}

.landing-cta-dark .cta-box {
  background: transparent;
  border-radius: 0;
  padding: 20px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 650px) {
  .landing-cta-dark .cta-box {
    padding: 16px 0 48px;
  }
}

.form-row input.input-grande {
  font-size: 20px;
  padding: 16px 18px;
}

@media (max-width: 480px) {
  .form-row input.input-grande {
    font-size: 17px;
  }
}
