/* =========================================================
   LA PIRAMIDE — GESTIONALI, CRM E SOLUZIONI DIGITALI
   FILE: css/gestionali.css

   CSS costruito per:
   - gestionali.html
   - computer
   - tablet
   - telefono
========================================================= */


/* =========================================================
   VARIABILI
========================================================= */

:root {
  --avorio: #f1eadb;
  --avorio-chiaro: #fffaf1;
  --avorio-scuro: #d8c8aa;

  --nero: #050505;
  --nero-2: #090909;
  --nero-3: #101010;
  --nero-4: #171717;
  --nero-5: #222222;

  --oro-scuro: #855417;
  --oro-medio: #b97824;
  --oro: #d6a146;
  --oro-chiaro: #ffe19a;
  --oro-luce: #fff1c2;

  --bianco: #ffffff;
  --bianco-morbido: #f5f5f5;

  --grigio-chiaro: #dedede;
  --grigio: #b5b5b5;
  --grigio-scuro: #757575;

  --bordo-oro: rgba(214, 161, 70, 0.34);
  --bordo-oro-forte: rgba(255, 225, 154, 0.7);

  --ombra-sezione: 0 32px 85px rgba(0, 0, 0, 0.38);
  --ombra-card: 0 22px 50px rgba(0, 0, 0, 0.4);
  --ombra-foto: 0 28px 65px rgba(0, 0, 0, 0.52);

  --raggio-sezione: 32px;
  --raggio-card: 24px;
  --raggio-foto: 24px;

  --larghezza-massima: 1500px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--bianco);

  font-family: "Montserrat", sans-serif;

  background:
    radial-gradient(
      circle at 10% 3%,
      rgba(255, 255, 255, 0.88),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      var(--avorio-chiaro),
      var(--avorio) 54%,
      #e5d8c0
    );
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

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

figure {
  margin: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  color: var(--nero);
  background: var(--oro-chiaro);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--nero);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--nero);
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    var(--oro-scuro),
    var(--oro),
    var(--oro-chiaro)
  );
}


/* =========================================================
   TITOLI E TESTI
========================================================= */

h1,
h2,
h3,
.brand-name,
.footer-brand strong {
  font-family: "Cinzel", serif;
}

h1,
h2 {
  color: var(--oro-chiaro);

  background: linear-gradient(
    100deg,
    var(--oro-scuro) 0%,
    var(--oro-medio) 18%,
    var(--oro-chiaro) 39%,
    var(--oro-luce) 50%,
    var(--oro) 69%,
    var(--oro-scuro) 100%
  );

  background-size: 170% auto;
  background-position: center;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: break-word;
}


/* =========================================================
   ETICHETTE
========================================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 3.2px;
  text-transform: uppercase;
}

.section-label::before {
  content: "";

  flex: 0 0 auto;

  width: 34px;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--oro-chiaro)
  );
}


/* =========================================================
   NAVBAR
========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  min-height: 84px;
  padding: 10px clamp(22px, 4vw, 66px);

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;

  border-bottom: 1px solid var(--bordo-oro);

  background: rgba(5, 5, 5, 0.95);

  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);

  transition:
    min-height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.nav.scrolled {
  min-height: 74px;

  background: rgba(5, 5, 5, 0.99);

  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.46);
}

.brand {
  min-width: max-content;

  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 82px;
  height: 58px;

  object-fit: contain;

  border-radius: 5px;

  filter:
    brightness(1.1)
    contrast(1.06)
    drop-shadow(0 0 10px rgba(214, 161, 70, 0.28));

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);

  filter:
    brightness(1.14)
    contrast(1.08)
    drop-shadow(0 0 17px rgba(255, 225, 154, 0.42));
}

.brand-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--oro-chiaro);

  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 4px;

  color: var(--grigio);

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.nav-links {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 25px);
}

.nav-links a {
  position: relative;

  padding: 12px 0;

  color: #d0d0d0;

  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;

  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";

  position: absolute;
  bottom: 4px;
  left: 50%;

  width: 0;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--oro-chiaro),
    transparent
  );

  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--oro-chiaro);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  min-width: max-content;
  padding-inline: 19px;

  font-size: 11px;
}

.menu-btn {
  display: none;

  width: 46px;
  height: 46px;
  padding: 11px;

  cursor: pointer;

  border: 1px solid var(--bordo-oro);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.035);
}

.menu-btn span {
  display: block;

  width: 100%;
  height: 2px;
  margin: 5px 0;

  border-radius: 999px;

  background: var(--oro-chiaro);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   BOTTONI
========================================================= */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 49px;
  padding: 14px 27px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--nero);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;

  cursor: pointer;

  border: 1px solid rgba(255, 241, 194, 0.44);
  border-radius: 999px;

  background: linear-gradient(
    125deg,
    var(--oro-scuro),
    var(--oro-medio) 27%,
    var(--oro-chiaro) 52%,
    var(--oro) 77%,
    var(--oro-scuro)
  );

  box-shadow:
    0 12px 29px rgba(214, 161, 70, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn::before {
  content: "";

  position: absolute;
  z-index: -1;
  top: -70%;
  left: -45%;

  width: 43px;
  height: 250%;

  opacity: 0.55;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.78),
    transparent
  );

  transform: rotate(24deg);

  animation: buttonShine 3.1s linear infinite;
}

