/* Plus Jakarta Sans (SIL Open Font License 1.1, vedi fonts/OFL.txt), servito dal nostro dominio */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #1F5E52;
  --green-dark: #154238;
  --green-mid: #2D6F62;
  --mint: #E3EEE9;
  --mint-2: #DCE9E3;
  --ink: #18292B;
  --muted: #4F6360;
  --muted-2: #3E5A54;
  --line: #D5E2DC;
  --line-2: #C9DCD3;
  --input-line: #B9CEC5;
  --bg: #F4F7F5;
  --card: #FBFDFC;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-ink: #0A3B20;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.icon { flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700;
  border-radius: 999px; min-height: 44px; border: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); padding: 12px 20px; }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1fbe5b; color: var(--wa-ink); }
.btn-lg { padding: 16px 26px; min-height: 52px; }
.btn-light { background: var(--white); color: var(--green-dark); padding: 12px 20px; border: 1px solid var(--line); }
.btn-light:hover { background: var(--bg); color: var(--green-dark); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.main-nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.main-nav a:not(.btn):hover { color: var(--green); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; background: var(--mint); color: var(--green-dark);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); padding-top: 8px; }
.hero-facts span { display: flex; align-items: center; gap: 8px; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero-badge {
  position: absolute; left: -16px; bottom: 28px; background: var(--white);
  border-radius: 18px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(21, 66, 56, 0.14);
  display: flex; align-items: center; gap: 14px;
}
.hero-badge strong { display: block; font-weight: 800; font-size: 17px; }
.hero-badge small { font-size: 13px; color: var(--muted); }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Photo placeholders */
.photo {
  border-radius: 20px; background: var(--mint-2); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  color: var(--muted-2); font-weight: 600; font-size: 14px;
}
.photo-hero { width: 100%; height: 460px; border-radius: 28px; object-fit: cover; object-position: center 40%; }
.brand img { height: 60px; width: auto; }
.brand .brand-sub { border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.35; }

/* Sections */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section h2 { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
.section-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 340px; line-height: 1.6; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.service {
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; background: var(--card);
}
.service .icon-tile { width: 48px; height: 48px; border-radius: 14px; }
.service h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.service p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); flex-grow: 1; }
.service a { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

.centered-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.section .centered-head h2 { font-size: 36px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step {
  background: var(--white); border-radius: 20px; padding: 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.step-num { font-size: 32px; font-weight: 800; color: var(--green); }
.step h3 { margin: 0; font-size: 19px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

/* About */
.about { background: var(--green); color: var(--white); }
.about .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about .wrap { flex-wrap: nowrap; align-items: center; }
.about-photo { flex: 0 0 320px; width: 320px; height: 400px; border-radius: 24px; object-fit: cover; object-position: center 15%; background: var(--green-mid); }
.about-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about .eyebrow { color: #BFE0D3; }
.about h2 { margin: 0; font-size: 40px; letter-spacing: -0.02em; }
.about p { margin: 0; font-size: 18px; line-height: 1.6; color: #E4F1EC; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #E4F1EC; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: "✓"; color: #9FD4BF; }
.btn-outline-light {
  align-self: flex-start; color: var(--white); border: 2px solid #9FD4BF; padding: 12px 22px;
}
.btn-outline-light:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* Video */
.video-section { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); align-items: center; gap: 48px; }
.video-copy { min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.video-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.section .video-copy h2 { font-size: 36px; }
.video-frame { min-width: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 20px 50px rgba(21, 66, 56, 0.18); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-poster { position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); display: block; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
@media (max-width: 960px) {
  .video-section { grid-template-columns: minmax(0, 1fr); }
  .video-frame { order: -1; }
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 999px; background: var(--white); color: var(--green);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-poster:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Galleria a carosello */
.carousel { display: flex; flex-direction: column; gap: 14px; }
.carousel-stage { position: relative; background: var(--ink); border-radius: 24px; overflow: hidden; }
.carousel-main { margin: 0; }
.carousel-open { display: block; width: 100%; height: 560px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.carousel-open img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease; }
.carousel-open img.is-loading { opacity: 0.3; }
.carousel-open:focus-visible { outline: 3px solid var(--wa); outline-offset: -3px; }
.carousel-main figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 24px 16px;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-end;
  background: linear-gradient(transparent, rgba(12, 24, 22, 0.75)); color: var(--white); font-size: 15px; font-weight: 600;
  pointer-events: none;
}
.carousel-count { font-weight: 500; font-size: 14px; opacity: 0.85; white-space: nowrap; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn:focus-visible { outline: 3px solid var(--wa); outline-offset: 2px; }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-thumbs { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel-thumbs li { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-thumbs a { display: block; width: 84px; height: 112px; border-radius: 12px; overflow: hidden; border: 3px solid transparent; opacity: 0.65; transition: opacity 0.2s ease; }
.carousel-thumbs a:hover { opacity: 1; }
.carousel-thumbs a[aria-current="true"] { border-color: var(--green); opacity: 1; }
.carousel-thumbs a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 24, 22, 0.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 72px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #E4F1EC; font-size: 15px; text-align: center; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lb-close { top: 16px; right: 16px; font-size: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.section h2.h-sm { font-size: 32px; }
.section.tight { gap: 28px; }

/* Contacts */
.contacts { background: var(--white); border-top: 1px solid var(--line); }
.contacts .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; }
.contacts-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contacts h2 { margin: 0; font-size: 36px; letter-spacing: -0.02em; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-grid div { display: flex; flex-direction: column; gap: 4px; }
.contact-grid .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-grid .value { font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.hours { border-collapse: collapse; font-size: 15px; width: 100%; max-width: 440px; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.hours tr { border-top: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 1px solid var(--line); }
.hours th { text-align: left; padding: 10px 0; font-weight: 600; }
.hours td { padding: 10px 0; text-align: right; }
.map {
  position: relative; flex: 1 1 420px; min-width: 0; min-height: 400px; border-radius: 24px; overflow: hidden;
  background: var(--mint); border: 1px solid var(--line-2);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; color: var(--muted-2);
  background:
    linear-gradient(90deg, rgba(31, 94, 82, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(31, 94, 82, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--mint);
}
.map-placeholder strong { color: var(--ink); font-size: 17px; }
.map-placeholder p { margin: 0; font-size: 13px; max-width: 320px; line-height: 1.5; }
.map-pin { width: 56px; height: 56px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(21, 66, 56, 0.15); }
.map-link { position: absolute; left: 16px; bottom: 16px; z-index: 1; box-shadow: 0 8px 24px rgba(21, 66, 56, 0.25); }

/* Footer */
.site-footer { background: var(--green-dark); color: #CFE3DB; font-size: 14px; }
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 16px; line-height: 1.6;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer .wrap { align-items: center; }
.footer-logo { background: var(--white); border-radius: 12px; padding: 8px 12px; height: 70px; width: auto; box-sizing: content-box; }
.site-footer a { color: var(--white); }

.wa-float {
  position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(10, 59, 32, 0.3); z-index: 10;
}
.wa-float:hover { color: var(--wa-ink); transform: translateY(-2px); }

@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .photo-hero { height: 320px; }
  .hero-badge { left: 12px; right: 12px; bottom: 16px; }
  .section, .about .wrap, .contacts .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section h2, .about h2 { font-size: 30px; }
  .section .centered-head h2, .contacts h2 { font-size: 28px; }
  .about .wrap { flex-wrap: wrap; gap: 28px; }
  .about-photo { flex: 0 0 auto; width: 200px; height: 250px; }
  .carousel-open { height: 420px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 26px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-main figcaption { padding: 28px 16px 12px; font-size: 14px; }
  .map { min-height: 320px; }
  .brand img { height: 48px; }
  .video-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .video-frame { border-radius: 18px; }
  .section .video-copy h2 { font-size: 28px; }
  .lightbox figure { padding: 64px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .wa-float { right: 16px; bottom: 16px; }
}

/* Pagine legali */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 80px; line-height: 1.65; font-size: 16px; }
.legal h1 { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.legal h3 { margin: 20px 0 6px; font-size: 17px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal-lead { font-size: 18px; color: var(--muted); }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 24px; margin: 24px 0 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-table { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.legal-table thead th { border-top: 0; background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.legal code { background: var(--mint); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.site-footer nav a[aria-current="page"] { text-decoration: none; opacity: 0.8; }
@media (max-width: 720px) {
  .legal { padding-top: 32px; padding-bottom: 56px; }
  .legal h1 { font-size: 30px; }
  .legal-toc ol { columns: 1; }
}
