/* =========================================================
   IDEA IDRAULICA - Stylesheet
   Palette: bianco / azzurro, design pulito e professionale
   Mobile-first, breakpoint a 768px e 1024px
   ========================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0a84d6;
  --primary-dark: #0663a3;
  --primary-light: #e6f2fb;
  --primary-soft: #f4f9fd;
  --bg: #ffffff;
  --text: #1a2634;
  --muted: #5c6b7a;
  --border: #e3ebf2;
  --success: #25d366;
  --shadow-sm: 0 2px 8px rgba(10, 132, 214, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 132, 214, 0.12);
  --shadow-lg: 0 16px 40px rgba(10, 132, 214, 0.16);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  letter-spacing: 0.01em;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.0625rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-whatsapp:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
  min-height: 40px;
}

/* ---------- Header & Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 40px;
  width: auto;
}

.logo:hover {
  color: var(--primary);
}

/* Desktop nav */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a,
.main-nav .nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav .nav-toggle:hover,
.main-nav .nav-toggle[aria-expanded="true"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.nav-toggle[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.header-cta {
  display: none;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--primary-light);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(85%, 360px);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.25rem 5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
}

.mobile-drawer[data-open="true"] {
  transform: translateX(0);
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer > ul > li > a,
.mobile-drawer > ul > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-align: left;
}

.mobile-drawer > ul > li > a:hover,
.mobile-drawer > ul > li > button:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.mobile-drawer .sub-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 0.75rem;
}

.mobile-drawer .sub-list[data-open="true"] {
  max-height: 300px;
}

.mobile-drawer .sub-list a {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  display: block;
  border-radius: var(--radius-sm);
}

.mobile-drawer .sub-list a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.chevron {
  transition: transform var(--transition);
}

button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-drawer .drawer-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.drawer-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(26, 38, 52, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 98;
}

.drawer-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
  .mobile-drawer,
  .drawer-overlay {
    display: none;
  }
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  min-height: 52px;
}

.mobile-call-bar .call {
  background: var(--primary);
}

.mobile-call-bar .wa {
  background: var(--success);
}

body.has-mobile-bar {
  padding-bottom: 52px;
}

@media (min-width: 1024px) {
  .mobile-call-bar {
    display: none;
  }
  body.has-mobile-bar {
    padding-bottom: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 60%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(10, 132, 214, 0.18),
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
}

.hero h1 span {
  color: var(--primary);
}

.hero .lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.72;
  max-width: 540px;
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  max-height: min(72vh, 560px);
  margin-inline: auto;
  max-width: 420px;
  background: var(--primary-light);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media--logo {
  aspect-ratio: auto;
  max-height: none;
  max-width: min(100%, 480px);
  padding: 1.5rem 1.25rem;
  overflow: visible;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.hero-media--logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .hero-media {
    max-width: none;
  }

  .hero-media--logo {
    max-width: min(100%, 400px);
    padding: 1.25rem 1rem;
  }
}

/* CTA hero nascoste su tablet/phone: stessi contatti nella barra fissa in basso */
@media (max-width: 1024px) {
  .hero .hero-ctas {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .hero .hero-ctas {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 0 6rem;
  }
  .hero .container {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Trust stats ---------- */
.stats {
  padding: 1.75rem 0;
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  /* Mobile: 2 in alto, la terza riga centrata sotto */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  width: 100%;
  margin-inline: auto;
  justify-items: center;
}

.stats-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-height: 88px;
}

.stats-grid > div:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: min(100%, 280px);
}

.stat-value {
  font-family: "Poppins", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.stat-label {
  display: block;
  margin-top: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    align-items: center;
  }

  .stats-grid > div:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }

  .stats-grid > div {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .stats {
    padding: 2rem 0;
  }

  .stat-value {
    font-size: 2.75rem;
  }
}

/* ---------- About ---------- */
.about {
  background: #fff;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about h2 {
  margin-bottom: 1rem;
}

.about p + p {
  margin-top: 0.875rem;
}

.about-points {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.about-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
}

.about-points .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Services ---------- */
.services {
  background: var(--primary-soft);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service-card h3 {
  font-size: 1.375rem;
}

.service-card > p {
  flex-grow: 0;
}

.service-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-grow: 1;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.service-card .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

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

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

/* ---------- Gallery ---------- */
.gallery-subheading {
  position: relative;
  font-size: 1.25rem;
  letter-spacing: 0.015em;
  color: var(--text);
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.gallery-subheading + .gallery-grid {
  margin-bottom: 2.75rem;
}

.gallery-grid + .gallery-subheading {
  margin-top: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: var(--primary-light);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "+";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox button {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox .lb-close {
  top: 1rem;
  right: 1rem;
}

.lightbox .lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Areas ---------- */
.areas {
  background: #fff;
}

.areas-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.areas-list li {
  padding: 0.625rem 0.875rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  text-align: center;
}

.areas-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  background: var(--primary-light);
}

.areas-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .areas-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--primary-soft);
}

.testi-grid {
  display: grid;
  gap: 1.25rem;
}

.testi-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  color: #f5a623;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.testi-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.testi-author strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
}

.testi-author span {
  color: var(--muted);
  font-size: 0.8125rem;
}

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

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

/* ---------- Contact ---------- */
.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--primary-soft);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item .icon svg {
  width: 22px;
  height: 22px;
}

.contact-item strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.contact-item a,
.contact-item span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.contact-cta h3 {
  color: #fff;
  font-size: 1.5rem;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-cta .btn {
  align-self: flex-start;
}

.contact-cta .btn-primary {
  background: #fff;
  color: var(--primary);
}

.contact-cta .btn-primary:hover {
  background: #f0f7fc;
  color: var(--primary-dark);
}

.contact-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.contact-cta .btn-ghost:hover {
  background: #fff;
  color: var(--primary);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col .logo:hover {
  color: #fff;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.socials {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}

.socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-cookie-line {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Utilities & animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Pagina informativa privacy / cookie ---------- */
.legal-back {
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.legal-main {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  min-height: 70vh;
  background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 35%);
}

.legal-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-inner h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-inner section {
  margin-bottom: 1.75rem;
}

.legal-inner h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--text);
  margin-bottom: 0.65rem;
}

.legal-inner ul {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem;
}

.legal-inner .legal-muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

body.page-legal .main-nav {
  display: block;
}

.site-footer--legal {
  padding: 2rem 0;
}

.site-footer--legal .footer-legal-minimal {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer--legal .footer-legal-minimal a {
  color: rgba(255, 255, 255, 0.85);
}
