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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f7;
  color: #1c1c1e;
  line-height: 1.6;
}

/* PRELOADER MINIMAL */
.preloader-minimal {
  position: fixed;
  inset: 0;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader-minimal.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-minimal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: #4b5563;
}

.preloader-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(156, 163, 175, 0.4);
  border-top-color: #2563eb;
  animation: preloader-spin 0.9s linear infinite;
}

.preloader-minimal p {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Animazione rotazione */
@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}


/* LAYOUT GENERALE */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

main {
  padding-bottom: 3rem;
}

/* HEADER + NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 0.75rem;
}

/* HERO typing effect */
.hero-keywords {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: #6b7280;
  min-height: 1.1rem;
}

.hero-typing-caret {
  display: inline-block;
  margin-left: 2px;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}

/* HERO entrance animation */
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-keywords,
.hero .hero-actions,
.hero .hero-stats,
.hero .hero-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero.hero-loaded .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.hero.hero-loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}
.hero.hero-loaded .hero-keywords {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}
.hero.hero-loaded .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}
.hero.hero-loaded .hero-stats {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.hero.hero-loaded .hero-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* REVEAL a cascata più ricco */
.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header shrink on scroll */
header.header-shrink .navbar {
  padding: 0.35rem 0;
}
header.header-shrink .logo-img {
  height: 34px;
}
header.header-shrink .logo div:first-child {
  font-size: 0.95rem;
}

/* Testimonianze */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.testimonial-text {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.testimonial-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Documenti utili */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.docs-card {
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.docs-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.docs-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.7rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  overflow: hidden;
}

.faq-item-header {
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #111827;
}

.faq-icon {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-left: 0.8rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-item-body {
  padding-bottom: 0.8rem;
}

.faq-item-body p {
  font-size: 0.86rem;
  color: #4b5563;
  padding-top: 0.35rem;
}

/* Dark mode */
body.dark-mode {
  background-color: #020617;
  color: #e5e7eb;
}

body.dark-mode header {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.9);
}

body.dark-mode .logo div:first-child {
  color: #f9fafb;
}

body.dark-mode .logo small {
  color: #9ca3af;
}

body.dark-mode .nav-links a {
  color: #e5e7eb;
}

body.dark-mode .nav-links a::after {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

body.dark-mode .btn-outline {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .btn-outline:hover {
  background: #111827;
}

body.dark-mode .card,
body.dark-mode .post-card,
body.dark-mode .contact-box,
body.dark-mode .text-block,
body.dark-mode .testimonial-card,
body.dark-mode .docs-card,
body.dark-mode .faq-item {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

body.dark-mode .hero-card {
  background: radial-gradient(circle at top left, #1e293b, #020617 60%, #020617 100%);
  border-color: rgba(55, 65, 81, 0.9);
}

body.dark-mode .hero-subtitle,
body.dark-mode .hero-meta span,
body.dark-mode .hero-stat,
body.dark-mode .section-heading p,
body.dark-mode .testimonial-text,
body.dark-mode .docs-card p,
body.dark-mode .faq-item-body p {
  color: #9ca3af;
}

body.dark-mode footer {
  border-top-color: rgba(31, 41, 55, 0.9);
}

body.dark-mode footer,
body.dark-mode footer a {
  color: #9ca3af;
}

body.dark-mode .cookie-banner {
  background: rgba(15, 23, 42, 0.98);
}

/* Shrink + mobile tweaks per dark mode verranno ereditati */

/* LOGO + LOGO IMMAGINE */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #111827;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

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

.logo div:first-child {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo small {
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

/* NAV DESKTOP */
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  opacity: 0.8;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 0.2s ease;
}

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

/* BOTTONI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  gap: 0.35rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.34);
}

.btn-outline {
  background: #fff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-outline:hover {
  background: #f3f4f6;
}

/* NAV MOBILE (HAMBURGER) */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.22s ease, opacity 0.16s ease;
  transform-origin: center;
}

/* Stato “X” perfettamente centrato */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* HERO HOME */
.hero {
  padding: 3rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e5f0ff;
  color: #1d4ed8;
  margin-bottom: 0.9rem;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.hero h1 span.highlight {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  color: #4b5563;
  margin-bottom: 1.3rem;
}

.hero-subtitle strong {
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.hero-meta strong {
  color: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.75rem;
}

.hero-stat {
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-stat strong {
  display: block;
  font-size: 1.1rem;
  color: #111827;
}

/* HERO CARD */
.hero-card {
  background: radial-gradient(circle at top left, #dbeafe, #eff6ff 45%, #ffffff 100%);
  border-radius: 1.7rem;
  padding: 1.4rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-card-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hero-photo {
  border-radius: 1.35rem;
  overflow: hidden;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #0f172a;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.hero-card-footer {
  font-size: 0.8rem;
  color: #4b5563;
}

/* SEZIONI GENERICHE */
section {
  padding: 3rem 0;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  display: block;
  margin-bottom: 0.3rem;
}

.section-heading h2 {
  font-size: 1.45rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.section-heading p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* CARDS GENERICHE */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.card {
  background: #fff;
  border-radius: 1.3rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  margin-bottom: 0.7rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

.card p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* TIMELINE */
.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.7);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.timeline-item {
  margin-bottom: 0.9rem;
}

.timeline-item span {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
}

.timeline-item h4 {
  font-size: 0.95rem;
  color: #111827;
}

/* ARTICOLI / POST LISTA */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.post-card {
  background: #fff;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}

.post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.post-body h3 {
  font-size: 0.98rem;
  color: #111827;
}

.post-body p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* CONTATTI */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-box {
  background: #fff;
  border-radius: 1.3rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* FORM */
.form-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* BOX TESTO LARGO */
.text-block {
  background: #fff;
  border-radius: 1.3rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* FOOTER */
footer {
  padding: 1.7rem 0 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-inner a {
  color: #2563eb;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ANIMAZIONI (reveal, hover, hero) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.card,
.post-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.hero-photo img {
  animation: fadeIn 0.8s ease-out both;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 0.9rem 0;
  display: none;
}

.cookie-banner-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.cookie-banner-inner a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner .btn {
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
}

/* BOTTONE TORNA SU */
#back-to-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top svg {
  width: 16px;
  height: 16px;
}

/* NAV RESPONSIVE & MOBILE TWEAKS */
@media (max-width: 900px) {
  .navbar {
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.4rem;
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-primary {
    padding-inline: 0.9rem;
  }

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

  .hero {
    padding-top: 2.4rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-meta {
    font-size: 0.82rem;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-card {
    max-width: 440px;
    margin: 0 auto;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .logo-img {
    height: 38px;
  }
}

/* MOBILE PIÙ STRETTO */
@media (max-width: 600px) {
  section {
    padding: 2.2rem 0;
  }

  .hero {
    padding: 2.2rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 1rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    font-size: 0.78rem;
  }

  .logo {
    gap: 0.45rem;
  }

  .logo small {
    font-size: 0.68rem;
  }

  .cookie-banner-inner {
    font-size: 0.78rem;
  }

  #back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .logo {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .logo-img {
    height: 32px !important;
  }

  .logo div {
    max-width: 150px;
    line-height: 1.15;
  }

  .logo div:first-child {
    font-size: 0.82rem !important;
  }

  .logo small {
    font-size: 0.63rem !important;
    line-height: 1.1;
  }
}
/* QUICK CONTACT FLOATING BUTTON */
.quick-contact-btn {
  position: fixed;
  bottom: 1.3rem;
  left: 1.3rem;
  z-index: 39;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-contact-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* MODAL QUICK CONTACT */
.quick-contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.quick-contact-modal-backdrop.open {
  display: flex;
}

.quick-contact-modal {
  width: min(420px, 90%);
  background: #ffffff;
  border-radius: 1.3rem;
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  position: relative;
}

.quick-contact-modal h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.quick-contact-modal p {
  font-size: 0.9rem;
  color: #4b5563;
}

.quick-contact-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
}

/* Mobile: icone un po' più piccole e pulsante meno invadente */
@media (max-width: 600px) {
  .quick-contact-btn {
    bottom: 1.1rem;
    left: 1rem;
    padding-inline: 0.8rem;
    font-size: 0.78rem;
  }

  .quick-contact-modal {
    padding: 1.2rem 1.2rem 1.1rem;
  }

  .quick-contact-modal h3 {
    font-size: 0.98rem;
  }

  .quick-contact-modal p {
    font-size: 0.86rem;
  }
}

/* RECAPITI DIRETTI */
.contact-direct {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.contact-direct-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.contact-direct-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contact-direct-item a {
  color: #2563eb;
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .contact-direct {
    flex-direction: column;
  }
}
/* SEDI OPERATIVE – layout carino con mappe */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.4rem;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 0.8rem;
  align-items: stretch;
  padding: 0.8rem 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.location-info {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.location-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon svg {
  width: 18px;
  height: 18px;
}

.location-info h4 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.location-info p {
  font-size: 0.85rem;
  color: #6b7280;
}

.location-map {
  display: flex;
  align-items: stretch;
}

.location-map .map-frame {
  width: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #e5e7eb;
  height: 180px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile: impila testo + mappa */
@media (max-width: 800px) {
  .location-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map .map-frame {
    height: 200px;
  }
}

