/* =========================================================
   ARTE CASA — style.css
   --------------------------------------------------------
   Il sito ha due "temi": chiaro (di default) e scuro.
   Tutti i colori sono variabili CSS definite qui sotto in
   :root (tema chiaro) e in [data-theme="dark"] (tema scuro).
   Il pulsante in alto a destra cambia il tema aggiungendo/
   togliendo data-theme="dark" sul tag <html> (vedi script.js).
   Per cambiare le tinte basta modificare i valori qui:
   il resto del sito si aggiorna da solo.
   ========================================================= */

:root {
  /* --- TEMA CHIARO ("Servizio chiaro") --- */
  --bg:        #F3F5F7;   /* sfondo pagina */
  --surface:   #FFFFFF;   /* sfondo card / header */
  --ink:       #1D2933;   /* testo principale */
  --ink-soft:  #5C6B78;   /* testo secondario */
  --line:      #E1E6EA;   /* linee / bordi */

  --blue:      #1565C0;   /* "acqua" — idraulica, fiducia */
  --blue-soft: #E6F0FB;
  --red:       #E2532B;   /* "fuoco" — stufe, calore */
  --red-soft:  #FDEAE2;

  --shadow: 0 14px 34px rgba(29, 41, 51, 0.07);

  /* --- Tipografia --- */
  --font-display: "Archivo Expanded", "Archivo", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --max-width: 1180px;
  --radius: 16px;
}

/* --- TEMA SCURO ("Notte tecnica") --- */
[data-theme="dark"] {
  --bg:        #121A24;
  --surface:   #1C2733;
  --ink:       #F1EDE3;
  --ink-soft:  #9FB0BE;
  --line:      rgba(255, 255, 255, 0.10);

  --blue:      #5BB0FF;
  --blue-soft: rgba(91, 176, 255, 0.12);
  --red:       #FF7A52;
  --red-soft:  rgba(255, 122, 82, 0.12);

  --shadow: none;
}

/* =========================================================
   RESET DI BASE
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

ul {
  list-style: none;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   UTILITÀ TIPOGRAFICHE
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.eyebrow.is-blue {
  color: var(--blue);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

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

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.alt-bg {
  background: var(--surface);
}

/* =========================================================
   PULSANTI / CTA
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

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

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-light {
  background: var(--surface);
  color: var(--red);
}

/* =========================================================
   HEADER / NAVIGAZIONE
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__mark {
  width: 52px;
  height: 52px;
  color: var(--red);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.logo__accent {
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__text small {
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav__links {
  display: flex;
  gap: 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__links a {
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* --- Interruttore tema chiaro/scuro --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Pulsante hamburger (mobile) */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
}

@media (max-width: 859px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 24px;
    gap: 1rem;
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(3rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0.6rem 0 1.2rem;
  transition: opacity 0.5s ease;
}

.hero h1 .hl-red { color: var(--red); }
.hero h1 .hl-blue { color: var(--blue); }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

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

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
}

.hero__trust div {
  display: flex;
  flex-direction: column;
}

.hero__trust strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}

.hero__trust span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Collage fotografico: "fuoco" + "acqua" --- */
.hero__art {
  position: relative;
  min-height: 360px;
}

.hero__art .photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__art .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art .photo--main {
  top: 0;
  right: 0;
  width: 78%;
  height: 320px;
  border: 4px solid var(--red);
}

.hero__art .photo--accent {
  bottom: 0;
  left: 0;
  width: 56%;
  height: 200px;
  border: 4px solid var(--blue);
  z-index: 2;
}

@media (max-width: 560px) {
  .hero__art { min-height: 320px; }
  .hero__art .photo--main { width: 92%; height: 240px; }
  .hero__art .photo--accent { width: 64%; height: 160px; }
}

/* =========================================================
   SERVIZI — griglia di card con immagine
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .photo {
  height: 150px;
  overflow: hidden;
}

.service-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .body {
  padding: 1.6rem;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
}

.service-card .icon.is-red { color: var(--red); }
.service-card .icon.is-blue { color: var(--blue); }

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card .body > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card ul {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.service-card ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.service-card.is-red ul li::before { background: var(--red); }
.service-card.is-blue ul li::before { background: var(--blue); }

/* =========================================================
   MANUTENZIONE STUFA A PELLET OBBLIGATORIA (blocco fisso)
   ========================================================= */
.pellet-banner {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}

.pellet-banner__tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.pellet-banner__head h3 {
  margin-bottom: 0.2rem;
}

.pellet-banner__sub {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.check-list {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 700px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -0.05em;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #2E9E5B;
  border-radius: 5px;
}

/* Promo dinamica: mostrata/nascosta da script.js in base alle date
   impostate nella CONFIGURAZIONE PROMO in cima al file. */
.promo-box {
  margin-top: 1.4rem;
  background: var(--red-soft);
  border: 1px dashed var(--red);
  border-radius: calc(var(--radius) - 6px);
  padding: 1rem 1.2rem;
}

.promo-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================================================
   CORNICETTA FAI-DA-TE / BRICOLAGE
   ========================================================= */
.diy-banner {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 700px) {
  .diy-banner {
    grid-template-columns: 220px 1fr;
  }
}

.diy-banner__photo {
  height: 160px;
}

@media (min-width: 700px) {
  .diy-banner__photo {
    height: 100%;
  }
}

.diy-banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diy-banner__text {
  padding: 1.6rem 1.8rem;
}

.diy-banner__text h3 {
  margin-bottom: 0.4rem;
}

.diy-banner__text p {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

/* =========================================================
   PERCHÉ NOI
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 760px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.6rem;
}

.why-item h3 {
  margin-bottom: 0.4rem;
}

.why-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =========================================================
   ZONE SERVITE
   ========================================================= */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.zone-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.zone-pill:nth-child(even) .dot {
  background: var(--blue);
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact {
  background: var(--surface);
}

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

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-card h3 {
  margin-bottom: 1.2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info a, .contact-info span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.contact-info .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--red);
}

.contact-info a:hover {
  color: var(--red);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.map-link img,
.map-link svg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

[data-theme="dark"] .footer {
  background: #0C141D;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

.footer__credit a {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer__credit a:hover {
  text-decoration: underline;
}

/* =========================================================
   PULSANTE WHATSAPP FISSO
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 60;
  transition: transform 0.15s ease;
}

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

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

/* =========================================================
   SKIP LINK (accessibilità)
   ========================================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}
