/* ============================================
   ARIA PURA — Clima World Snc
   Template A: Light / Professional / Precision
   Handcrafted. No templates. No frameworks.
   ============================================ */

:root {
  --bg-primary: #F7F9FC;
  --bg-secondary: #EDF1F7;
  --bg-dark: #1B2B3A;
  --bg-dark-panel: #213344;
  --accent-blue: #1E6BA5;
  --accent-blue-light: rgba(30, 107, 165, 0.06);
  --accent-teal: #00897B;
  --accent-orange: #E8711F;
  --accent-orange-light: rgba(232, 113, 31, 0.08);
  --text-primary: #1B2B3A;
  --text-secondary: #5A6F82;
  --text-muted: #8A99A8;
  --border: #D8E1EB;
  --border-light: #E8EEF5;
  --glass-border: rgba(30, 107, 165, 0.08);

  --shadow-sm: 0 1px 3px rgba(27, 43, 58, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 43, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 43, 58, 0.1);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 250ms var(--ease-out-expo);
  --transition-normal: 450ms var(--ease-out-expo);

  --accent-primary: var(--accent-blue);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
}

.section-header__label {
  color: var(--accent-blue);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.section-header__title {
  color: var(--text-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ---- Navigation ---- */
.nav {
  background: rgba(247, 249, 252, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
}

.nav.scrolled {
  background: rgba(247, 249, 252, 0.95);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav__logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__logo-icon {
  color: var(--accent-blue);
  font-size: 0.92rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}

.nav__links a:hover { color: var(--accent-blue); }
.nav__links a::after { background: var(--accent-blue); height: 1px; }
.nav__hamburger span { background: var(--text-primary); }

.nav .btn--primary {
  background: var(--accent-orange);
  color: #fff;
  padding: 0.55rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(232, 113, 31, 0.2);
}

@media (max-width: 767px) {
  .nav__links {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Geometric airflow pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(30, 107, 165, 0.02) 80px,
      rgba(30, 107, 165, 0.02) 81px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 80px,
      rgba(30, 107, 165, 0.015) 80px,
      rgba(30, 107, 165, 0.015) 81px
    );
  pointer-events: none;
}

/* Diagonal structural element */
.hero__accent-line {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 40%;
  height: 130%;
  background: rgba(30, 107, 165, 0.02);
  transform: rotate(-10deg);
  pointer-events: none;
}

.hero__accent-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 5%, rgba(30, 107, 165, 0.12) 30%, rgba(30, 107, 165, 0.12) 70%, transparent 95%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero__partners {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__partners::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-blue);
  opacity: 0.4;
}

.hero__title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 480px;
}

.hero__location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--cta {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 113, 31, 0.25);
}

.btn--cta:hover {
  box-shadow: 0 6px 30px rgba(232, 113, 31, 0.35);
  transform: translateY(-3px);
}

.btn--cta svg { flex-shrink: 0; }

.btn--outline {
  border-color: rgba(30, 107, 165, 0.25);
  color: var(--accent-blue);
  border-width: 1px;
}

.btn--outline:hover {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

/* Hero data sidebar */
.hero__data {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
  border-left: 1px solid var(--border);
}

.hero__data-number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero__data-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__partners::before { display: none; }

  .hero__data {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    justify-content: space-between;
  }

  .hero__data-number { font-size: 1.5rem; }
}

/* ============================================
   SERVIZI (Services)
   ============================================ */
.servizi {
  background: var(--bg-secondary);
  position: relative;
}

.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.servizio-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.servizio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 107, 165, 0.15);
}

/* Left accent bar */
.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(30, 107, 165, 0.15) 100%);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.servizio-card:hover::before { opacity: 1; }

.servizio-card__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.servizio-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
}

.servizio-card__icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-blue);
  opacity: 0.6;
}

.servizio-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.servizio-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* Emergency card */
.servizio-card--emergency {
  border-color: rgba(232, 113, 31, 0.15);
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(232, 113, 31, 0.03) 100%);
}

.servizio-card--emergency::before {
  background: linear-gradient(180deg, var(--accent-orange) 0%, rgba(232, 113, 31, 0.15) 100%);
}

.servizio-card--emergency .servizio-card__icon svg {
  fill: var(--accent-orange);
}

