:root {
  --bg-main: #fff;
  --bg-light: #ffffff;
  --accent: #f0f052;
  --accent-soft: #e7f2ff;
  --text-main: #222222;
  --text-muted: #666666;
  --border-soft: #dde2f2;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
  display: none;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
/* .hero-text h1,
.hero-text p {
  background: linear-gradient(90deg, #ffcc00, #0c0b0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} */

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(28, 126, 214, 0.2);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(28, 126, 214, 0.28);
  background: #1763aa;
}

/* HERO 3D */

.hero-3d-wrapper {
  position: relative;
}

.hero-3d-toolbar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 0.75rem;
}

.hero-3d-toolbar button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.hero-3d-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #ffffff, #edf2ff);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  max-height: 520px;
}

/* IMMAGINE ZOOMMABILE */

.hero-3d-image {
  display: block;
  width: 100%;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  /* Valore iniziale */
  transform: scale(1) translate(0, 0);
}

/* HOTSPOT */

/* HOTSPOT NORMALE */
.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(28, 126, 214, 0.25);
  cursor: grab;
  transform: translate(-50%, -50%);
}

.hero-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 1px;
  color: #100f0f;
}

/* CONTAINER */
#zoomContainer {
  position: relative !important; /* <-- OBBLIGATORIO */
}


/* SEZIONI */

.section {
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
}

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

.section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

/* CARDS SERVIZI */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

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

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.card-link {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

/* FORM CONTATTI */

.contact-form {
  max-width: 500px;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font: inherit;
}

/* FOOTER */

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 200px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.8rem 1.5rem 1rem;
    gap: 0.7rem;
  }
}

.zoom-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.zoom-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 20px;
}

.zoom-container {
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

.zoom-image {
  width: 100%;
  display: block;
}

.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  cursor: pointer;
  animation: pulse 1.8s infinite ease-out;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 var(--accent);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 18px rgba(255, 71, 71, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 71, 0);
  }
}

.hotspot::after {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #ffffff;
  color: #333;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* STORIA */
.storia-azienda {
  padding: 3rem 1.5rem;
}

.storia-riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 1300px;
  margin: auto;
}

.storia-testo {
  flex: 1.2;
}

.storia-testo h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.storia-testo p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.storia-foto {
  flex: 1;
}

.storia-foto img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  object-fit: cover;
}


/* cta section */

.cta-double {
  padding: 3rem 1rem;
  text-align: center;
}

.cta-double h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-light, .btn-dark {
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
}

.btn-light {
  background: var(--accent);
  color: #0c0c0c;
}

.btn-dark {
  background: #333;
  color: #dcd9d9;
}

.btn-light:hover, .btn-dark:hover {
  opacity: 0.85;
}

/* Benefit */

.lumen-benefits {
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 1300px;
  margin: 3rem auto;
}

.lumen-benefits h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1c7ed6;
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.benefit-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}


/* FOTO GALLERY */
.lumen-photo-section {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap; /* IMPORTANTISSIMO per il responsive */
}

.wp-block-image img {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* Tablet — 2 foto per riga */
@media (max-width: 992px) {
  .photo-wrapper img {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

/* Mobile — 1 foto per riga */
@media (max-width: 576px) {
  .photo-wrapper img {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* WHatsapp button */

.whatsapp-button {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-button img {
  width: 36px;
  height: 36px;
}

.whatsapp-button:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* FOOTER */
.site-footer {
  background: #f2f4f7;
  padding: 3rem 1.5rem 1rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.footer-col p,
.footer-col a {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: #555;
  transition: 0.2s;
}

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

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #777;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* WORDPRSS */
/* Rimuove background, bordo e stile pulsante */
.wp-block-button__link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  color: inherit;
  font-weight: 600;
  text-decoration: none;
}



/* Tutti i link dei pulsanti diventano card-link */
.wp-block-button__link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.storia-azienda{
  margin: 0% 10%!important;
}
/* alias semantico */
.wp-block-button__link {
  /* stile card-link */
  color: var(--accent);
}

/* se vuoi proprio la classe logica */
.card-link,
.wp-block-button__link {
  color: var(--accent);
}


/* === STORIA AZIENDA: UNA RIGA === */
.storia-riga {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* colonne */
.storia-testo {
  flex: 0 0 55%;
}

.storia-foto {
  flex: 0 0 45%;
}

/* immagine */
.storia-foto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* SOLO MOBILE va in colonna */
@media (max-width: 768px) {
  .storia-riga {
    flex-direction: column;
  }

  .storia-testo,
  .storia-foto {
    flex: 0 0 100%;
  }
}


/* === CTA DOPPIA === */
.cta-double {
  text-align: center;
  padding: 80px 20px;
}

.cta-double h2 {
  margin-bottom: 30px;
}

/* contenitore bottoni */
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* reset <p> che Gutenberg aggiunge */
.cta-buttons p {
  margin: 0;
}

/* mobile */
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}


.lumen-benefits {
  padding: 80px 20px;
  text-align: center;
}

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

.benefit-item {
  padding: 25px;
}

.benefit-icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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