/*
Theme Name: Sciacca Tour
Theme URI: https://sciaccatour.it
Author: Meteora Web
Description: Tema custom per Sciacca Tour - Tour in Ape Green e NCC a Sciacca
Version: 1.0
*/

:root {
  --blue: #0077b6;
  --blue-dark: #005f92;
  --orange: #e07200;      /* contrast fix: 4.6:1 su bianco (era #f77f00 = 3:1) */
  --orange-dark: #c45f00;
  --dark: #1a2535;
  --light: #f8f5f0;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,127,0,.3); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ── Header / Nav ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .3s;
}

#site-header.scrolled {
  background: var(--dark);
  padding: .6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 50px; width: auto; border-radius: 8px; }
.site-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.site-logo-text span { color: var(--orange); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  padding-bottom: .2rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s;
}

.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 3px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all .3s;
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,60,.75) 0%, rgba(0,119,182,.4) 60%, rgba(247,127,0,.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(247,127,0,.9);
  color: var(--white);
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ── Stats Bar ── */
#stats {
  background: var(--dark);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { padding: 1rem; }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .3rem;
}

/* ── Chi Siamo (home preview) ── */
#chi-siamo-preview {
  background: var(--light);
}

.chisiamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.chisiamo-image {
  position: relative;
}

.chisiamo-image img {
  border-radius: 4px;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.chisiamo-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

.chisiamo-image-badge strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

.chisiamo-text .section-title { text-align: left; }
.chisiamo-text .section-label { text-align: left; }

.chisiamo-text p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 600;
}

.feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Tours ── */
#tours { background: var(--white); }

.tours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.tour-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  background: var(--white);
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.tour-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.tour-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.tour-card:hover .tour-card-image img { transform: scale(1.05); }

.tour-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.tour-duration {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,.7);
  color: var(--white);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}

.tour-card-body { padding: 1.8rem; }

.tour-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: .8rem;
  color: var(--dark);
}

.tour-card-body p {
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-light);
  font-size: .82rem;
  color: var(--gray);
}

.tour-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.tour-number {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--orange);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

/* ── Perché noi ── */
#perche-noi {
  background: var(--dark);
  color: var(--white);
}

#perche-noi .section-title { color: var(--white); }

.perche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.perche-card {
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .3s, transform .3s;
}

.perche-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.perche-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.perche-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .8rem;
}

.perche-card p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

/* ── Gallery ── */
#gallery-preview { background: var(--light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,119,182,.5);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Servizi ── */
#servizi { background: var(--white); }

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.servizio-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  transition: all .3s;
}

.servizio-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px rgba(0,119,182,.1);
  transform: translateY(-4px);
}

.servizio-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.servizio-card h3 {
  font-size: 1.2rem;
  margin-bottom: .8rem;
  color: var(--dark);
}

.servizio-card p {
  color: var(--gray);
  font-size: .9rem;
}

/* ── CTA Band ── */
#cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, var(--dark) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

#cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

#cta-band p {
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Contatti ── */
#contatti { background: var(--light); }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contatti-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
  margin-bottom: .2rem;
}

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

/* ── Contact Form ── */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  transition: border-color .2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

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

/* ── Footer ── */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: .9rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-text span { color: var(--orange); }

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col li { margin-bottom: .6rem; }

.footer-col a {
  font-size: .9rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--orange); }

.social-links {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
}

.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  font-size: .9rem;
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a:hover { color: var(--orange); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tours-grid { grid-template-columns: 1fr; }
  .chisiamo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .chisiamo-image-badge { display: none; }
  .contatti-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-grid { grid-template-columns: 1fr; }
  .servizi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .features-list { grid-template-columns: 1fr; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    z-index: 999;
  }
}

/* ── Inner pages ── */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 100%);
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
}

.page-banner p {
  color: rgba(255,255,255,.8);
  margin-top: .8rem;
  font-size: 1.1rem;
}

.page-content { padding: 5rem 0; }

/* Tour detail */
.tour-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tour-gallery-main {
  border-radius: 8px;
  overflow: hidden;
}

.tour-gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.tour-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .5rem;
}

.tour-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}

.tour-thumbs img:hover { opacity: 1; }

.tour-info-box {
  background: var(--light);
  border-radius: 8px;
  padding: 2rem;
}

.tour-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: .9rem;
}

.tour-info-row:last-child { border-bottom: none; }

.tour-info-label { color: var(--gray); font-weight: 700; }

.tour-includes { margin-top: 1.5rem; }

.tour-includes h4 { margin-bottom: .8rem; color: var(--dark); }

.tour-includes li {
  padding: .4rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: .9rem;
  color: var(--gray);
}

.tour-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Gallery page */
.gallery-full {
  columns: 3;
  column-gap: 1rem;
}

.gallery-full-item {
  margin-bottom: 1rem;
  break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-full-item img {
  width: 100%;
  transition: transform .4s;
}

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

@media (max-width: 768px) {
  .gallery-full { columns: 2; }
  .tour-detail-grid { grid-template-columns: 1fr; }
}

/* ── Partner / Collaborazioni ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: all .3s;
}

.partner-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px rgba(0,119,182,.1);
  transform: translateY(-4px);
}

.partner-card-img {
  height: 200px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.partner-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.partner-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--orange);
  margin-bottom: .4rem;
}

.partner-card-body h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: .6rem;
}

.partner-card-body > p {
  color: var(--gray);
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.partner-meta {
  margin-top: auto;
  border-top: 1px solid var(--gray-light);
  padding-top: .9rem;
  display: grid;
  gap: .4rem;
}

.partner-meta li {
  font-size: .82rem;
  color: var(--gray);
}

.partner-meta a { color: var(--blue); font-weight: 600; }
.partner-meta a:hover { color: var(--blue-dark); }

/* ── Flotta Ape (home) ── */
#flotta-ape { background: var(--light); }

.ape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.ape-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 18px rgba(26,37,53,.08);
}

