:root {
  --blu: #0090ff;
  --blu-chiaro: #61b0ff;
  --scuro: #1b1b1b;
  --testo: #444;
  --titoli: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 16px/1.7 "Roboto Condensed", "Segoe UI", Arial, sans-serif; color: var(--testo); background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--scuro); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; }
.logo img { width: 230px; }
.menu { display: flex; flex-wrap: wrap; }
.menu a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; padding: 10px 14px; }
.menu a:hover, .menu a.active { background: #3a3a3a; }
.menu-toggle { display: none; background: none; border: 1px solid #777; color: #fff; padding: 8px 14px; font: inherit; cursor: pointer; }

/* Slider */
.slider { position: relative; background: #000; }
.slides { position: relative; aspect-ratio: 1920 / 700; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.slides img.on { opacity: 1; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button.on { background: #fff; }

/* Sezioni */
section { padding: 50px 0; }
.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; border-bottom: 1px solid #eee; }
.feature-title, .section-title { font-family: var(--titoli); font-weight: 600; text-transform: uppercase; font-size: 30px; line-height: 1.2; margin: 0 0 20px; }
.feature-title { color: #242424; }
.section-title { color: var(--blu); text-align: center; }
.section-title.light { color: var(--blu-chiaro); }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 10px; padding-bottom: 50px; border-bottom: 1px solid #eee; }
.products.cialde { grid-template-columns: repeat(4, 1fr); }
.products figure { margin: 0; text-align: center; }
.products img { width: 100%; height: auto; transition: transform .3s; }
.products figure:hover img { transform: translateY(-6px); }
.products figcaption { font-family: var(--titoli); text-transform: uppercase; font-weight: 600; color: #242424; margin-top: 10px; letter-spacing: .5px; }
.products figcaption small { display: block; font-family: "Roboto Condensed", "Segoe UI", Arial, sans-serif; text-transform: none; font-weight: 400; color: #777; font-size: 14px; letter-spacing: 0; }
.products.liquori { border-bottom: 0; padding-left: 0; padding-right: 0; margin-bottom: 30px; }
.section-sub { text-align: center; max-width: 700px; margin: -10px auto 30px; }
.feature { border-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.video { width: 100%; margin: 0 auto; background: #000; aspect-ratio: 16 / 9; }
.videos { gap: 24px; align-items: start; margin-bottom: 40px; }
.cards h3 { font-family: var(--titoli); color: var(--blu-chiaro); text-transform: uppercase; text-align: center; font-weight: 600; }
.cards p { font-size: 15px; }
.azienda { background: #f4f1ec url("img/azienda_sagicaf-300x190.jpg") center / contain no-repeat fixed; }
.azienda .narrow { background: rgba(255,255,255,.92); padding: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.map-box { text-align: center; }
.btn { display: inline-block; background: var(--blu); color: #fff; text-decoration: none; padding: 12px 26px; text-transform: uppercase; font-weight: 600; }
.btn:hover { background: #0077d4; }
.errore { text-align: center; padding: 80px 20px 100px; }
.site-footer { background: var(--scuro); color: var(--blu-chiaro); text-align: center; font-size: 13px; padding: 20px; }

/* Mobile */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--scuro); flex-direction: column; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 20px; border-top: 1px solid #333; }
  .logo img { width: 180px; }
  .feature, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .products, .products.cialde { grid-template-columns: repeat(2, 1fr); }
  .slides { aspect-ratio: 16 / 9; }
  .azienda { background-attachment: scroll; }
}
