/* =============================================
   Carrozzeria Simonetto - Replica fedele
   Font: Lato | Accent: #E6C321
   ============================================= */

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

:root {
  --gold:   #E6C321;
  --gold-h: #c9a900;
  --dark:   #333333;
  --text:   #999999;
  --white:  #ffffff;
  --topbar: #f2f2f2;
  --footer: #272727;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--dark); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- TOPBAR ---- */
#top {
  background: var(--topbar);
  height: 10px;
}

/* ---- HEADER ---- */
#header {
  background: var(--white);
  padding: 14px 0 10px;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#logo img {
  height: 90px;
  width: auto;
  display: block;
}
.cert-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.cert-logos img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

/* ---- NAVIGATION ---- */
#navigation {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color .25s;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--gold);
}
/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 999;
}
.nav-list > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  border-bottom: 1px solid #f0f0f0;
  font-weight: 400;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--gold); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
}

/* ---- SLIDER ---- */
#showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.slide.active { opacity: 1; }
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 8% 0 10%;
  color: var(--white);
}
.slide-title {
  font-size: 68px;
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .04em;
}
.slide-subtitle {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .04em;
}
.slide-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .25s;
}
.slide-btn:hover { background: var(--dark); color: var(--white); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.35);
  color: white;
  border: none;
  width: 46px;
  height: 46px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-btn:hover { background: var(--gold); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

/* ---- MAINTOP: 4 SERVICE BOXES ---- */
#maintop {
  padding: 0;
  background: #2a2a2a;
}
.service-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.service-box {
  background: var(--gold);
  padding: 30px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: background .25s;
  cursor: pointer;
  text-decoration: none;
}
.service-box:hover { background: #d4af1e; }
.service-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.service-box-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.service-box-sub {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
  margin-top: -6px;
}

/* ---- CONTENT SECTION ---- */
#content {
  padding: 70px 0;
}
.content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.section-heading {
  font-size: 38px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 24px;
}
.section-heading span {
  display: block;
  font-weight: 900;
  color: var(--gold);
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .03em;
}
.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 13px;
  top: 9px;
}

/* ---- MAINBOTTOM: CHI SIAMO ---- */
#mainbottom {
  background: var(--topbar);
  padding: 60px 0;
}
.chi-siamo-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}
.chi-siamo-head {
  font-size: 42px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
}
.chi-siamo-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
}

/* ---- MAINBOTTOM-2: BRAND LOGOS ---- */
#mainbottom-2 {
  padding: 60px 0 50px;
}
.brands-heading {
  text-align: center;
  font-size: 38px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 40px;
}
.brands-heading span { font-weight: 900; }
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.brands-grid img {
  height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: .6;
  transition: filter .3s, opacity .3s;
}
.brands-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- FOOTER ---- */
#footer-wrapper {
  background: var(--footer);
  color: var(--text);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col p,
.footer-col li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--gold); }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-map { border-radius: 4px; overflow: hidden; }
.footer-map iframe { width: 100%; height: 220px; border: none; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 40px;
}
.page-header h1 {
  font-size: 38px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.breadcrumb a { color: var(--gold); }

/* ---- INNER PAGE CONTENT ---- */
.page-content {
  padding: 60px 0;
}
.page-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
.page-text h2 {
  font-size: 26px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 16px;
  margin-top: 36px;
}
.page-text h2:first-child { margin-top: 0; }
.page-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}
.page-text ul { margin: 12px 0 16px 0; }
.page-text ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--text);
  font-size: 16px;
}
.page-text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 12px;
  top: 7px;
}

/* Sidebar */
.sidebar-box {
  background: #f9f9f9;
  border-top: 3px solid var(--gold);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-box h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
  margin-bottom: 14px;
}
.sidebar-box ul li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--dark);
  border-bottom: 1px solid #eee;
}
.sidebar-box ul li:last-child a { border-bottom: none; }
.sidebar-box ul li a:hover { color: var(--gold); }

