/*
Theme Name: Magellano Nautica
Theme URI: https://www.magellanotech.it/
Author: Magellano Tech S.r.l.
Description: Tema editoriale nautico premium per Boat Magazine e NauticMag.
Version: 1.1.2
Text Domain: magellano-nautica
*/

:root {
  --navy-950: #031521;
  --navy-900: #062438;
  --navy-800: #083b56;
  --sea-700: #087692;
  --sea-500: #11b6c8;
  --aqua-300: #74e0df;
  --foam: #f4fbfb;
  --sand: #e8c98f;
  --gold: #d8aa59;
  --ink: #102a39;
  --muted: #5e7380;
  --line: rgba(8, 59, 86, 0.14);
  --surface: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(3, 21, 33, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --content: min(1240px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(116, 224, 223, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 32%, rgba(17, 182, 200, 0.13), transparent 32rem),
    linear-gradient(180deg, #f4fbfb 0%, #eef8f7 46%, #f8fbfa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background:
    repeating-radial-gradient(ellipse at 50% -10%, transparent 0 52px, rgba(8, 118, 146, 0.07) 53px 55px, transparent 56px 90px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 88%, transparent);
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aqua-300);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 10000;
  top: 14px;
  left: 14px;
  clip: auto;
  width: auto;
  height: auto;
  padding: 10px 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--navy-950);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 21, 33, 0.94);
  box-shadow: 0 12px 38px rgba(3, 21, 33, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: var(--content);
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: auto;
  max-width: 268px;
  max-height: 58px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.site-nav > a,
.vessel-menu > summary {
  display: inline-flex;
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  transition: color 180ms ease, background 180ms ease;
}

.site-nav > a:hover,
.vessel-menu > summary:hover,
.site-nav > a[aria-current="page"] {
  color: #fff;
  background: rgba(116, 224, 223, 0.13);
}

body .site-header .site-nav > a,
body .site-header .vessel-menu > summary {
  color: rgba(255, 255, 255, 0.84);
}

.vessel-menu {
  position: relative;
}

.vessel-menu > summary {
  cursor: pointer;
  list-style: none;
}

.vessel-menu > summary::-webkit-details-marker {
  display: none;
}

.vessel-menu > summary::after {
  margin-left: 8px;
  content: "⌄";
  color: var(--aqua-300);
  font-size: 1rem;
}

.vessel-menu[open] > summary {
  color: #fff;
  background: rgba(116, 224, 223, 0.13);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  display: grid;
  width: min(760px, 82vw);
  padding: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 18px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.mega-menu::before {
  position: absolute;
  top: -8px;
  right: 42px;
  width: 16px;
  height: 16px;
  content: "";
  transform: rotate(45deg);
  background: #fff;
}

.mega-menu a {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.mega-menu a:hover {
  color: var(--sea-700);
  background: #edf8f7;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

body button.nav-toggle,
body button.nav-toggle:hover {
  padding: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.07) !important;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  border-radius: 2px;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(76vh, 760px);
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: var(--navy-950) url("assets/images/hero-nautica.jpg") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 21, 33, 0.88) 0%, rgba(3, 21, 33, 0.62) 42%, rgba(3, 21, 33, 0.1) 73%),
    linear-gradient(0deg, rgba(3, 21, 33, 0.5) 0%, transparent 36%);
}

.hero::after {
  position: absolute;
  right: -8%;
  bottom: -86px;
  left: -8%;
  height: 138px;
  content: "";
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #f4fbfb;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--content);
  padding: 104px 0 142px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(116, 224, 223, 0.45);
  border-radius: 999px;
  background: rgba(3, 21, 33, 0.32);
  color: #d7ffff;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--aqua-300);
  box-shadow: 0 0 18px var(--aqua-300);
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body .hero h1,
body .page-hero h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 em {
  display: block;
  color: var(--aqua-300);
  font-weight: 400;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy-950);
  background: var(--aqua-300);
  box-shadow: 0 12px 38px rgba(116, 224, 223, 0.25);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(3, 21, 33, 0.26);
  backdrop-filter: blur(9px);
}

body .hero a.button-primary {
  color: var(--navy-950);
}

body .hero a.button-secondary {
  color: #fff;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: flex;
  margin-bottom: 34px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--sea-700);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

body .section-heading h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

body .vessels-section .section-heading h2 {
  color: #fff;
}

.section-intro {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.editorial-card,
.vessel-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: end;
  color: #fff;
  isolation: isolate;
  background-color: var(--navy-800);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 52px rgba(3, 21, 33, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.editorial-card {
  min-height: 370px;
  border-radius: var(--radius-lg);
}

.editorial-card::before,
.vessel-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 21, 33, 0.02) 18%, rgba(3, 21, 33, 0.9) 100%);
}

.editorial-card::after,
.vessel-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0;
  background: rgba(8, 118, 146, 0.18);
  transition: opacity 220ms ease;
}

