@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Hind+Vadodara:wght@400;600;700&family=Saira+Condensed:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 15px;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

main { flex: 1; overflow-y: auto; }

/* ── COLOR UTILITIES ── */
.t-green    { color: #3d7a3d; }
.t-teal     { color: #007a70; }
.t-cyan     { color: #00bcd4; }
.t-pink     { color: #d81b60; }
.t-orange   { color: #ff8c00; }
.t-maroon   { color: #7b1c00; }
.t-blue     { color: #1565c0; }
.t-purple   { color: #6a1b9a; }
.t-gray     { color: #999; }

/* ── HEADER ── */
header { background: white; position: relative; flex-shrink: 0; z-index: 200; }

.header-wave-wrap {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: white;
}

.header-wave-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.header-wave-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, white);
  z-index: 5;
  pointer-events: none;
}

.header-logo {
  position: absolute;
  bottom: 8px;
  left: 22px;
  z-index: 10;
}
.header-logo img { height: 96px; width: auto; }

/* ── NAV ── */
nav {
  background: linear-gradient(to bottom, #ff9000 0%, #cc1a5e 100%);
  padding: 7px 22px;
}

nav ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; }

.nav-sep { color: #6d2200; padding: 0 6px; font-weight: 700; font-size: 13px; line-height: 1; }

nav ul li > a,
nav ul li > .dropdown-toggle {
  color: #f5e6c8;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 1px;
  cursor: pointer;
  display: inline-block;
  user-select: none;
  border: none;
  background: transparent;
}

nav ul li > a:hover,
nav ul li > a.active,
nav ul li > .dropdown-toggle:hover { color: #ffc84a; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dropdown-arrow { font-size: 7px; margin-top: 1px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -6px;
  background: white;
  min-width: 195px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  border-top: 3px solid #ff8c00;
}

.dropdown-menu li { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  color: #333;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: #ff8c00; color: white; }

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }

/* ── PAGE HERO SECTION ── */
.page-hero {
  padding: 42px 60px 12px;
  text-align: center;
  max-width: 1350px;
  margin: 0 auto;
}

/* Titoli SVG da Illustrator — allineati alla colonna testo */
.title-align {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
}
.title-align-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}
.title-align-storia {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}
.title-align > *:first-child,
.title-align-half > *:first-child,
.title-align-storia > *:first-child {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Quando i wrapper sono figli diretti di main (es. dots-sep),
   devono avere gli stessi margini/padding del content-wrap */
main > .title-align,
main > .title-align-half,
main > .title-align-storia {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 60px;
}
.title-img {
  display: block;
  height: 155px;
  width: auto;
  max-width: 100%;
}

/* Split title: big word left + descriptors right */
.title-split {
  font-family: 'Bebas Neue', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 0.92;
  letter-spacing: 1px;
}

.ts-main  { font-size: 5.6em; }
.ts-right { display: flex; flex-direction: column; text-align: left; }
.ts-right span { display: block; line-height: 1.05; }
.ts-xl  { font-size: 2.6em; }
.ts-lg  { font-size: 2em; }
.ts-md  { font-size: 1.6em; }
.ts-sm  { font-size: 1.2em; }

/* Stacked title */
.title-stack {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.93;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.title-stack span { display: block; }
.tst-xxl { font-size: 5.5em; }
.tst-xl  { font-size: 4.2em; }
.tst-lg  { font-size: 3.2em; }
.tst-md  { font-size: 2.2em; }
.tst-sm  { font-size: 1.4em; }

/* Sub-heading under title */
.page-subheading {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ff8c00;
  margin-top: 10px;
}

/* ── DOTS SEPARATOR ── */
.dots-sep {
  text-align: center;
  padding: 12px 0 28px;
}
.dots-sep i {
  display: inline-block;
  width: 9px; height: 9px;
  background: #ff8c00;
  border-radius: 50%;
  margin: 0 3px;
}

/* ── SERVICE CONTENT (2 columns) ── */
.content-wrap {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 60px 65px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
  align-items: start;
}

.content-text h2 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #007a70;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.content-text p {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  text-align: justify;
}

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

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(180,180,205,0.38);
  z-index: 1;
}

@keyframes claim-rise {
  0% {
    transform: translateY(65vh);
    font-size: 20px;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    font-size: 63px;
    opacity: 1;
  }
}

.home-hero-claim {
  position: relative;
  z-index: 2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 63px;
  font-weight: 300;
  color: #444;
  text-align: center;
  padding: 20px 40px;
  letter-spacing: 2px;
  text-shadow: 0 0 55px rgba(60, 60, 60, 0.65);
  animation: claim-rise 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ── CONTATTI ── */
.contatti-section {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.contatti-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.contatti-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 45px 60px 55px;
}

.contatti-info h3 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #007a70;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 22px;
  margin-bottom: 4px;
}
.contatti-info h3:first-child { margin-top: 0; }

.contatti-info p,
.contatti-info a {
  color: #00bcd4;
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  display: block;
}

.form-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: #ff8c00;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.form-box input[type=text],
.form-box input[type=email],
.form-box input[type=tel],
.form-box textarea {
  width: 100%;
  padding: 11px 20px;
  border: 1.5px solid #bbb;
  border-radius: 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  background: rgba(255,255,255,0.92);
  margin-bottom: 9px;
  outline: none;
  transition: border-color 0.2s;
  color: #333;
}
.form-box input::placeholder,
.form-box textarea::placeholder { color: #888; }
.form-box input:focus,
.form-box textarea:focus { border-color: #ff8c00; }

.form-box textarea {
  border-radius: 12px;
  min-height: 130px;
  resize: vertical;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 20px;
  font-size: 13px;
  color: #333;
  background: rgba(255,255,255,0.7);
  padding: 6px 10px;
  border-radius: 6px;
}
.form-privacy input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }

.btn-submit {
  display: block;
  margin: 0 auto;
  background: #ff8c00;
  color: white;
  border: none;
  padding: 13px 75px;
  border-radius: 26px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #e07a00; }

.form-msg {
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-msg.success { background: rgba(232,245,233,0.95); color: #2e7d32; border: 1px solid #a5d6a7; }
.form-msg.error   { background: rgba(255,235,238,0.95); color: #c62828; border: 1px solid #ef9a9a; }

/* ── DOVE SIAMO ── */
.dove-wrap {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 60px 65px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}

.dove-wrap p {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  text-align: justify;
}

.dove-gmaps-wrap {
  max-width: 1350px;
  margin: 22px auto 0;
  padding: 0 60px;
}

.dove-gmaps {
  width: 100%;
  height: 440px;
  border: none;
  display: block;
  border-radius: 12px;
}

.dove-map img { width: 100%; height: auto; display: block; }

.dove-caption {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  max-width: 1350px;
  margin: 28px auto 4px;
  padding: 0 60px;
}

/* ── STORIA ── */
.storia-wrap {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 60px 65px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.storia-wrap p {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  text-align: justify;
}

.storia-wrap p:first-child { font-weight: 600; }

.storia-deco {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 110px;
  line-height: 0.88;
  color: rgba(0,0,0,0.07);
  text-align: center;
  word-break: break-all;
  user-select: none;
  padding-top: 20px;
}

.since-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

/* ── GALLERY ── */
.gallery-section {
  max-width: 1350px;
  margin: 0 auto;
  padding: 10px 60px 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: border-color 0.2s;
}
.gallery-item:hover { border-color: #ff8c00; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.gallery-item:hover img { transform: scale(1.07); }

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9990;
  justify-content: center;
  align-items: center;
}
#lightbox.active { display: flex; }

#lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none; border: none;
  color: white; font-size: 42px;
  cursor: pointer; line-height: 1;
  opacity: 0.8; transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }

#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  font-size: 38px; line-height: 1;
  padding: 12px 18px;
  cursor: pointer; border-radius: 4px;
  transition: background 0.2s;
}
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,140,0,0.7); }
#lightbox-prev { left: 18px; }
#lightbox-next { right: 18px; }

/* ── FOOTER ── */
footer {
  background: #ff8c00;
  color: white;
  padding: 10px 60px 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

footer h4 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

footer p, footer address {
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 17px;
  line-height: 1.3;
  font-style: normal;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 17px;
  line-height: 1.3;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; text-decoration: underline; }

.footer-copy {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #5d2e00;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,15,15,0.96);
  color: white;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 13.5px;
  border-top: 3px solid #ff8c00;
}

.cookie-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cookie-text strong:first-child {
  font-size: 15px;
  color: #ff8c00;
  letter-spacing: 0.3px;
}

.cookie-text span {
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

.cookie-text em { font-style: normal; color: #ffd080; font-weight: 600; }
.cookie-text strong { color: #ffd080; }

.cookie-text a {
  color: #ff8c00;
  font-size: 12px;
  text-decoration: underline;
  margin-top: 2px;
  width: fit-content;
}
.cookie-text a:hover { color: #ffd080; }

#cookie-banner button {
  background: #ff8c00;
  color: white;
  border: none;
  padding: 10px 28px;
  cursor: pointer;
  border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
#cookie-banner button:hover { background: #e07a00; }
#cookie-banner.hidden { display: none; }

/* ── PRIVACY PAGE ── */
.content-wrap h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #cc1a5e;
  letter-spacing: 1.5px;
  margin: 28px 0 8px;
}
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap ul {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 6px 0 12px 24px;
  color: #333;
}
.content-wrap ul li { margin-bottom: 4px; }
.content-wrap p a { color: #cc1a5e; text-decoration: underline; }
.content-wrap p a:hover { color: #ff8c00; }

/* ── RESPONSIVE ── */
@media (max-width: 950px) {
  .content-grid, .contatti-inner, .dove-wrap, .storia-wrap,
  .title-align, .title-align-half, .title-align-storia {
    grid-template-columns: 1fr;
  }
  .title-align > *:last-child,
  .title-align-half > *:last-child,
  .title-align-storia > *:last-child { display: none; }
  .content-wrap, .dove-wrap, .storia-wrap { padding: 0 22px 45px; }
  .page-hero { padding: 30px 22px 10px; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 16px 24px 12px; flex-wrap: wrap; }
  .footer-copy { width: 100%; text-align: left; margin-top: 8px; }
  .contatti-inner { padding: 32px 24px 45px; }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-section { padding: 10px 22px 40px; }
  .title-split { flex-direction: column; gap: 4px; text-align: center; }
  .ts-right { text-align: center; }
}

@media (max-width: 600px) {
  .header-wave-wrap { height: 88px; }
  .header-logo img { height: 72px; }
  nav { padding: 6px 14px; }
  nav ul li > a, nav ul li > .dropdown-toggle { font-size: 12px; }
  .nav-sep { padding: 0 4px; }
  .home-hero-claim { font-size: 36px; letter-spacing: 1px; }
  .ts-main { font-size: 3.5em; }
  .tst-xxl { font-size: 3.5em; }
}
