/* Offerte Amazon — design system pubblico */
:root {
  --brand: #e85d04;
  --brand-deep: #c44d03;
  --ink: #15202b;
  --ink-soft: #3d4f5f;
  --sea: #0f6b6d;
  --sea-soft: #1a8a8c;
  --paper: #f7f5f1;
  --paper-2: #eef3f6;
  --line: rgba(21, 32, 43, 0.1);
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(21, 32, 43, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 107, 109, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 93, 4, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 241, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  color: var(--brand);
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-main a {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--ink);
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-main a:hover::after,
.nav-main a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: var(--sea);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 43, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 95%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  animation: rise 0.7s ease both;
}

.hero-brand span {
  color: var(--brand);
}

.hero h1,
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36ch;
  font-weight: 500;
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.7s ease 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-text {
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-count {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Offer cards (interaction containers) */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(21, 32, 43, 0.12);
}

.offer-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
}

.offer-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.offer-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.offer-price .now {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
}

.offer-price .was {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.offer-coupon {
  display: inline-flex;
  align-self: start;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 107, 109, 0.1);
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.offer-cta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
}

.carousel-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.carousel-row > * {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}

.loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Split value props (chi siamo / home) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.panel.sea {
  background: linear-gradient(160deg, rgba(15, 107, 109, 0.1), rgba(255, 255, 255, 0.85));
}

.panel.warm {
  background: linear-gradient(160deg, rgba(232, 93, 4, 0.1), rgba(255, 255, 255, 0.85));
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.point-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.point-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.point-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.point-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.point-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-card-cover {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(15, 107, 109, 0.35), rgba(232, 93, 4, 0.35)),
    var(--paper-2);
  background-size: cover;
  background-position: center;
}

.blog-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.blog-meta {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--sea);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}

.article-content {
  font-size: 1.05rem;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.15rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 1.8rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article-content ul {
  margin: 0 0 1.15rem 1.2rem;
}

.article-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line);
}

/* Page title band */
.page-band {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-band h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.page-band p {
  color: var(--ink-soft);
  max-width: 48ch;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.footer-brand span {
  color: var(--brand);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* Search strip */
.search-strip {
  padding: 0 0 1.5rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
  max-width: 640px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--ink);
}

.search-box button {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

/* Empty */
.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .nav-main,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

@media (max-width: 640px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