.ape-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

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

.ape-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(26,37,53,.75));
}

@media (max-width: 768px) {
  .partner-grid { grid-template-columns: 1fr; }
  .ape-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
}

/* ══════════════════════════════════ FOOTER LEGAL & COOKIE ══ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.footer-legal-sep {
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}

.footer-legal-link {
  color: rgba(255,255,255,.8);
  transition: color .2s;
}

.footer-legal-link:hover {
  color: var(--orange);
}

.footer-cookie-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color .2s;
}

.footer-cookie-btn:hover {
  color: var(--orange);
}

/* ══════════════════════════════════ PAGINE NORMATIVE (LEGAL) ══ */
.legal-content {
  color: #334155;
  font-size: .95rem;
  line-height: 1.75;
}

.legal-intro-box {
  background: var(--light);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2.2rem;
}

.legal-meta {
  font-size: .85rem;
  color: var(--gray);
  margin-top: .4rem;
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: .4rem;
}

.legal-content h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.6rem 0 .6rem;
}

.legal-content p {
  margin-bottom: 1.15rem;
}

.legal-content ul {
  list-style: disc;
  margin: 0 0 1.4rem 1.4rem;
}

.legal-content li {
  margin-bottom: .45rem;
  padding-left: .2rem;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--blue-dark);
}

.legal-card {
  background: var(--light);
  padding: 1.2rem 1.4rem;
  border-radius: 6px;
  margin: 1.2rem 0;
  border-left: 4px solid var(--blue);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: .88rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--gray-light);
  padding: .75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--light);
  color: var(--dark);
  font-weight: 700;
}

.legal-table code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .82rem;
  color: var(--dark);
  font-family: monospace;
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══════════════════════════════════ COOKIE BANNER & MODALE ══ */
.sciacca-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 -4px 25px rgba(0,0,0,.35);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.sciacca-cookie-banner.active {
  transform: translateY(0);
}

.sciacca-cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sciacca-cookie-body {
  flex: 1;
}

.sciacca-cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sciacca-cookie-text {
  font-size: .85rem;
  line-height: 1.5;
  color: #d1d5db;
  margin: 0;
}

.sciacca-cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.sciacca-cookie-text a:hover {
  color: #7dd3fc;
}

.sciacca-cookie-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
}

.sciacca-btn {
  font-family: 'Lato', sans-serif;
  font-size: .86rem;
  font-weight: 700;
  padding: .65rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sciacca-btn-primary {
  background: var(--orange);
  color: #ffffff;
}

.sciacca-btn-primary:hover {
  background: var(--orange-dark);
}

.sciacca-btn-pref {
  background: #374151;
  color: #f9fafb;
  border: 1px solid #4b5563;
}

.sciacca-btn-pref:hover {
  background: #4b5563;
}

.sciacca-btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #6b7280;
}

.sciacca-btn-outline:hover {
  border-color: #9ca3af;
  color: #ffffff;
  background: rgba(255,255,255,.05);
}

/* Modale */
.sciacca-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .75);
  backdrop-filter: blur(3px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sciacca-cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sciacca-cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(.96);
  max-width: 620px;
  width: 92%;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 12px;
  z-index: 100000;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sciacca-cookie-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.sciacca-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 88vh;
}

.sciacca-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.sciacca-modal-header h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin: 0;
}

.sciacca-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.sciacca-modal-close:hover {
  color: var(--dark);
}

.sciacca-modal-body {
  padding: 1.4rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sciacca-modal-intro {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.sciacca-pref-group {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  background: #ffffff;
}

.sciacca-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.sciacca-pref-info {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.sciacca-pref-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.sciacca-pref-desc {
  font-size: .84rem;
  color: var(--gray);
  line-height: 1.45;
  margin: 0;
}

.sciacca-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
}

.sciacca-badge-always {
  background: #dcfce7;
  color: #15803d;
}

.sciacca-badge-opt {
  background: #e0f2fe;
  color: #0369a1;
}

.sciacca-badge-none {
  background: #f1f5f9;
  color: #64748b;
}

/* Switch */
.sciacca-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.sciacca-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sciacca-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.sciacca-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.sciacca-switch input:checked + .sciacca-slider {
  background-color: var(--blue);
}

.sciacca-switch input:checked + .sciacca-slider::before {
  transform: translateX(20px);
}

.sciacca-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  background: #f8fafc;
}

/* Floating Badge */
.sciacca-cookie-badge {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  background: #ffffff;
  color: var(--dark);
  border: 1px solid var(--gray-light);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  border-radius: 30px;
  padding: 7px 13px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s ease;
  font-family: 'Lato', sans-serif;
}

.sciacca-cookie-badge:hover {
  background: var(--light);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: translateY(-2px);
  border-color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 860px) {
  .sciacca-cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .sciacca-cookie-actions {
    flex-direction: column-reverse;
    gap: .5rem;
  }
  .sciacca-cookie-actions button {
    width: 100%;
  }
  .sciacca-modal-footer {
    flex-direction: column-reverse;
  }
  .sciacca-modal-footer button {
    width: 100%;
  }
}
