/* ============================================================
   Convenzione Ministero della Difesa — Galdieri Rent
   Hand-written stylesheet. No framework, no build step.
   Replaces the three generated stylesheets of the old export.
   ============================================================ */

/* ---- Fonts: self-hosted, no Google Fonts request, no cookies ---- */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Oswald latin subset ships as a variable font (weights 200-700). */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}

/* ---- Design tokens (extracted from galdieri.css) ---- */
:root {
  --topbar-bg: #171818;
  --topbar-border: #403630;
  --topbar-height: 80px;
  --accent: #feab27;
  --text: #333;
  --card-bg: #fff;
  --card-radius: 10px;
  --card-shadow: 5px 5px 12px 5px rgba(0, 0, 0, 0.2);
  --soft-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  --container: 940px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- Top bar ---- */
.top-bar {
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}
.top-bar-logo {
  display: block;
  padding-left: 15px;
}
.top-bar-logo img {
  height: 70px;
  width: auto;
  object-fit: scale-down;
}

/* ---- Page background area with right-side car image ---- */
.stage {
  background: #fff url("../images/breve_termine_right_slide.png") 100% 0 / 50% no-repeat;
  min-height: 90vh;
}

/* ---- Content container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 15px 80px;
}

/* ---- Headings ---- */
.heading-main {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 45px;
  line-height: 55px;
  font-weight: 600;
  color: var(--text);
}
.heading-sub {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 30px;
  line-height: 38px;
  font-weight: 300;
  color: var(--text);
  margin-top: 5px;
  margin-bottom: 40px;
}

/* ---- Two-column layout: content left, empty space right ---- */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.layout-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* index: nudge the menu card down a little */
.home .layout-content { margin-top: 60px; }

/* ---- White rounded card ---- */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 400px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* ---- Index: full-width orange menu buttons ---- */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.button-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 12px;
  background: var(--accent);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
.button-menu:hover { filter: brightness(0.95); }

/* ---- Intro paragraph ---- */
.paragraph {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Button-link: orange text on white, to external sites ---- */
.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.button-link:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

/* ---- Dropdown ("guarda le offerte") ---- */
.brand-dropdown { position: relative; width: 100%; }
.brand-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.29);
  border-radius: 6px;
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.brand-dropdown-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.brand-dropdown.open .brand-dropdown-toggle::after {
  transform: rotate(-135deg);
}
.brand-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.29);
  border-radius: 6px;
  overflow: hidden;
}
.brand-dropdown.open .brand-dropdown-list { display: block; }
.brand-dropdown-list button {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  background: #fff;
  color: #000;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}
.brand-dropdown-list button:hover { background: #f2f2f2; }

/* ---- Typeform embed ---- */
.code-embed {
  width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Brand price tables (new cars) ---- */
.layout-tables {
  display: flex;
  justify-content: center;
}
.brand-tables {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 460px;
}
.brand-table {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  padding: 12px 0;
}
.brand-table.active { display: flex; }

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.brand-logo img {
  height: 50px;
  width: auto;
}

/* generic data grid */
.data-grid {
  display: grid;
  gap: 12px 8px;
  width: 100%;
  padding: 10px;
  place-items: center;
}
.data-grid .col-head {
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}
.data-grid .cell {
  font-size: 20px;
  text-align: center;
}
.data-grid .cell-pdf {
  font-size: 15px;
}
.data-grid .cell-pdf a { color: var(--accent); }

/* Stellantis: Brand / Modello / Preventivo  =>  .5fr .75fr .5fr */
.grid-stellantis { grid-template-columns: 0.5fr 0.75fr 0.5fr; }
/* EMC, OJ, BYD: Modello / Allestimento / Sconto  =>  .75fr .5fr .5fr */
.grid-three { grid-template-columns: 0.75fr 0.5fr 0.5fr; }
/* Skoda: Modello / Sconto / Rottamazione / Extra  =>  1fr .5fr .75fr 1.2fr */
.grid-skoda { grid-template-columns: 1fr 0.5fr 0.75fr 1.2fr; }
.grid-skoda .col-head,
.grid-skoda .cell { font-size: 16px; line-height: 18px; }
.grid-skoda .cell-xs {
  font-size: 14px;
  text-align: left;
}

.brand-note {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  padding: 0 5px 5px;
}
.brand-note em { font-size: 12px; }
.brand-note .note-no-italic {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

/* ---- 404 ---- */
.notfound {
  text-align: center;
  padding: 80px 15px;
}
.notfound .card {
  margin: 0 auto;
  align-items: center;
  text-align: center;
}
.notfound h1 {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 45px;
  line-height: 55px;
  font-weight: 600;
}

/* ============================================================
   Responsive — breakpoints kept from the original (991/767/479)
   ============================================================ */
@media (max-width: 991px) {
  .stage { background-size: 100%; }
  .layout {
    grid-template-columns: 1fr;
  }
  /* the empty right cell drops away on small screens */
  .layout-empty { display: none; }
}

@media (max-width: 767px) {
  .container { padding: 20px 15px 60px; }
  .home .layout-content { margin-top: 20px; }
}

@media (max-width: 479px) {
  .heading-main {
    font-size: 30px;
    line-height: 40px;
    background: rgba(255, 255, 255, 0.7);
  }
  .heading-sub {
    font-size: 22px;
    line-height: 28px;
    background: rgba(255, 255, 255, 0.7);
  }
  .card { max-width: 100%; }
  .data-grid .col-head { font-size: 15px; }
  .data-grid .cell { font-size: 14px; }
  .grid-skoda .col-head { font-size: 14px; }
  .grid-skoda .cell { font-size: 13px; }
  .grid-skoda .cell-xs { font-size: 12px; }
  .brand-note { font-size: 14px; }
  .brand-note em { font-size: 14px; }
  .brand-logo img { max-width: 80%; }
  .notfound h1 { font-size: 30px; line-height: 40px; }
}