.servizio-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.03em;
  transition: gap var(--transition-fast);
}

.servizio-card__cta:hover {
  gap: 0.6rem;
}

@media (max-width: 1023px) {
  .servizi__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .servizi__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PERCHÉ NOI (Why Us)
   ============================================ */
.perche {
  background: var(--bg-primary);
  position: relative;
}

.perche__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.perche__item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.perche__number {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.perche__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.perche__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

@media (max-width: 767px) {
  .perche__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================
   CONTATTI (Contact) — Dark Section
   ============================================ */
.contatti-section {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Diagonal accent */
.contatti-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 40%;
  height: 120%;
  background: var(--bg-dark-panel);
  clip-path: polygon(0 0, 100% 8%, 80% 100%, 0 92%);
  z-index: 0;
}

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

.contatti__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contatti__text .section-header__label {
  color: rgba(30, 107, 165, 0.7);
}

.contatti__title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.contatti__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.7;
}

.contatti__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contatti__block-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.contatti__block p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  line-height: 1.7;
}

.contatti__phone {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}

.contatti__phone:hover {
  color: var(--accent-orange);
}

.contatti__phone--alt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.contatti__map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contatti__map-link:hover {
  color: var(--accent-orange);
}

.contatti__hours {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-row:last-child { border-bottom: none; }

.hours-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.hours-row--closed {
  color: rgba(232, 113, 31, 0.7);
}

@media (max-width: 767px) {
  .contatti-section::before { display: none; }

  .contatti__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer__text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  background: var(--accent-blue);
  box-shadow: 0 2px 12px rgba(30, 107, 165, 0.25);
}

.back-to-top:hover {
  background: var(--accent-orange);
  box-shadow: 0 4px 20px rgba(232, 113, 31, 0.3);
}

/* ============================================
   BUTTONS OVERRIDE
   ============================================ */
.btn {
  transition: all var(--transition-normal);
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .hero__title { font-size: 2.5rem; }

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

  .hero__actions .btn {
    justify-content: center;
  }

  .section { padding: 4rem 0; }
}

/* ============================================
   THE 1% — Precision Details
   ============================================ */

/* Clean grain for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Service cards — number color shift on hover */
.servizio-card:hover .servizio-card__number {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.servizio-card--emergency:hover .servizio-card__number {
  color: var(--accent-orange);
}

/* Service cards — icon lift on hover */
.servizio-card__icon {
  transition: transform var(--transition-normal);
}

.servizio-card:hover .servizio-card__icon {
  transform: translateY(-3px);
}

.servizio-card:hover .servizio-card__icon svg {
  opacity: 1;
  transition: opacity var(--transition-fast);
}

/* Hero data — number scale on hover */
.hero__data-item {
  transition: transform var(--transition-normal);
  cursor: default;
}

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

.hero__data-item:hover .hero__data-number {
  text-shadow: 0 0 20px rgba(30, 107, 165, 0.2);
  transition: text-shadow var(--transition-fast);
}

/* Perché items — border accent on hover */
.perche__item {
  transition: border-color var(--transition-normal);
}

.perche__item:hover {
  border-left-color: var(--accent-blue);
}

/* Buttons — active press + shimmer */
.btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 80ms ease;
}

.btn--cta {
  position: relative;
  overflow: hidden;
}

.btn--cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(25deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn--cta:hover::after {
  left: 120%;
}

/* Dark contact section — ambient glow */
.contatti-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 107, 165, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: contact-glow 6s ease-in-out infinite;
}

@keyframes contact-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Phone numbers — underline grow on hover */
.contatti__phone {
  position: relative;
}

.contatti__phone::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width var(--transition-normal);
}

.contatti__phone:hover::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body::after { display: none; }
  .contatti-section::after { animation: none; }
}


/* ============================================
   COMPLIANCE BASELINE v1.2
   Footer multi-colonna + Cookie banner Garante 2021
   Aggiunto automaticamente da tools/inject-compliance.sh
   ============================================ */
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__col p {
  margin-bottom: 0.4rem;
}

.footer__col a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__legal {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.96);
  color: #f5f5f5;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 2px solid currentColor;
  padding: 1.25rem 1rem;
  z-index: 10000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner__text {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
