:root {
  /* Palette Apple Titanium & Pro Blue */
  --bg-dark: #07080a;
  --bg-dark-elevated: #12141a;
  --bg-light: #f5f5f7;
  --bg-light-card: #ffffff;

  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-Glow: rgba(41, 151, 255, 0.28);
  --whatsapp: #25d366;

  --text-light: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-muted-dark: #86868b;
  --text-muted-light: #6e6e73;

  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.08);

  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --max-width: 1160px;
  --header-height: 60px;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Temi alternati Apple */
.theme-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.theme-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

section {
  padding: 6.5rem 0;
  position: relative;
}

/* Tipografia Apple */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2997ff;
  margin-bottom: 0.6rem;
}

.theme-light .eyebrow {
  color: var(--accent-blue);
}

.display-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin-bottom: 1.1rem;
}

.text-muted {
  color: var(--text-muted-dark);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.8rem;
}

.section-intro {
  font-size: 1.12rem;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

.theme-light .section-intro,
.section-intro-left {
  color: var(--text-muted-light);
  font-size: 1.08rem;
}

/* Animazioni Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.85s var(--ease-apple), transform 0.85s var(--ease-apple);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* HEADER GLASSMORPHISM */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(12, 13, 18, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.logo span {
  color: #2997ff;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  font-size: 0.84rem;
  color: rgba(245, 245, 247, 0.8);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.8px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* PULSANTI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-apple), background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.88rem 1.7rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: scale(1.02);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.02);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* HERO SECTION */
.hero-section {
  min-height: 96vh;
  padding-top: calc(var(--header-height) + 4rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  top: -15%;
  right: 10%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.apple-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #d2d2d7;
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2997ff;
  box-shadow: 0 0 12px #2997ff;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #99c8ff 50%, #2997ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted-dark);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
}

.titanium-card {
  background: linear-gradient(160deg, #1b1f2a 0%, #0d0f14 100%);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.logo-stage {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.6rem;
}

.logo-stage img {
  max-height: 190px;
  width: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.stat-strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted-dark);
}

/* BENTO GRID SERVIZI */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.bento-card {
  position: relative;
  background: var(--bg-dark-elevated);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  transition: transform 0.35s var(--ease-apple), border-color 0.35s ease;
}

/* Spotlight hover calcolato via JS */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(41, 151, 255, 0.13),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.4);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-content {
  position: relative;
  z-index: 1;
}

.bento-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2997ff;
  margin-bottom: 0.6rem;
}

.badge-urgent {
  color: #ff9f0a;
}

.bento-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
  color: #fff;
}

.bento-card p {
  font-size: 0.96rem;
  color: var(--text-muted-dark);
  max-width: 520px;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.chip {
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d2d2d7;
}

.bento-visual {
  font-size: 3.4rem;
  opacity: 0.85;
  flex-shrink: 0;
}

/* GALLERIA APPLE CAROUSEL */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.2rem;
  gap: 1rem;
}

.slider-controls {
  display: flex;
  gap: 0.6rem;
}

.apple-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #e8e8ed;
  color: #1d1d1f;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apple-circle-btn:hover {
  background: #d2d2d7;
  transform: scale(1.06);
}

.photo-slider {
  width: 100%;
  overflow-x: auto;
  padding: 0.5rem max(1.5rem, calc((100vw - var(--max-width)) / 2)) 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-slider::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.slider-item {
  position: relative;
  width: 340px;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  background: #000;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-apple);
}

.slider-item:hover img {
  transform: scale(1.05);
}

.slider-glass-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(20, 20, 24, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.slider-glass-bar small {
  font-weight: 400;
  color: #a1a1a6;
  font-size: 0.75rem;
}

/* CHI SIAMO PANEL */
.apple-feature-panel {
  background: var(--bg-light-card);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.2rem;
}

.feature-text p {
  color: var(--text-muted-light);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.apple-check-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.apple-check-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.apple-check-list p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

/* RECENSIONI */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.stars {
  color: #ffd60a;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-card p {
  font-size: 1.02rem;
  color: #e5e5ea;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted-dark);
  border-top: 1px solid var(--border-dark);
  padding-top: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

details {
  background: var(--bg-light-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-blue);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.8rem;
  color: var(--text-muted-light);
}

/* FORM PREVENTIVO */
.form-panel {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-light-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row {
  margin-bottom: 1.15rem;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background: #fbfbfd;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
  background: #fff;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted-light);
  margin-top: 0.25rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: #e8f8f0;
  color: #1b7a43;
}

.form-message.error {
  background: #fdf0ed;
  color: #c0392b;
}

/* CONTATTI BENTO */
.contact-bento {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
}

.contact-info-card,
.map-card {
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.map-card {
  padding: 0.6rem;
}

.google-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 22px;
  border: 0;
}

.contact-block {
  margin-bottom: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2997ff;
  margin-bottom: 0.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* FOOTER */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.82rem;
  color: var(--text-muted-dark);
  text-align: center;
}

/* BARRA FLOTTANTE MOBILE iOS */
.ios-bottom-bar {
  display: none;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.lightbox.show {
  display: flex;
}

.lightbox-stage {
  max-width: 90%;
  max-height: 88vh;
  text-align: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
}

#lightbox-caption {
  color: #d2d2d7;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner,
  .apple-feature-panel,
  .contact-bento,
  .bento-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 16, 22, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-open .nav-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    font-size: 1.1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .apple-feature-panel {
    padding: 2rem 1.4rem;
  }

  .ios-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 0.55rem;
    border-radius: 999px;
    background: rgba(20, 22, 28, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 995;
  }
}