/* ===========================================================
   Speedyworld - Static site styles
   Brand palette: #002b48 (dark) | #2669b2 (primary) | #36a9e1 (accent)
   Font: Source Sans Pro
   =========================================================== */

/* --- Reset / base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Source Sans Pro', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #002b48;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #2669b2; text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: #36a9e1; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4, h5 { color: #002b48; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 200; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 600; color: #2669b2; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1rem; font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers -------------------------------------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: #f6f9fc; }
.section--dark { background: #002b48; color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { color: #36a9e1; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-bottom: .75rem; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: #2669b2;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
  text-align: center;
  border: 2px solid #2669b2;
}
.btn:hover, .btn:focus { background: #36a9e1; border-color: #36a9e1; color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: #002b48; border-color: #002b48; }
.btn--outline:hover, .btn--outline:focus { background: #002b48; color: #fff; }
.btn--white { background: #fff; color: #002b48; border-color: #fff; }
.btn--white:hover { background: #36a9e1; color: #fff; border-color: #36a9e1; }
.btn + .btn { margin-left: .5rem; }

/* Area Riservata - dark pill button at top right */
.btn--reserved {
  background: #002b48;
  color: #fff;
  border-color: #002b48;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  line-height: 1.2;
  border-radius: 6px;
}
.btn--reserved:hover { background: #2669b2; border-color: #2669b2; color: #fff; }

/* --- Header ---------------------------------------------- */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 43, 72, .04);
  position: sticky; top: 0; z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
}
.header__logo img { height: 64px; width: auto; }
.header__right { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; gap: 1.75rem; align-items: center; }
.nav__list a {
  color: #002b48;
  font-weight: 600;
  font-size: 1rem;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover, .nav__list a.is-active { color: #36a9e1; border-bottom-color: #36a9e1; }
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: #002b48;
  padding: .5rem;
}

/* Dropdown (Servizi) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 43, 72, .12);
  border-radius: 8px;
  padding: .5rem 0;
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: .6rem 1.25rem;
  border-bottom: none;
  font-weight: 500;
}
.dropdown a:hover { background: #f6f9fc; color: #36a9e1; }

/* --- Hero ------------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.hero__title { margin-bottom: 1.25rem; font-weight: 600; }
.hero__subtitle { font-size: clamp(1.25rem, 2.5vw, 1.85rem); color: #2669b2; font-weight: 200; margin-bottom: 2.5rem; line-height: 1.3; }
.hero__image img { margin: 0 auto; max-height: 540px; object-fit: contain; }

/* Decorative "stickers" — 3 small colored squares */
.stickers {
  display: inline-flex;
  gap: .5rem;
  margin-top: 1.5rem;
  align-items: center;
}
.stickers__dot {
  display: block;
  width: 36px; height: 36px;
  border-radius: 6px;
}
.stickers__dot--green { background: #c5d92d; }
.stickers__dot--cyan  { background: #36a9e1; }
.stickers__dot--mail  {
  background: #e6f5fd;
  display: inline-flex; align-items: center; justify-content: center;
}
.stickers__dot--mail::before {
  content: "";
  width: 20px; height: 14px;
  background: #36a9e1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 60%, 100% 0);
}

/* --- Split section (about / custom) ---------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__image img { border-radius: 12px; }
.split__title { margin-bottom: 1rem; font-weight: 200; }
.split__subtitle { font-size: clamp(1.15rem, 2vw, 1.5rem); color: #2669b2; font-weight: 200; margin-bottom: 1.5rem; line-height: 1.3; }
.split__text { font-size: 1.05rem; margin-bottom: 1.5rem; }

/* --- Services cards -------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 43, 72, .05);
  border: 1px solid rgba(0, 43, 72, .04);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 43, 72, .12);
}
.service-card__icon {
  height: 110px;
  width: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}
.service-card__desc { color: #4a6275; font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.5; }
.service-card__link {
  display: inline-block;
  padding: .5rem 1.5rem;
  background: #2669b2;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  align-self: center;
  transition: background .15s ease;
}
.service-card__link:hover { background: #36a9e1; color: #fff; }

/* --- Section heading ------------------------------------- */
.section-heading { text-align: center; margin-bottom: 1rem; font-weight: 200; }
.section-heading + .section-lead {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #4a6275;
  line-height: 1.6;
}
.section-lead strong { color: #002b48; font-weight: 700; }

/* --- Footer ---------------------------------------------- */
.footer { background: #002b48; color: #fff; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer a { color: #36a9e1; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__logo img { height: 80px; margin-bottom: 1rem; }
.footer__about { color: #b7d0e0; font-size: .95rem; }
.footer__contact p { margin-bottom: .5rem; color: #e1ecf3; }
.footer__contact a { color: #36a9e1; font-weight: 600; }
.footer__nverde { max-height: 56px; margin-bottom: .75rem; }
.footer__hours { color: #b7d0e0; font-size: .95rem; }
.footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: #fff;
  transition: background .15s ease;
}
.footer__social a:hover { background: #36a9e1; color: #fff; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: #b7d0e0;
}
.footer__bottom a { color: #b7d0e0; }
.footer__bottom a:hover { color: #36a9e1; }
.footer__bottom p { margin-bottom: .35rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; margin-top: .75rem; }

/* --- Page hero (inner pages) ----------------------------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.page-hero__title { margin-bottom: 1.25rem; font-weight: 600; }
.page-hero__subtitle { font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: #2669b2; font-weight: 200; margin-bottom: 2rem; line-height: 1.3; }
.page-hero__image img { margin: 0 auto; max-height: 460px; object-fit: contain; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { grid-template-columns: 1fr; }

/* Decorative chips (e.g. Express categories) */
.chips { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.chip {
  background: #c5d92d;
  color: #002b48;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
}
.chip--cyan { background: #36a9e1; color: #fff; }
.chip--blue { background: #2669b2; color: #fff; }

/* --- Numbers grid (Le ali per te - "I nostri numeri") ---- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.number { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.number__icon { height: 70px; width: auto; object-fit: contain; margin-bottom: .5rem; }
.number__value {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #2669b2;
  font-weight: 700;
  line-height: 1;
}
.number__label { color: #4a6275; font-size: .95rem; }

/* --- Features grid ("Perché scegliere Speedy") ----------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.feature { padding: 0; }
.feature__title { color: #2669b2; margin-bottom: .5rem; font-size: 1.2rem; font-weight: 700; }
.feature__text { color: #4a6275; font-size: 1rem; line-height: 1.5; }

/* --- Speedy Point list ----------------------------------- */
.point-region { margin-bottom: 3rem; }
.point-region__title {
  color: #002b48;
  border-bottom: 2px solid #36a9e1;
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.point-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.point {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 43, 72, .06);
  border: 1px solid rgba(0, 43, 72, .04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.point:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,43,72,.1); }
.point__city { color: #002b48; font-weight: 700; font-size: 1.1rem; margin-bottom: .35rem; }
.point__address { color: #4a6275; font-size: .95rem; margin-bottom: .75rem; }
.point__maps {
  display: inline-block;
  color: #36a9e1;
  font-size: .9rem;
  font-weight: 600;
}
.point__maps::after { content: " →"; }

/* --- Legal (Note Legali) -------------------------------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.legal__toc {
  position: sticky;
  top: 110px;
  padding: 1.25rem;
  background: #f6f9fc;
  border-radius: 10px;
  font-size: .95rem;
}
.legal__toc h4 { margin-bottom: .75rem; color: #002b48; }
.legal__toc ul { display: flex; flex-direction: column; gap: .5rem; }
.legal__toc a { color: #2669b2; font-weight: 600; }
.legal__section { margin-bottom: 3rem; scroll-margin-top: 100px; }
.legal__section h2 {
  color: #002b48;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #36a9e1;
}
.legal__section h3 { color: #2669b2; font-size: 1.25rem; margin: 1.5rem 0 .5rem; font-weight: 600; }
.legal__section p { margin-bottom: 1rem; line-height: 1.7; }
.legal__section ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.legal__section li { margin-bottom: .35rem; }

/* --- News list ------------------------------------------ */
.news-list { display: grid; gap: 2rem; }
.news-item {
  background: #fff;
  padding: 1.75rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 43, 72, .05);
  border-left: 4px solid #36a9e1;
}
.news-item__title { color: #002b48; font-weight: 600; margin-bottom: .5rem; font-size: 1.25rem; }
.news-item__date { color: #36a9e1; font-size: .9rem; font-weight: 600; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.news-item__body { color: #4a6275; line-height: 1.6; }

/* --- Info box (contatti) -------------------------------- */
.contact-info {
  background: #fff;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 43, 72, .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-info dt { font-weight: 700; color: #002b48; margin-bottom: .25rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-info dd { color: #2669b2; font-size: 1.15rem; margin-bottom: 1.25rem; font-weight: 600; }
.contact-info dd:last-child { margin-bottom: 0; }
.contact-info a { color: #2669b2; }
.contact-info a:hover { color: #36a9e1; }

/* --- Bullet check list (contatti services) -------------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .5rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: #36a9e1;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Service info list (in Logistic/Wine) --------------- */
.info-list { list-style: none; padding: 0; }
.info-list li {
  padding: .85rem 0;
  border-bottom: 1px solid #eef2f6;
  position: relative;
  padding-left: 1.75rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: .85rem;
  color: #36a9e1;
  font-weight: 700;
}

/* --- Responsive overrides for inner-page widgets -------- */
@media (max-width: 960px) {
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .point-list { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
@media (max-width: 720px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .point-list { grid-template-columns: 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
}

/* --- CTA strip ------------------------------------------- */
.cta-strip {
  background: #2669b2;
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 1rem; }
.cta-strip p { color: #d3e6f5; margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,43,72,.1); padding: 1rem 1.25rem; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: .85rem 0; border-bottom: 1px solid #eef2f6; }
  .nav__list li:last-child a { border-bottom: none; }
  .has-dropdown:hover .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 1rem; }
  .nav__toggle { display: block; }

  .hero__inner, .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse > :first-child { order: 0; }
  .hero__image img { max-height: 280px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .btn + .btn { margin-left: 0; margin-top: .5rem; display: block; }
}