.btn:hover {
  transform: translateY(-3px);

  border-color: var(--oro-luce);

  box-shadow:
    0 17px 39px rgba(214, 161, 70, 0.36),
    0 0 24px rgba(255, 225, 154, 0.14);
}

.btn-outline {
  color: var(--oro-chiaro);

  border-color: rgba(214, 161, 70, 0.67);

  background: rgba(255, 255, 255, 0.025);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.014),
    0 12px 28px rgba(0, 0, 0, 0.27);
}

.btn-outline::before {
  opacity: 0.24;
}

.btn-outline:hover {
  color: var(--oro-luce);
  background: rgba(214, 161, 70, 0.075);
}


/* =========================================================
   STRUTTURA GENERALE
========================================================= */

main {
  width: 100%;
  padding: 1px 0 24px;
}

.section,
.hero,
.visual-chapter,
.statement-section {
  width: min(calc(100% - 12%), var(--larghezza-massima));
  margin: 38px auto;
}

.section,
.hero {
  border: 1px solid var(--bordo-oro);
  border-radius: var(--raggio-sezione);

  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(214, 161, 70, 0.11),
      transparent 29%
    ),
    radial-gradient(
      circle at 10% 100%,
      rgba(133, 84, 23, 0.08),
      transparent 29%
    ),
    linear-gradient(
      145deg,
      var(--nero-3),
      var(--nero-2) 48%,
      var(--nero)
    );

  box-shadow: var(--ombra-sezione);
}

.section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(60px, 7vw, 100px)
    clamp(27px, 6vw, 90px);
}

.section::before {
  content: "";

  position: absolute;
  top: 0;
  left: 11%;

  width: 78%;
  height: 1px;

  opacity: 0.35;

  background: linear-gradient(
    90deg,
    transparent,
    var(--oro-chiaro),
    transparent
  );
}

.section-head {
  width: min(100%, 930px);
  margin: 0 auto clamp(38px, 5vw, 62px);

  text-align: center;
}

.section-head .section-label,
.closing-content .section-label,
.contact-heading .section-label {
  justify-content: center;
}

.section-head .section-label::after,
.closing-content .section-label::after,
.contact-heading .section-label::after {
  content: "";

  width: 34px;
  height: 1px;

  background: linear-gradient(
    90deg,
    var(--oro-chiaro),
    transparent
  );
}

.section-head h2,
.management-heading h2,
.crm-content h2,
.closing-content h2,
.contact-heading h2 {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;

  font-size: clamp(33px, 4vw, 59px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section-head h2 span,
.management-heading h2 span,
.crm-content h2 span,
.closing-content h2 span,
.contact-heading h2 span {
  display: block;
}

.section-head > p {
  max-width: 800px;
  margin: 20px auto 0;

  color: var(--grigio-chiaro);

  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100vh - 116px);
  margin-top: 110px;

  padding:
    clamp(52px, 6vw, 85px)
    clamp(29px, 6vw, 88px);

  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: center;
  gap: clamp(42px, 6vw, 86px);
}

.hero-background,
.hero-background span {
  position: absolute;
  pointer-events: none;
}

.hero-background {
  z-index: -1;
  inset: 0;
}

.hero-glow {
  border-radius: 50%;
  filter: blur(5px);
}

.hero-glow-one {
  top: -130px;
  right: -100px;

  width: 480px;
  height: 480px;

  background: radial-gradient(
    circle,
    rgba(214, 161, 70, 0.16),
    rgba(214, 161, 70, 0.04) 45%,
    transparent 73%
  );
}

.hero-glow-two {
  bottom: -210px;
  left: 10%;

  width: 480px;
  height: 480px;

  background: radial-gradient(
    circle,
    rgba(133, 84, 23, 0.11),
    transparent 70%
  );
}

.hero-line {
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 225, 154, 0.5),
    transparent
  );
}

.hero-line-one {
  top: 24%;
  left: -12%;

  width: 57%;

  transform: rotate(-12deg);

  animation: heroLineOne 8s ease-in-out infinite;
}

.hero-line-two {
  right: -15%;
  bottom: 19%;

  width: 59%;

  transform: rotate(10deg);

  animation: heroLineTwo 9s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;

  min-width: 0;
}