.editorial-card:hover,
.vessel-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(3, 21, 33, 0.24);
}

.editorial-card:hover::after,
.vessel-card:hover::after {
  opacity: 1;
}

.card-content {
  width: 100%;
  padding: 26px;
}

.card-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--aqua-300);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editorial-card h3,
.vessel-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.08;
}

body .editorial-card h3,
body .vessel-card h3 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.editorial-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.48;
}

.vessels-section {
  position: relative;
  width: 100%;
  padding: 96px 0 118px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 16%, rgba(17, 182, 200, 0.2), transparent 28rem),
    radial-gradient(circle at 8% 90%, rgba(116, 224, 223, 0.11), transparent 34rem),
    var(--navy-950);
}

.vessels-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: repeating-radial-gradient(ellipse at 50% 0, transparent 0 55px, rgba(116, 224, 223, 0.16) 56px 58px, transparent 59px 92px);
}

.vessels-inner {
  position: relative;
  width: var(--content);
  margin: 0 auto;
}

.vessels-section .section-intro {
  color: rgba(255, 255, 255, 0.66);
}

.vessel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vessel-card {
  min-height: 224px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.vessel-card .card-content {
  padding: 21px;
}

.vessel-card h3 {
  font-size: 1.28rem;
}

.vessel-card .arrow {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(3, 21, 33, 0.28);
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.latest-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 46px rgba(3, 21, 33, 0.09);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--sea-500));
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.045);
}

.post-card-body {
  padding: 24px;
}

.post-card-meta {
  margin: 0 0 8px;
  color: var(--sea-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.2;
}

body .post-card h2 a,
body .post-card h3 a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.post-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 82px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 21, 33, 0.95), rgba(3, 21, 33, 0.56)),
    url("assets/images/hero-nautica.jpg") center 60% / cover no-repeat;
}