.cta-sidebar {
  background: var(--gold);
  padding: 24px;
  text-align: center;
}
.cta-sidebar p { color: var(--white); font-size: 14px; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cta-sidebar .tel { display: block; font-size: 26px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.cta-sidebar .tel:hover { color: var(--dark); }
.btn { display: inline-block; padding: 10px 26px; background: var(--gold); color: var(--white); font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; transition: background .25s, color .25s; border: none; cursor: pointer; }
.btn:hover { background: var(--dark); color: var(--white); }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: var(--gold); }
.btn-outline-white { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

/* ---- FORM ---- */
.form-wrap {
  background: var(--white);
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.form-wrap h2 {
  font-size: 28px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-wrap > p { color: var(--text); font-size: 14px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg.full { grid-column: 1/-1; }
.fg label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dark); }
.fg input, .fg textarea {
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  height: 50px;
  transition: border-color .2s;
}
.fg textarea { height: 130px; resize: vertical; }
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--gold); }

/* ---- ORARI ---- */
.orari-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orari-table td { padding: 8px 4px; border-bottom: 1px solid #eee; color: var(--text); }
.orari-table td:last-child { text-align: right; font-weight: 700; color: var(--dark); }

/* ---- MAP ---- */
.map-box { border-radius: 3px; overflow: hidden; }
.map-box iframe { width: 100%; height: 360px; border: none; display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .content-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chi-siamo-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .service-boxes { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .slider { height: 320px; }
  .slide-title, .slide-subtitle { font-size: 36px; }
  .slide-content { padding: 0 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .fg.full { grid-column: auto; }
  #navigation { display: none; width: 100%; }
  #navigation.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-list > li > a { border-bottom: 1px solid #eee; }
  .nav-dropdown { position: static; box-shadow: none; border-top: none; background: #f9f9f9; }
  .hamburger { display: flex; }
  .header-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .service-boxes { grid-template-columns: repeat(2,1fr); }
  .brands-grid img { height: 50px; }
  .page-header h1 { font-size: 26px; }
}

/* =============================================
   LANDING ONE-PAGE: sezioni aggiuntive
   ============================================= */
section[id], #top-anchor { scroll-margin-top: 130px; }

.section { padding: 70px 0; }
.section-alt { background: var(--topbar); }
.section-title {
  font-size: 38px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-title span { font-weight: 900; color: var(--gold); }
.section-lead { font-size: 17px; margin-bottom: 40px; max-width: 760px; }

/* Chi siamo esteso */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cert-badges span {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dark);
}
.section-alt .cert-badges span { background: var(--white); }

/* Blocchi servizio */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.service-block:first-child { padding-top: 0; }
.service-block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.service-block-head .ico {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-block-head .ico img { width: 40px; height: 40px; object-fit: contain; }
.service-block-head h3 { font-size: 28px; font-weight: 300; color: var(--dark); }
.service-block-head h3 strong { font-weight: 900; display: block; }
.service-photo {
  height: 220px; border-radius: 3px; margin-bottom: 22px;
  background-size: cover; background-position: center;
}
.page-text h4 {
  font-size: 15px; font-weight: 700; letter-spacing: .05em;
  color: var(--dark); margin: 24px 0 8px;
}
.page-text h4:first-child { margin-top: 0; }
.service-cta {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.service-cta .tel-inline { font-size: 22px; font-weight: 900; color: var(--dark); }
.service-cta .tel-inline:hover { color: var(--gold); }

/* CTA band */
.cta-band { background: var(--gold); padding: 40px 0; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-band p { color: var(--white); font-size: 22px; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
.cta-band p strong { font-weight: 900; }
.cta-band .tel { font-size: 32px; font-weight: 900; color: var(--white); }
.cta-band .tel:hover { color: var(--dark); }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-label { display: block; color: var(--dark); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; font-weight: 700; }

/* Privacy dialog */
.privacy-dialog {
  border: none; border-top: 4px solid var(--gold);
  max-width: 860px; width: calc(100% - 32px); max-height: 85vh;
  padding: 0; margin: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.privacy-dialog::backdrop { background: rgba(0,0,0,.6); }
.privacy-dialog .pd-head {
  position: sticky; top: 0; background: var(--white);
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-bottom: 1px solid #eee;
}
.privacy-dialog .pd-head h2 { font-size: 22px; font-weight: 300; }
.privacy-dialog .pd-close {
  background: none; border: none; font-size: 30px; line-height: 1;
  cursor: pointer; color: var(--dark);
}
.privacy-dialog .pd-close:hover { color: var(--gold); }
.privacy-dialog .page-text { padding: 24px 28px 32px; }
.privacy-dialog .page-text h2 { font-size: 18px; margin-top: 26px; }
.privacy-dialog .page-text p { font-size: 14px; }
.link-btn { background: none; border: none; font: inherit; color: var(--text); cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--gold); }

/* Torna su */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--dark); color: var(--white); }

@media (max-width: 1024px) {
  .about-grid, .service-block, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  #logo img { height: 64px; }
  .form-wrap { padding: 24px; }
  .cta-band p { font-size: 18px; }
  .cta-band .tel { font-size: 26px; }
  section[id] { scroll-margin-top: 100px; }
}

/* Mappa: segnaposto prima del consenso */
.map-consent {
  height: 360px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
  background: #e9e9e9 linear-gradient(135deg, rgba(230,195,33,.12), rgba(0,0,0,.04));
  border: 1px solid #ddd; font-size: 14px;
}
.map-consent strong { color: var(--dark); font-size: 16px; }
.map-consent p { max-width: 380px; }
.map-ext { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