.hero-content h1 {
  width: 100%;
  max-width: 850px;
  margin: 19px 0 24px;

  font-size: clamp(42px, 4.8vw, 71px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.6px;
}

.hero-content h1 span {
  display: block;
}

.hero-lead {
  max-width: 750px;

  color: var(--bianco-morbido);

  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.72;
}

.hero-secondary {
  max-width: 720px;
  margin-top: 15px;

  color: var(--grigio);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.73;
}

.hero-actions {
  margin-top: 30px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-points {
  max-width: 740px;
  margin-top: 42px;
  padding-top: 26px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid rgba(214, 161, 70, 0.23);
}

.hero-point {
  position: relative;

  min-width: 0;
  min-height: 74px;

  padding: 5px 18px;
}

.hero-point:first-child {
  padding-left: 0;
}

.hero-point:not(:last-child)::after {
  content: "";

  position: absolute;
  top: 5px;
  right: 0;

  width: 1px;
  height: calc(100% - 10px);

  background: linear-gradient(
    180deg,
    transparent,
    rgba(214, 161, 70, 0.42),
    transparent
  );
}

.hero-point strong {
  display: block;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
}

.hero-point span {
  display: block;
  margin-top: 7px;

  color: var(--grigio);

  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================================================
   HERO — IMMAGINE GESTIONALE
========================================================= */

.hero-visual {
  position: relative;

  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-management-image {
  position: relative;
  overflow: hidden;

  width: min(100%, 620px);
  min-height: 560px;

  border: 1px solid rgba(255, 225, 154, 0.45);
  border-radius: 28px;

  background: var(--nero);

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(214, 161, 70, 0.09);

  transform: rotate(1.2deg);

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.hero-management-image:hover {
  transform: rotate(0deg) translateY(-7px);

  border-color: var(--oro-chiaro);
}

.hero-management-image::before {
  content: "";

  position: absolute;
  z-index: 2;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 36%,
      rgba(0, 0, 0, 0.23) 62%,
      rgba(0, 0, 0, 0.94) 100%
    ),
    linear-gradient(
      130deg,
      rgba(255, 225, 154, 0.08),
      transparent 36%
    );
}

.hero-management-image img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-management-image:hover img {
  transform: none;
}

.hero-management-image figcaption {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 32px;
  left: 34px;
}

.hero-management-image figcaption span {
  display: block;

  color: var(--oro-chiaro);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-management-image figcaption strong {
  display: block;

  max-width: 470px;
  margin-top: 9px;

  color: var(--bianco);

  font-family: "Cinzel", serif;
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 700;
  line-height: 1.32;
}

.hero-management-badge {
  position: absolute;
  z-index: 5;
  right: -21px;
  bottom: 52px;

  min-width: 180px;
  padding: 18px 21px;

  border: 1px solid rgba(255, 225, 154, 0.5);
  border-radius: 18px;

  background: rgba(5, 5, 5, 0.93);

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-management-badge span {
  display: block;

  color: var(--grigio);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.hero-management-badge strong {
  display: block;
  margin-top: 6px;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 18px;
}


/* =========================================================
   MANIFESTO
========================================================= */

.statement-section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(65px, 8vw, 110px)
    clamp(28px, 7vw, 100px);

  border: 1px solid var(--bordo-oro);
  border-radius: var(--raggio-sezione);

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(214, 161, 70, 0.14),
      transparent 47%
    ),
    linear-gradient(
      145deg,
      #17110a,
      var(--nero-2) 55%,
      var(--nero)
    );

  box-shadow: var(--ombra-sezione);
}

.statement-section::before,
.statement-section::after {
  content: "";

  position: absolute;
  left: 50%;

  width: 68%;
  height: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 225, 154, 0.48),
    transparent
  );
}

.statement-section::before {
  top: 29px;
}

.statement-section::after {
  bottom: 29px;
}

.statement-content {
  position: relative;

  max-width: 1030px;
  margin: 0 auto;

  text-align: center;
}

.statement-content > span {
  position: absolute;
  top: -65px;
  left: 50%;

  color: rgba(255, 225, 154, 0.12);

  font-family: Georgia, serif;
  font-size: 180px;
  line-height: 1;

  transform: translateX(-50%);
}

.statement-content blockquote {
  position: relative;
  z-index: 2;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: clamp(24px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.5;
}

.statement-content p {
  margin-top: 25px;

  color: var(--grigio);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}


/* =========================================================
   GESTIONALI
========================================================= */

.management-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(45px, 7vw, 105px);
}

.management-heading,
.management-content {
  min-width: 0;
}

.management-content > p {
  color: var(--grigio-chiaro);

  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.management-content > p + p {
  margin-top: 18px;
}

.management-lead {
  color: var(--bianco) !important;

  font-size: clamp(18px, 1.65vw, 23px) !important;
  font-weight: 650 !important;
  line-height: 1.62 !important;
}

.management-values {
  grid-column: 1 / -1;

  margin-top: 16px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.management-value {
  min-width: 0;
  min-height: 235px;
  padding: 26px 22px;

  border: 1px solid rgba(214, 161, 70, 0.25);
  border-radius: 21px;

  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.047),
    rgba(255, 255, 255, 0.012)
  );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.management-value:hover {
  transform: translateY(-7px);

  border-color: var(--bordo-oro-forte);

  background: linear-gradient(
    155deg,
    rgba(214, 161, 70, 0.1),
    rgba(255, 255, 255, 0.012)
  );
}

.management-value > span {
  color: var(--oro);

  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 800;
}

.management-value h3 {
  margin-top: 26px;

  color: var(--oro-chiaro);

  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.management-value p {
  margin-top: 12px;

  color: var(--grigio);

  font-size: 13px;
  line-height: 1.65;
}


/* =========================================================
   CAPITOLO VISIVO
========================================================= */

.visual-chapter {
  position: relative;
  overflow: hidden;

  height: clamp(520px, 66vw, 790px);

  border: 1px solid var(--bordo-oro);
  border-radius: var(--raggio-sezione);

  background: var(--nero);

  box-shadow: var(--ombra-sezione);
}

.visual-chapter-image {
  position: relative;

  width: 100%;
  height: 100%;
}

.visual-chapter-image::before {
  content: "";

  position: absolute;
  z-index: 3;
  inset: 0;

  pointer-events: none;

  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 154, 0.06),
    inset 0 0 90px rgba(0, 0, 0, 0.55);
}

.visual-chapter-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  filter:
    brightness(0.96)
    contrast(1.02)
    saturate(1);

  transition:
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}

.visual-chapter:hover .visual-chapter-image img {
  transform: none;

  filter:
    brightness(1)
    contrast(1.02)
    saturate(1);
}

.visual-chapter-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.72) 34%,
      rgba(0, 0, 0, 0.18) 69%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12),
      transparent 40%,
      rgba(0, 0, 0, 0.4)
    );
}