.page-hero-inner {
  position: relative;
  width: var(--content);
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.content-wrap {
  width: min(920px, calc(100% - 40px));
  margin: 72px auto 110px;
}

.entry-card {
  padding: clamp(26px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

body h1.entry-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.entry-meta {
  margin: 18px 0 0;
  color: var(--sea-700);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-featured {
  margin: 38px calc(clamp(26px, 6vw, 70px) * -1) 42px;
}

.entry-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.entry-content {
  margin-top: 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
  color: var(--navy-900);
  line-height: 1.2;
}

.entry-content a {
  color: var(--sea-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content img {
  margin: 32px auto;
  border-radius: 16px;
}

.pagination {
  margin-top: 42px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  margin: 3px;
  padding: 6px 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.pagination .current {
  color: #fff;
  border-color: var(--sea-700);
  background: var(--sea-700);
}

.empty-state {
  padding: 58px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.empty-state h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-950);
}

.site-footer::before {
  position: absolute;
  top: -100px;
  right: -8%;
  left: -8%;
  height: 140px;
  content: "";
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #f8fbfa;
}

.footer-main {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  padding: 116px 0 42px;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.75fr) minmax(220px, 0.9fr);
  gap: 60px;
}

.footer-brand img {
  max-width: 275px;
  max-height: 62px;
}

.footer-brand p {
  max-width: 470px;
  margin: 20px 0 0;
}

.footer-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--aqua-300);
}

body .site-footer a {
  color: inherit;
}

.footer-legal {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/*
 * NauticMag has its own warmer, more graphic art direction.
 * Boat Magazine keeps the deep-aqua editorial skin above.
 */
.brand-nauticmag {
  --navy-950: #161f2c;
  --navy-900: #213247;
  --navy-800: #304a61;
  --sea-700: #c9573f;
  --sea-500: #ef765b;
  --aqua-300: #ffc78d;
  --foam: #fff8ee;
  --sand: #e7bd82;
  --gold: #e59b55;
  --ink: #1f2c38;
  --muted: #6f6c69;
  --line: rgba(58, 45, 36, 0.15);
  --surface: rgba(255, 250, 242, 0.94);
  --radius-lg: 10px 54px 10px 10px;
  --radius-md: 8px 30px 8px 8px;
  background:
    radial-gradient(circle at 84% 9%, rgba(239, 118, 91, 0.17), transparent 28rem),
    radial-gradient(circle at 8% 44%, rgba(229, 155, 85, 0.12), transparent 34rem),
    linear-gradient(180deg, #fff8ee 0%, #f8efe4 52%, #fffaf2 100%);
}

.brand-nauticmag::before {
  opacity: 0.2;
  background:
    repeating-linear-gradient(116deg, transparent 0 44px, rgba(201, 87, 63, 0.075) 45px 46px, transparent 47px 88px);
}

.brand-nauticmag .site-header {
  background: rgba(22, 31, 44, 0.95);
  border-bottom-color: rgba(255, 199, 141, 0.22);
}

.brand-nauticmag .site-nav > a:hover,
.brand-nauticmag .vessel-menu > summary:hover,
.brand-nauticmag .site-nav > a[aria-current="page"],
.brand-nauticmag .vessel-menu[open] > summary {
  background: rgba(239, 118, 91, 0.18);
}

.brand-nauticmag .hero {
  min-height: min(82vh, 820px);
  place-items: stretch;
  background-position: 22% center;
}

.brand-nauticmag .hero::before {
  background:
    linear-gradient(270deg, rgba(22, 31, 44, 0.94) 0%, rgba(22, 31, 44, 0.74) 39%, rgba(22, 31, 44, 0.08) 76%),
    linear-gradient(0deg, rgba(201, 87, 63, 0.34) 0%, transparent 38%);
}

.brand-nauticmag .hero::after {
  right: 0;
  bottom: -1px;
  left: 0;
  height: 76px;
  border-radius: 0;
  background: #fff8ee;
  clip-path: polygon(0 100%, 0 64%, 52% 0, 100% 48%, 100% 100%);
}

.brand-nauticmag .hero-content {
  display: flex;
  max-width: 600px;
  margin-right: max(70px, calc((100vw - 1240px) / 2));
  margin-left: auto;
  padding: 126px 0 154px;
  align-items: flex-end;
  flex-direction: column;
  text-align: right;
}

.brand-nauticmag .hero h1 {
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-weight: 750;
  line-height: 0.89;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

body.brand-nauticmag .hero h1,
body.brand-nauticmag .page-hero h1,
body.brand-nauticmag .section-heading h2,
body.brand-nauticmag .editorial-card h3,
body.brand-nauticmag .vessel-card h3 {
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
}

.brand-nauticmag .hero h1 em {
  color: #ffc78d;
  font-weight: 500;
}

.brand-nauticmag .hero-actions {
  justify-content: flex-end;
}

.brand-nauticmag .button,
.brand-nauticmag .eyebrow {
  border-radius: 8px;
}

.brand-nauticmag .button-primary {
  background: #ffc78d;
  box-shadow: 0 12px 38px rgba(239, 118, 91, 0.24);
}

.brand-nauticmag .section-heading {
  align-items: start;
}

.brand-nauticmag .section-heading h2 {
  font-weight: 760;
  line-height: 0.96;
  text-transform: uppercase;
}

.brand-nauticmag .editorial-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.brand-nauticmag .editorial-card {
  min-height: 320px;
  grid-column: span 7;
}

.brand-nauticmag .editorial-card:nth-child(even) {
  grid-column: span 5;
}

.brand-nauticmag .editorial-card h3,
.brand-nauticmag .vessel-card h3 {
  font-weight: 760;
  text-transform: uppercase;
}

.brand-nauticmag .editorial-card::after,
.brand-nauticmag .vessel-card::after {
  background: rgba(239, 118, 91, 0.22);
}

.brand-nauticmag .vessels-section {
  background:
    linear-gradient(115deg, rgba(201, 87, 63, 0.13), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(255, 199, 141, 0.17), transparent 28rem),
    #161f2c;
}

.brand-nauticmag .vessels-section::before {
  background-image:
    repeating-linear-gradient(116deg, transparent 0 52px, rgba(255, 199, 141, 0.12) 53px 55px, transparent 56px 94px);
}

.brand-nauticmag .vessel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brand-nauticmag .vessel-card {
  min-height: 252px;
}

.brand-nauticmag .site-footer {
  background: #161f2c;
}

.brand-nauticmag .site-footer::before {
  background: #fffaf2;
}

@media (max-width: 1080px) {
  .header-inner {
    min-height: 78px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 80px);
    overflow: auto;
    padding: 18px 20px 26px;
    align-items: stretch;
    flex-direction: column;
    background: rgba(3, 21, 33, 0.985);
    box-shadow: 0 24px 60px rgba(3, 21, 33, 0.35);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .vessel-menu > summary {
    justify-content: space-between;
    border-radius: 10px;
  }

  .mega-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .mega-menu::before {
    display: none;
  }

  .mega-menu a:hover {
    color: #fff;
    background: rgba(116, 224, 223, 0.12);
  }

  .editorial-grid,
  .vessel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-nauticmag .editorial-grid,
  .brand-nauticmag .vessel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-nauticmag .editorial-card,
  .brand-nauticmag .editorial-card:nth-child(even) {
    grid-column: span 1;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 720px) {
  :root {
    --content: min(100% - 28px, 1240px);
  }

  .brand img {
    max-width: 205px;
    max-height: 48px;
  }

  .hero {
    min-height: 690px;
    background-position: 63% center;
  }

  .brand-nauticmag .hero {
    background-position: 37% center;
  }

  .brand-nauticmag .hero::before {
    background:
      linear-gradient(0deg, rgba(22, 31, 44, 0.96) 0%, rgba(22, 31, 44, 0.72) 62%, rgba(22, 31, 44, 0.22) 100%),
      linear-gradient(90deg, rgba(201, 87, 63, 0.22), transparent);
  }

  .brand-nauticmag .hero-content {
    max-width: none;
    margin: 0 auto;
    padding: 122px 0 136px;
    align-items: flex-start;
    text-align: left;
  }

  .brand-nauticmag .hero-actions {
    justify-content: flex-start;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 21, 33, 0.91), rgba(3, 21, 33, 0.48)),
      linear-gradient(0deg, rgba(3, 21, 33, 0.7), transparent 52%);
  }

  .hero-content {
    padding: 90px 0 130px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 4.8rem);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .editorial-grid,
  .vessel-grid,
  .latest-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .brand-nauticmag .editorial-grid,
  .brand-nauticmag .vessel-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    min-height: 320px;
  }

  .vessel-card {
    min-height: 238px;
  }

  .mega-menu {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding-top: 104px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
