
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f0f2f5;
  color: #222;
}

/* HEADER */

.topbar {
  background: #ffffff;
  border-bottom: 3px solid #f0a000;
  padding: 10px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-img {
  height: 60px;
  width: auto;
}

nav a {
  margin-left: 10px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: #fff3dd;
  transform: translateY(-1px);
}

.btn-nav {
  border: 1px solid #f0a000;
}

/* MAIN LAYOUT */

main {
  padding-bottom: 40px;
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  background: #fafafa;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

section {
  padding: 40px 8%;
}

section:nth-of-type(odd) {
  background: #ffffff;
}

.page-header {
  border-left: 4px solid #f0a000;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* HERO & SLIDER */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 30px;
  background: radial-gradient(circle at top left, #ffe3b6, #ffffff);
}

.hero-slider .slider {
  flex: 1 1 280px;
  position: relative;
  min-height: 180px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-text h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.slide-text p {
  font-size: 15px;
  margin-bottom: 15px;
}

.hero-photo {
  flex: 1 1 260px;
}

.hero-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-photo-note {
  font-size: 11px;
  color: #555;
  margin-top: 5px;
}

.slider-dots {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
  background: #f28d00;
  transform: scale(1.1);
}

/* BUTTONS */

.btn-main {
  display: inline-block;
  padding: 10px 18px;
  background: #f28d00;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  border-top: 3px solid #ffd29a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card h4 {
  margin-bottom: 8px;
  color: #c07000;
}

.card p {
  font-size: 14px;
}

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

/* LISTE */

.checklist {
  list-style: none;
  margin-top: 15px;
}

.checklist li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  font-size: 14px;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #f0a000;
}

/* VIDEO HOME */

.video-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
}

.video-box video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-photo {
  height: 160px;
  overflow: hidden;
  background: #ddd;
}

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

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

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

.gallery-note {
  margin-top: 15px;
  font-size: 13px;
  color: #555;
}

/* CONTATTI & PREVENTIVI */

.contatti-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 30px;
  align-items: flex-start;
}

.contatti-dati p {
  margin-bottom: 6px;
  font-size: 14px;
}

.contatti-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contatti-form label {
  font-size: 13px;
  font-weight: 600;
}

.contatti-form input,
.contatti-form textarea,
.contatti-form select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.note-privacy {
  font-size: 11px;
  color: #777;
}

/* MAPPA */

.mappa-section {
  padding-top: 0;
}

.mappa-box {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mappa-box iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* NOTE / AVVISI */

.note-aziende {
  font-size: 13px;
  color: #aa5a00;
  margin-top: 10px;
}

.cookie-banner-example {
  border-left: 4px solid #f0a000;
  padding-left: 12px;
  font-size: 13px;
  margin-top: 8px;
}

/* ANIMAZIONI DI ENTRATA */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* FOOTER */

footer {
  text-align: center;
  font-size: 12px;
  padding: 16px 6%;
  background: #222;
  color: #ccc;
}

footer a {
  color: #f0a000;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
  }
}

@media (max-width: 800px) {
  .page-wrap {
    box-shadow: none;
  }

  section {
    padding: 26px 6%;
  }

  .contatti-grid,
  .video-home {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-slider .slider {
    min-height: 160px;
  }
}


/* --- MIGLIORAMENTI HEADER & MENU --- */

/* Logo un po' più grande */
.logo-img {
  height: 80px;
}

@media (max-width: 800px) {
  .logo-img {
    height: 60px;
  }
}

/* Menu come pulsanti morbidi */
.topbar {
  background: #ffffff;
  border-bottom: 3px solid #f0a000;
  padding: 10px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar nav a {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  color: #333;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.topbar nav a:hover {
  background: #fff7ea;
  border-color: #f0a000;
  transform: translateY(-1px);
}

/* Pulsante evidenziato solo per Privacy & Cookie */
.topbar nav a.btn-nav {
  background: #f28d00;
  color: #fff;
  border-color: #f28d00;
}

.topbar nav a.btn-nav:hover {
  background: #c96f00;
  border-color: #c96f00;
}


/* Accessibilità */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#fff;
  border:2px solid #000;
  border-radius:8px;
  z-index:9999;
}
:focus-visible{
  outline:3px solid #000;
  outline-offset:3px;
}

/* Nota form */
.form-note{
  margin-top:10px;
  font-size:0.95rem;
  line-height:1.4;
  opacity:0.9;
}

/* Rispetta "riduci movimento" */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