.visual-chapter-content {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: clamp(30px, 7vw, 105px);

  width: min(630px, 52%);
  padding-left: 30px;

  border-left: 1px solid rgba(255, 225, 154, 0.57);

  transform: translateY(-50%);
}

.chapter-number {
  display: block;
  margin-bottom: 20px;

  color: rgba(255, 225, 154, 0.55);

  font-family: "Cinzel", serif;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.8;
}

.visual-chapter-content h2 {
  margin-top: 18px;

  font-size: clamp(34px, 4.3vw, 65px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.visual-chapter-content h2 span {
  display: block;
}

.visual-chapter-content p {
  max-width: 580px;
  margin-top: 22px;

  color: var(--bianco-morbido);

  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.75;
}


/* =========================================================
   STRUMENTI DEL GESTIONALE
========================================================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.tool-card {
  overflow: hidden;

  min-width: 0;

  border: 1px solid rgba(214, 161, 70, 0.28);
  border-radius: 22px;

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(214, 161, 70, 0.09),
      transparent 30%
    ),
    linear-gradient(
      150deg,
      var(--nero-4),
      #090909
    );

  box-shadow: var(--ombra-card);

  transition:
    transform 0.38s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-7px);

  border-color: var(--bordo-oro-forte);

  box-shadow:
    0 30px 62px rgba(0, 0, 0, 0.53),
    0 0 25px rgba(214, 161, 70, 0.08);
}

.tool-card figure {
  height: 320px;

  overflow: hidden;

  border-bottom: 1px solid rgba(214, 161, 70, 0.22);
}

.tool-card figure img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

.tool-card:hover figure img {
  transform: none;
  filter: none;
}

.tool-card-content {
  padding: 28px 27px 31px;
}

.tool-card-content > span {
  color: var(--oro);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tool-card-content h3 {
  margin-top: 13px;

  color: var(--oro-chiaro);

  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
}

.tool-card-content p {
  margin-top: 12px;

  color: var(--grigio);

  font-size: 13px;
  line-height: 1.68;
}

.tool-card-wide {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(380px, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.tool-card-wide figure {
  height: 430px;

  border-right: 1px solid rgba(214, 161, 70, 0.22);
  border-bottom: 0;
}

.tool-card-wide .tool-card-content {
  display: flex;
  justify-content: center;
  flex-direction: column;

  padding: 40px;
}


/* =========================================================
   CRM
========================================================= */

.crm-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(45px, 7vw, 90px);
}

.crm-content,
.crm-process {
  min-width: 0;
}

.crm-content > p {
  margin-top: 18px;

  color: var(--grigio-chiaro);

  font-size: 15px;
  line-height: 1.78;
}

.crm-lead {
  color: var(--bianco) !important;

  font-size: clamp(18px, 1.65vw, 23px) !important;
  font-weight: 650;
  line-height: 1.62 !important;
}

.crm-process {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.crm-process article {
  flex: 1 1 0;

  min-width: 0;
  min-height: 260px;
  padding: 28px 20px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;

  text-align: center;

  border: 1px solid rgba(214, 161, 70, 0.28);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(214, 161, 70, 0.1),
      transparent 36%
    ),
    linear-gradient(
      150deg,
      var(--nero-4),
      #090909
    );

  box-shadow: var(--ombra-card);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.crm-process article:hover {
  transform: translateY(-7px);

  border-color: var(--bordo-oro-forte);
}

.crm-process article > span {
  color: var(--oro);

  font-family: "Cinzel", serif;
  font-size: 25px;
  font-weight: 800;
}

.crm-process article strong {
  display: block;
  margin-top: 31px;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 18px;
}

.crm-process article p {
  margin-top: 13px;

  color: var(--grigio);

  font-size: 12px;
  line-height: 1.65;
}

.crm-process > div {
  flex: 0 0 auto;

  width: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--oro-chiaro);

  font-size: 22px;
}


/* =========================================================
   SERVIZI DIGITALI
========================================================= */

.digital-services-grid {
  max-width: 1240px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.digital-service-card {
  position: relative;
  overflow: hidden;

  min-width: 0;
  min-height: 330px;
  padding: 31px 27px;

  border: 1px solid rgba(214, 161, 70, 0.26);
  border-radius: var(--raggio-card);

  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(214, 161, 70, 0.09),
      transparent 29%
    ),
    linear-gradient(
      150deg,
      var(--nero-4),
      #090909
    );

  box-shadow: var(--ombra-card);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.digital-service-card::after {
  content: "";

  position: absolute;
  right: -45px;
  bottom: -45px;

  width: 125px;
  height: 125px;

  border: 1px solid rgba(214, 161, 70, 0.1);
  border-radius: 50%;

  transition:
    transform 0.45s ease,
    border-color 0.35s ease;
}

.digital-service-card:hover {
  transform: translateY(-7px);

  border-color: var(--bordo-oro-forte);
}

.digital-service-card:hover::after {
  transform: scale(1.22);

  border-color: rgba(255, 225, 154, 0.22);
}

.digital-service-card > span {
  color: var(--oro);

  font-family: "Cinzel", serif;
  font-size: 27px;
  font-weight: 800;
}

.digital-service-card h3 {
  margin-top: 30px;

  color: var(--oro-chiaro);

  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.35;
}

.digital-service-card p {
  margin-top: 13px;

  color: var(--grigio);

  font-size: 13px;
  line-height: 1.7;
}

.digital-service-card > div {
  margin-top: 21px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.digital-service-card > div span {
  padding: 8px 11px;

  color: var(--oro-chiaro);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;

  border: 1px solid rgba(214, 161, 70, 0.28);
  border-radius: 999px;

  background: rgba(214, 161, 70, 0.055);
}


/* =========================================================
   METODO
========================================================= */

.method-list {
  max-width: 1160px;
  margin: 0 auto;

  display: grid;
  gap: 17px;
}

.method-step {
  position: relative;
  overflow: hidden;

  min-height: 185px;
  padding: 30px 35px;

  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 28px;

  border: 1px solid rgba(214, 161, 70, 0.27);
  border-radius: var(--raggio-card);

  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(214, 161, 70, 0.09),
      transparent 29%
    ),
    linear-gradient(
      150deg,
      var(--nero-4),
      #090909 73%
    );

  box-shadow: var(--ombra-card);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.method-step::after {
  content: "";

  position: absolute;
  top: 50%;
  right: -60px;

  width: 160px;
  height: 160px;

  border: 1px solid rgba(214, 161, 70, 0.1);
  border-radius: 50%;

  transform: translateY(-50%);

  transition:
    transform 0.5s ease,
    border-color 0.35s ease;
}

.method-step:hover {
  transform: translateX(7px);

  border-color: var(--bordo-oro-forte);
}

.method-step:hover::after {
  transform: translateY(-50%) scale(1.2);

  border-color: rgba(255, 225, 154, 0.24);
}

.method-step > span {
  color: var(--oro);

  font-family: "Cinzel", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  text-align: center;
}

.method-step > div {
  min-width: 0;
}

.method-step small {
  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.method-step h3 {
  max-width: 790px;
  margin-top: 9px;

  color: var(--bianco);

  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.35;
}

.method-step p {
  max-width: 850px;
  margin-top: 11px;

  color: var(--grigio);

  font-size: 14px;
  line-height: 1.68;
}


/* =========================================================
   DIFFERENZA
========================================================= */

.difference-grid {
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.difference-card {
  min-width: 0;
  min-height: 245px;
  padding: 27px 23px;

  border: 1px solid rgba(214, 161, 70, 0.25);
  border-radius: 21px;

  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.047),
    rgba(255, 255, 255, 0.012)
  );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.difference-card:hover {
  transform: translateY(-7px);

  border-color: var(--bordo-oro-forte);

  background: linear-gradient(
    155deg,
    rgba(214, 161, 70, 0.095),
    rgba(255, 255, 255, 0.012)
  );
}

.difference-card > span {
  color: var(--oro);

  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 800;
}

.difference-card h3 {
  margin-top: 27px;

  color: var(--oro-chiaro);

  font-size: 18px;
  line-height: 1.4;
}

.difference-card p {
  margin-top: 13px;

  color: var(--grigio);

  font-size: 13px;
  line-height: 1.68;
}


/* =========================================================
   CTA FINALE
========================================================= */

.closing-section {
  text-align: center;

  background:
    radial-gradient(
      circle at 50% 15%,
      rgba(214, 161, 70, 0.14),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      var(--nero-3),
      var(--nero)
    );
}

.closing-content {
  max-width: 930px;
  margin: 0 auto;
}

.closing-content p {
  max-width: 780px;
  margin: 21px auto 0;

  color: var(--grigio-chiaro);

  font-size: 16px;
  line-height: 1.76;
}

.closing-actions {
  margin-top: 31px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}


/* =========================================================
   CONTATTI
========================================================= */

.contact-heading {
  max-width: 880px;
  margin: 0 auto;

  text-align: center;
}

.contact-heading p {
  max-width: 710px;
  margin: 21px auto 0;

  color: var(--grigio-chiaro);

  font-size: 16px;
  line-height: 1.76;
}

.contact-grid {
  max-width: 1000px;
  margin: 42px auto 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.contact-card {
  min-width: 0;
  min-height: 155px;
  padding: 24px;

  display: flex;
  align-items: center;

  border: 1px solid rgba(214, 161, 70, 0.28);
  border-radius: 23px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.052),
    rgba(255, 255, 255, 0.012)
  );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-6px);

  border-color: var(--bordo-oro-forte);

  background: linear-gradient(
    145deg,
    rgba(214, 161, 70, 0.095),
    rgba(255, 255, 255, 0.012)
  );
}

.contact-details {
  min-width: 0;
}

.contact-details > span {
  display: block;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 17px;
  font-weight: 800;
}

.contact-details strong {
  display: block;
  overflow-wrap: anywhere;

  margin-top: 7px;

  color: var(--bianco);

  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.4;
}

.contact-details small {
  display: block;
  margin-top: 8px;

  color: var(--grigio);

  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  width: 100%;
  margin-top: 38px;
  padding:
    55px
    clamp(25px, 6vw, 92px)
    24px;

  color: var(--grigio);

  border-top: 1px solid var(--bordo-oro);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(214, 161, 70, 0.07),
      transparent 29%
    ),
    var(--nero);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr;
  align-items: start;
  gap: 38px;
}

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

.footer-brand img {
  width: 84px;
  height: 62px;

  object-fit: contain;

  border-radius: 4px;
}

.footer-brand strong {
  color: var(--oro-chiaro);

  font-size: 18px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 6px;

  color: var(--grigio);

  font-size: 12px;
  line-height: 1.55;
}

.footer-navigation,
.footer-company,
.footer-contacts {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-navigation > span,
.footer-company > span,
.footer-contacts > span {
  margin-bottom: 5px;

  color: var(--oro-chiaro);

  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 800;
}

.footer-navigation a,
.footer-company a,
.footer-contacts a,
.footer-bottom a {
  overflow-wrap: anywhere;

  color: var(--grigio);

  font-size: 12px;
  font-weight: 600;

  transition: color 0.3s ease;
}

.footer-navigation a:hover,
.footer-company a:hover,
.footer-contacts a:hover,
.footer-bottom a:hover {
  color: var(--oro-chiaro);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid rgba(214, 161, 70, 0.17);
}

.footer-bottom p {
  color: var(--grigio-scuro);

  font-size: 11px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 990;

  width: 61px;
  height: 61px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--nero);

  border: 1px solid rgba(255, 241, 194, 0.68);
  border-radius: 50%;

  background: linear-gradient(
    135deg,
    var(--oro-scuro),
    var(--oro),
    var(--oro-chiaro)
  );

  box-shadow:
    0 0 0 0 rgba(214, 161, 70, 0.55),
    0 14px 35px rgba(0, 0, 0, 0.42);

  animation: whatsappPulse 1.7s infinite;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.09);

  box-shadow:
    0 0 28px rgba(214, 161, 70, 0.44),
    0 17px 40px rgba(0, 0, 0, 0.47);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(37px);

  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.image-loaded {
  opacity: 1;
}

.image-error {
  opacity: 0.3;
}

.keyboard-activated {
  transform: scale(0.97);
}


/* =========================================================
   ANIMAZIONI
========================================================= */

@keyframes buttonShine {
  0% {
    left: -45%;
  }

  48%,
  100% {
    left: 135%;
  }
}

@keyframes heroLineOne {
  0%,
  100% {
    transform: rotate(-12deg) translateX(-5%);
    opacity: 0.2;
  }

  50% {
    transform: rotate(-12deg) translateX(19%);
    opacity: 0.65;
  }
}

@keyframes heroLineTwo {
  0%,
  100% {
    transform: rotate(10deg) translateX(5%);
    opacity: 0.18;
  }

  50% {
    transform: rotate(10deg) translateX(-18%);
    opacity: 0.58;
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(214, 161, 70, 0.52),
      0 14px 35px rgba(0, 0, 0, 0.42);
  }

  70% {
    box-shadow:
      0 0 0 18px rgba(214, 161, 70, 0),
      0 14px 35px rgba(0, 0, 0, 0.42);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(214, 161, 70, 0),
      0 14px 35px rgba(0, 0, 0, 0.42);
  }
}


/* =========================================================
   RESPONSIVE — COMPUTER MEDIO
========================================================= */

@media (max-width: 1300px) {
  .nav {
    gap: 17px;
    padding-inline: 27px;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .nav-cta {
    padding-inline: 15px;
    font-size: 10px;
  }

  .hero {
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(350px, 0.95fr);
  }

  .management-values,
  .digital-services-grid,
  .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-section {
    grid-template-columns: 1fr;
  }

  .crm-content {
    max-width: 850px;
    margin: 0 auto;

    text-align: center;
  }

  .crm-content .section-label {
    justify-content: center;
  }

  .crm-content .section-label::after {
    content: "";

    width: 34px;
    height: 1px;

    background: linear-gradient(
      90deg,
      var(--oro-chiaro),
      transparent
    );
  }

  .crm-process {
    width: min(100%, 950px);
    margin: 0 auto;
  }

  .footer-main {
    grid-template-columns: 1.25fr 0.8fr 1fr;
  }

  .footer-contacts {
    grid-column: 2 / 4;
  }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {
  html {
    scroll-padding-top: 85px;
  }

  .nav {
    min-height: 76px;

    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    width: 72px;
    height: 52px;
  }

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: -100%;
    z-index: 999;

    width: min(86%, 390px);
    height: calc(100vh - 76px);
    padding: 34px 30px;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;

    overflow-y: auto;

    border-left: 1px solid var(--bordo-oro);

    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(214, 161, 70, 0.12),
        transparent 30%
      ),
      rgba(5, 5, 5, 0.99);

    box-shadow: -20px 30px 55px rgba(0, 0, 0, 0.43);

    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 4px;

    font-family: "Cinzel", serif;
    font-size: 16px;

    border-bottom: 1px solid rgba(214, 161, 70, 0.13);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    margin-top: 96px;

    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .section-label {
    justify-content: center;
  }

  .hero-content .section-label::after {
    content: "";

    width: 34px;
    height: 1px;

    background: linear-gradient(
      90deg,
      var(--oro-chiaro),
      transparent
    );
  }

  .hero-content h1,
  .hero-lead,
  .hero-secondary,
  .hero-points {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-management-image {
    width: min(100%, 720px);
    min-height: 500px;

    transform: none;
  }

  .hero-management-badge {
    right: 15px;
  }

  .management-section {
    grid-template-columns: 1fr;
  }

  .management-heading,
  .management-content {
    max-width: 850px;
    margin: 0 auto;

    text-align: center;
  }

  .management-heading .section-label {
    justify-content: center;
  }

  .management-heading .section-label::after {
    content: "";

    width: 34px;
    height: 1px;

    background: linear-gradient(
      90deg,
      var(--oro-chiaro),
      transparent
    );
  }

  .management-values {
    grid-column: auto;
  }

  .visual-chapter {
    height: 650px;
  }

  .visual-chapter-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.33) 36%,
      rgba(0, 0, 0, 0.94) 100%
    );
  }

  .visual-chapter-content {
    top: auto;
    right: clamp(28px, 6vw, 65px);
    bottom: clamp(35px, 6vw, 70px);
    left: clamp(28px, 6vw, 65px);

    width: auto;
    padding: 0 0 0 24px;

    text-align: left;

    transform: none;
  }

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

  .tool-card-wide {
    grid-column: auto;

    display: block;
  }

  .tool-card-wide figure {
    height: 350px;

    border-right: 0;
    border-bottom: 1px solid rgba(214, 161, 70, 0.22);
  }

  .tool-card-wide .tool-card-content {
    display: block;

    padding: 30px 27px;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;

    justify-content: center;

    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-contacts {
    grid-column: auto;
  }
}


/* =========================================================
   RESPONSIVE — TELEFONO
========================================================= */

@media (max-width: 700px) {
  :root {
    --raggio-sezione: 24px;
    --raggio-card: 21px;
    --raggio-foto: 18px;
  }

  .nav {
    min-height: 72px;
    padding: 8px 17px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 64px;
    height: 45px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .menu-btn {
    width: 43px;
    height: 43px;
  }

  .nav-links {
    top: 72px;

    height: calc(100vh - 72px);
  }

  .section,
  .hero,
  .visual-chapter,
  .statement-section {
    width: calc(100% - 26px);

    margin-block: 22px;
  }

  .section {
    padding: 53px 20px;
  }

  .hero {
    margin-top: 87px;
    padding: 38px 20px 48px;

    gap: 29px;
  }

  .section-label {
    gap: 8px;

    font-size: 9px;
    letter-spacing: 2px;
  }

  .section-label::before,
  .section-head .section-label::after,
  .hero-content .section-label::after,
  .management-heading .section-label::after,
  .crm-content .section-label::after,
  .closing-content .section-label::after,
  .contact-heading .section-label::after {
    width: 19px;
  }

  .hero-content h1 {
    margin-top: 15px;

    font-size: clamp(34px, 10vw, 47px);
    line-height: 1.07;
    letter-spacing: -1px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.66;
  }

  .hero-secondary {
    font-size: 13px;
    line-height: 1.67;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-point {
    min-height: auto;
    padding: 15px 0;

    text-align: center;

    border-bottom: 1px solid rgba(214, 161, 70, 0.16);
  }

  .hero-point:last-child {
    border-bottom: 0;
  }

  .hero-point:not(:last-child)::after {
    display: none;
  }

  .hero-management-image {
    min-height: 400px;

    border-radius: 21px;
  }

  .hero-management-image figcaption {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .hero-management-image figcaption strong {
    font-size: 20px;
  }

  .hero-management-badge {
    display: none;
  }

  .section-head h2,
  .management-heading h2,
  .crm-content h2,
  .closing-content h2,
  .contact-heading h2 {
    font-size: clamp(29px, 8.5vw, 40px);
    line-height: 1.13;
    letter-spacing: -0.6px;
  }

  .section-head > p,
  .management-content > p,
  .crm-content > p,
  .closing-content p,
  .contact-heading p {
    font-size: 14px;
    line-height: 1.7;
  }

  .management-values,
  .digital-services-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .management-value,
  .digital-service-card,
  .difference-card {
    min-height: auto;
  }

  .statement-section {
    padding: 70px 21px;
  }

  .statement-content > span {
    top: -47px;

    font-size: 135px;
  }

  .statement-content blockquote {
    font-size: 21px;
    line-height: 1.55;
  }

  .statement-content p {
    font-size: 9px;
    line-height: 1.6;
  }

  .visual-chapter {
    height: 570px;
  }

  .visual-chapter-content {
    right: 21px;
    bottom: 31px;
    left: 21px;

    padding-left: 17px;
  }

  .chapter-number {
    margin-bottom: 15px;

    font-size: 47px;
  }

  .visual-chapter-content h2 {
    margin-top: 13px;

    font-size: clamp(29px, 8.7vw, 39px);
    line-height: 1.12;
  }

  .visual-chapter-content p {
    margin-top: 16px;

    font-size: 13px;
    line-height: 1.65;
  }

  .tool-card figure,
  .tool-card-wide figure {
    height: 250px;
  }

  .tool-card-content,
  .tool-card-wide .tool-card-content {
    padding: 25px 21px 28px;
  }

  .crm-process {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-process article {
    min-height: auto;
  }

  .crm-process > div {
    width: 100%;
    height: 40px;

    transform: rotate(90deg);
  }

  .method-step {
    min-height: auto;
    padding: 26px 21px;

    grid-template-columns: 1fr;
    gap: 15px;
  }

  .method-step > span {
    text-align: left;
  }

  .closing-actions {
    flex-direction: column;
  }

  .closing-actions .btn {
    width: 100%;
  }

  .contact-card {
    min-height: auto;
    padding: 20px 17px;
  }

  .contact-details strong {
    font-size: 13px;
  }

  .footer {
    padding:
      43px
      20px
      23px;
  }

  .footer-main {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-brand {
    grid-column: auto;

    flex-direction: column;
  }

  .footer-navigation,
  .footer-company,
  .footer-contacts {
    align-items: center;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;

    text-align: center;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 15px;

    width: 55px;
    height: 55px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}


/* =========================================================
   TELEFONI PICCOLI
========================================================= */

@media (max-width: 420px) {
  .brand-name {
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .section-head h2,
  .management-heading h2,
  .crm-content h2,
  .closing-content h2,
  .contact-heading h2 {
    font-size: 28px;
  }

  .visual-chapter {
    height: 535px;
  }

  .visual-chapter-content h2 {
    font-size: 28px;
  }

  .hero-management-image {
    min-height: 350px;
  }

  .tool-card figure,
  .tool-card-wide figure {
    height: 220px;
  }

  .contact-card {
    align-items: flex-start;
  }
}


/* =========================================================
   RIDUZIONE ANIMAZIONI
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

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

:where(a, button):focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
