:root {
  --page: #f2f2f2;
  --paper: #ffffff;
  --ink: #171717;
  --text: #272727;
  --muted: #777777;
  --line: #dddddd;
  --soft-line: #ececec;
  --orange: #c75b21;
  --orange-dark: #a34417;
  --red: #e6382e;
  --pale: #f6f1ea;
  --sidebar: #f7f7f7;
  --max: 990px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.58;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.site-topline {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  color: #8a8a8a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.small-row,
.masthead,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.small-row {
  min-height: 25px;
}

.small-row nav {
  display: flex;
  gap: 12px;
  color: var(--orange);
  font-weight: 700;
}

.mag-header {
  background: #ffffff;
}

.masthead {
  min-height: 78px;
}

.masthead p {
  margin: 0;
  color: #8d8d8d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mag-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--orange);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.logo-word {
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-word span {
  color: var(--orange);
}

.main-nav {
  background: var(--orange);
  border-top: 1px solid #b74f1d;
  border-bottom: 1px solid #a94719;
  color: #ffffff;
}

.nav-inner {
  min-height: 33px;
  justify-content: flex-start;
}

.main-nav a {
  padding: 8px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search label {
  font-size: 0;
}

.search input {
  width: 150px;
  height: 22px;
  border: 0;
  padding: 3px 7px;
  color: #444444;
  font-size: 12px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) 275px;
  gap: 28px;
  align-items: start;
  background: var(--paper);
  padding-top: 20px;
  padding-bottom: 28px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: #b45827;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: 68px 1fr 68px 1fr 68px;
  gap: 12px;
  align-items: center;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--soft-line);
}

.sponsor-strip p {
  margin: 0;
  color: #555555;
  font-size: 12px;
  line-height: 1.28;
}

.sponsor-strip strong {
  color: #222222;
  font-size: 12px;
}

.sponsor-tile {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  color: #222222;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.05;
}

.sponsor-tile.red {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.sponsor-tile.pale {
  background: var(--pale);
}

.sponsor-tile.line {
  color: var(--orange);
}

.article {
  padding-top: 24px;
}

.label {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 600px;
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.02;
}

h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.14;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.16;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 22px;
  color: #777777;
  font-size: 12px;
}

.hero-media,
.article figure {
  margin: 0 0 26px;
}

.hero-media img,
.article figure img {
  border: 1px solid #e7e7e7;
}

.hero-media img {
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

figcaption {
  margin-top: 7px;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.article p {
  max-width: 620px;
  margin: 0 0 15px;
}

.intro {
  color: #202020;
  font-size: 16px;
  line-height: 1.5;
}

blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  background: #fafafa;
}

blockquote p {
  margin-bottom: 8px;
  color: #202020;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
}

blockquote cite {
  display: block;
  color: #7b7b7b;
  font-size: 12px;
  font-style: normal;
}

.comparison-box {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.comparison-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-box th,
.comparison-box td {
  padding: 9px 8px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
  vertical-align: top;
}

.comparison-box th {
  color: var(--orange-dark);
  text-transform: uppercase;
}

.product-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 30px 0 20px;
  padding: 20px;
  border-top: 4px solid var(--orange);
  background: #f7f7f7;
}

.product-callout h2 {
  margin-top: 0;
}

.orange-button,
.mini-button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 14px;
  border: 0;
  background: var(--orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.orange-button:hover,
.mini-button:hover,
.newsletter button:hover {
  background: var(--orange-dark);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 34px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  color: #777777;
  font-size: 12px;
  font-weight: 700;
}

.share-row a {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2274ad;
  color: #ffffff;
  font-size: 10px;
  text-transform: uppercase;
}

.related {
  margin-top: 18px;
  border-top: 1px solid #d8d8d8;
  padding-top: 22px;
}

.related h2 {
  margin: 0 0 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related article {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.related img {
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.related article p,
.related article h3 {
  padding: 0 12px;
}

.related article p {
  margin-top: 12px;
}

.related article h3 {
  margin-bottom: 16px;
  font-size: 14px;
}

.sidebar {
  display: grid;
  gap: 24px;
  padding-top: 86px;
}

.sidebar section {
  background: var(--sidebar);
}

.magazine-ad {
  padding: 18px;
  text-align: center;
}

.magazine-ad h2,
.sidebar-block h2,
.expert-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.cover {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin: 10px auto 12px;
  padding: 15px;
  width: 118px;
  border: 1px solid #d2d2d2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.2)),
    url("/kit-viaggio-sicuro-v1/assets/media_ottimizzati/cane-in-auto-con-cintura-di-sicurezza-integrata-telo.webp") center / cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.cover > span {
  align-self: start;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.cover > span span {
  color: var(--orange);
}

.cover strong {
  align-self: end;
  color: #111111;
  font-size: 13px;
  line-height: 1.05;
}

.magazine-ad p,
.expert-card p {
  color: #666666;
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-block {
  padding: 16px 0 0;
  border-top: 3px solid var(--orange);
}

.sidebar-block h2 {
  padding: 0 14px;
  text-transform: uppercase;
}

.partner-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px 14px;
  border-top: 1px solid #e3e3e3;
}

.partner-row span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #dedede;
  background: #ffffff;
  color: var(--orange);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.partner-row p {
  margin: 0;
  color: #606060;
  font-size: 12px;
  line-height: 1.32;
}

.top-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: top;
  list-style: none;
}

.top-list li {
  counter-increment: top;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid #e3e3e3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.top-list li::before {
  content: counter(top);
  color: var(--orange);
  font-weight: 800;
}

.expert-card {
  padding: 18px;
  border: 1px solid #efb07e;
  background: #fff5ed;
}

.expert-card h2 {
  color: var(--orange-dark);
}

.mag-footer {
  margin-top: 32px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 34px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--soft-line);
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-grid p {
  max-width: 260px;
  color: #666666;
  font-size: 13px;
}

.newsletter {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 14px;
  align-items: center;
}

.newsletter label {
  color: #555555;
  font-size: 12px;
  font-weight: 700;
}

.newsletter input {
  height: 28px;
  border: 1px solid #d8d8d8;
  padding: 4px 7px;
}

.newsletter button {
  grid-column: 2;
  justify-self: start;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 22px;
}

.footer-columns h3 {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  color: #666666;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
    margin-left: 0;
    padding-bottom: 8px;
  }

  .search input {
    width: 100%;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-strip {
    grid-template-columns: 74px 1fr;
  }

  .sponsor-strip .sponsor-tile:last-child {
    display: none;
  }

  .sidebar {
    padding-top: 0;
  }

  .related-grid,
  .footer-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .product-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .small-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
  }

  .logo-word {
    font-size: 31px;
  }

  .masthead {
    gap: 10px;
    min-height: 124px;
    padding: 14px 0 16px;
  }

  .masthead p {
    font-size: 11px;
    line-height: 1.35;
  }

  .nav-inner {
    flex-wrap: nowrap;
    min-height: 44px;
    overflow-x: auto;
    padding-inline: 14px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 15px 13px;
  }

  .search {
    display: none;
  }

  .page-grid {
    width: 100%;
    padding-top: 14px;
    padding-inline: 14px;
  }

  .sponsor-strip {
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 12px 0 18px;
  }

  .sponsor-tile {
    min-height: 48px;
  }

  .sponsor-strip p {
    font-size: 13px;
  }

  .sponsor-strip .sponsor-tile:last-child {
    display: none;
  }

  .comparison-box {
    overflow-x: auto;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter button {
    grid-column: 1;
  }
}
