/* Base */
:root {
  --color-bg: #d5dde6;
  --color-bg-soft: #bcc6d1;
  --color-surface: rgba(241, 246, 251, 0.78);
  --color-surface-strong: rgba(250, 253, 255, 0.94);
  --color-text: #1c1c1c;
  --color-muted: rgba(28, 28, 28, 0.72);
  --color-border: rgba(95, 112, 130, 0.32);
  --color-accent: #c2a96a;
  --color-accent-dark: #a18b55;
  --color-accent-soft: #dbc78f;
  --color-warm: #7a5c3e;
  --color-warm-soft: rgba(122, 92, 62, 0.26);
  --color-warm-strong: #5f452d;
  --color-accent-ink: #1c1c1c;
  --color-btn-lime: #c6ff3d;
  --color-btn-violet: #6d4ad3;
  --color-subtitle-orange: #c57b36;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(58, 72, 86, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url('assets/sfondo-pattern.png');
  background-repeat: repeat;
  background-size: 480px auto;
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-btn-violet);
  opacity: 1;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(188, 198, 209, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  border: 0;
  background-color: transparent;
  padding: 0;
  transform: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  image-rendering: -webkit-optimize-contrast;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
}

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

.nav a {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-warm-soft) 130%);
}

.cta {
  background: linear-gradient(135deg, #5d3dbf 0%, var(--color-btn-violet) 55%, #8a63ec 100%);
  color: var(--color-accent-ink);
  font-weight: 700;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  background: linear-gradient(135deg, var(--color-warm-strong) 0%, var(--color-warm) 85%, var(--color-surface-strong) 170%);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  color: var(--color-accent-ink);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.hamburger {
  width: 1.25rem;
  height: 0.1rem;
  background: currentColor;
  position: relative;
  border-radius: 999px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 0.1rem;
  background: currentColor;
  border-radius: 999px;
  left: 0;
}

.hamburger::before {
  top: -0.4rem;
}

.hamburger::after {
  bottom: -0.4rem;
}

.hero {
  position: relative;
  min-height: 75vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  background: url("assets/hero-daweed-9930.jpg?v=1") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 241, 232, 0.78) 0%, rgba(245, 241, 232, 0.38) 58%, rgba(245, 241, 232, 0.86) 100%);
}

.hero-content {
  position: relative;
  max-width: 860px;
  padding: 0 1rem;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.02em;
}

.hero p {
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-content > p:first-of-type {
  color: var(--color-warm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(219, 199, 143, 0.66) 0%, rgba(194, 169, 106, 0.74) 100%);
  color: var(--color-accent-ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: linear-gradient(135deg, rgba(198, 255, 61, 0.68) 0%, rgba(219, 199, 143, 0.82) 100%);
  transform: translateY(-1px);
}

.button.solid {
  background: linear-gradient(135deg, rgba(198, 255, 61, 0.95) 0%, var(--color-accent) 55%, var(--color-accent-soft) 100%);
  border-color: transparent;
  color: var(--color-accent-ink);
}

.section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(2px);
}

.section:nth-of-type(even) {
  background: rgba(235, 240, 245, 0.62);
  backdrop-filter: blur(2px);
}

.bg-light {
  background: rgba(235, 240, 245, 0.62);
  backdrop-filter: blur(2px);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

/* Sottotitoli articoli alternati nero/arancione */
.news-article h3,
.news-featured-content .news-date,
.news-card-content .news-date,
.journalistic-category,
.journalistic-figure figcaption {
  color: var(--color-subtitle-orange);
}

.news-article h3:nth-of-type(odd),
.news-grid .news-card:nth-of-type(odd) .news-card-content h3,
.news-grid .news-card:nth-of-type(odd) .news-card-content .news-date,
.journalistic-category:nth-child(odd) {
  color: var(--color-text);
}

.news-article h3:nth-of-type(even),
.news-grid .news-card:nth-of-type(even) .news-card-content h3,
.news-grid .news-card:nth-of-type(even) .news-card-content .news-date,
.journalistic-category:nth-child(even) {
  color: var(--color-subtitle-orange);
}

p {
  margin: 0 0 1.25rem;
}

.grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.grid-item {
  min-width: 0;
}

#story .grid-item > p:first-of-type {
  color: var(--color-warm);
}

.responsive-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

img {
  max-width: 100%;
}

.gallery {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.story-news-featured {
  margin-top: 2.4rem;
}

.story-news-featured .news-featured-content h2 {
  color: var(--color-text);
}

.story-news-featured .news-featured-content .news-date {
  color: var(--color-warm);
  font-weight: 600;
}

.story-news-featured .news-featured-image {
  min-height: 360px;
}

.story-news-featured .news-featured-image img {
  object-position: center;
}

.article-readmore {
  margin-top: 0.75rem;
}

.article-readmore summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
}

.article-readmore summary::-webkit-details-marker {
  display: none;
}

.article-readmore[open] summary {
  margin-bottom: 0.9rem;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.shipping-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.shipping-item h3 {
  margin-top: 0;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  background: var(--color-surface);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.contact-form {
  margin-top: 2rem;
  max-width: 720px;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.22);
}

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-muted);
}

input,
textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(194, 169, 106, 0.9);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.26);
}

.site-footer {
  padding: 2rem 0;
  background: rgba(188, 198, 209, 0.75);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .header-inner {
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
  }

  .logo {
    width: 62px;
    height: 62px;
    padding: 0;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 72px);
  }

  .brand-name {
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw, 360px);
    padding: 5rem 1rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    background: rgba(218, 227, 236, 0.98);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.28);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    width: 100%;
    text-align: center;
  }

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

}

/* Shop + Cart */

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-content h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-footer .price {
  font-weight: 700;
}

.consulting-cta {
  width: min(100%, 680px);
  min-height: 64px;
  padding: 1rem 2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cart-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 320px;
  align-items: flex-start;
  margin-top: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: 1rem;
  background: var(--color-surface);
  padding: 1rem;
  border-radius: var(--radius);
  align-items: center;
}

.cart-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cart-item-controls label {
  font-weight: 500;
  color: var(--color-muted);
}

.cart-item-controls input {
  width: 4.2rem;
}

.cart-item-price {
  font-weight: 700;
  text-align: right;
}

.cart-summary {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-summary h3 {
  margin-top: 0;
}

.cart-summary .total {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0 1.5rem;
}

.order-contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 320px 1fr;
  align-items: flex-start;
  margin-top: 2rem;
}

.order-summary-card,
.order-contact-card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-summary-card h3,
.order-contact-card h3 {
  margin-top: 0;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.order-summary-card .total {
  margin: 1.1rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.order-contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.order-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.empty-cart {
  padding: 2rem;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.subscription-panel {
  max-width: 600px;
  margin-top: 2rem;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.subscription-panel form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.subscription-confirm {
  margin-top: 1.25rem;
  color: var(--color-warm-strong);
  font-weight: 600;
  min-height: 1.4rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.news-article img {
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius);
}

.news-article h2, .news-article h3 {
  margin-top: 2rem;
}

.news-article p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ============ NEWS SECTION IMPROVEMENTS ============ */

.news-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

/* Featured (Prima news grande) */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-surface-strong);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.news-featured-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.news-featured-content h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-warm);
}

.news-featured-content .news-date {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.news-featured-content .news-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Grid delle news rimanenti */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* Card singola news */
.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  background: var(--color-surface-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-subtitle-orange);
  line-height: 1.3;
}

.news-card-content .news-date {
  font-size: 0.9rem;
  color: var(--color-subtitle-orange);
  font-weight: 500;
  margin-bottom: 1rem;
}

.news-card-content .news-excerpt {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* In home i titoli news restano colore standard, non arancione */
#home-news .news-featured-content h2,
#home-news .news-card-content h3 {
  color: var(--color-text);
}

/* Solo pagina news dedicata: titoli neri, sottotitoli arancioni */
.page-news .news-featured-content h2,
.page-news .news-card-content h3 {
  color: #1c1c1c;
}

.page-news .news-featured-content .news-date,
.page-news .news-card-content .news-date {
  color: var(--color-subtitle-orange);
}

/* Immagine primaria nella home: dimensione naturale, senza crop forzato */
#home-news .news-featured.news-featured-primary .news-featured-image {
  aspect-ratio: auto;
  align-items: flex-start;
  justify-content: flex-start;
}

#home-news .news-featured.news-featured-primary .news-featured-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Immagine primaria nella news dedicata: dimensione naturale, senza crop forzato */
.page-news .news-featured.news-featured-primary .news-featured-image {
  aspect-ratio: auto;
  align-items: flex-start;
  justify-content: flex-start;
}

.page-news .news-featured.news-featured-primary .news-featured-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .grid,
  .gallery,
  .shipping-grid,
  .shop-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 68vh;
    padding: 3.5rem 1rem;
  }

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

  .news-featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-featured-image {
    aspect-ratio: 4 / 3;
  }

  .news-featured-content h2 {
    font-size: 1.6rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card-image {
    height: 200px;
  }

  .story-news-featured .news-featured-image {
    aspect-ratio: 4 / 3;
  }

  .social-links,
  .footer-links {
    gap: 0.75rem;
  }

/* ===========================================
   NEWS FULLSCREEN STYLE (GIORNALISTICO)
   =========================================== */

.news-fullscreen-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.news-fullscreen-article {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.news-fullscreen-image {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.news-fullscreen-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-fullscreen-article:hover .news-fullscreen-image img {
  transform: scale(1.02);
}

.news-fullscreen-content {
  padding: 3rem;
}

/* ============ JOURNALISTIC NEWS STYLE ============ */

.news-journalistic {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.journalistic-article {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.journalistic-figure {
  margin: 0 0 2rem 0;
  position: relative;
}

.journalistic-figure img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.journalistic-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.journalistic-content {
  padding: 0 1rem;
}

.journalistic-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Alterna colori sottotitoli */
.journalistic-category:nth-child(odd) {
  color: var(--color-text);
  background: var(--color-warm-soft);
  border: 1px solid var(--color-warm-strong);
}

.journalistic-category:nth-child(even) {
  color: var(--color-subtitle-orange);
  background: var(--color-surface);
  border: 1px solid var(--color-accent-dark);
}

.journalistic-article h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid;
}

/* Alterna colori titoli */
.journalistic-article:nth-of-type(4n+1) h2 {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.journalistic-article:nth-of-type(4n+2) h2 {
  color: var(--color-warm);
  border-color: var(--color-warm);
}

.journalistic-article:nth-of-type(4n+3) h2 {
  color: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
}

.journalistic-article:nth-of-type(4n) h2 {
  color: var(--color-text);
  border-color: var(--color-border);
}

.journalistic-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.journalistic-text:first-of-type::first-letter {
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .journalistic-article h2 {
    font-size: 1.5rem;
  }
  
  .journalistic-text {
    font-size: 1rem;
  }
  
  .journalistic-figure img {
    max-height: 300px;
  }
}

.news-fullscreen-meta {
  margin-bottom: 1rem;
}

.news-fullscreen-meta .news-date {
  background: var(--color-warm-soft);
  color: var(--color-accent-ink);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.news-fullscreen-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 1rem 0 2rem 0;
  line-height: 1.1;
}

.news-fullscreen-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.news-fullscreen-text p {
  margin-bottom: 1.5rem;
}

.news-fullscreen-text p:last-child {
  margin-bottom: 0;
}

/* Responsive per fullscreen news */
@media (max-width: 768px) {
  .news-fullscreen-container {
    gap: 2rem;
  }

  .news-fullscreen-image {
    height: 40vh;
    min-height: 250px;
  }

  .news-fullscreen-content {
    padding: 2rem 1.5rem;
  }

  .news-fullscreen-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin: 1rem 0 1.5rem 0;
  }

  .news-fullscreen-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .news-fullscreen-content {
    padding: 1.5rem 1rem;
  }

  .news-fullscreen-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .news-fullscreen-text {
    font-size: 1rem;
  }
}
    padding-right: 1rem;
  }
}

.news-card h3 {
  margin: 0 0 0.75rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.2rem;
}

/* ── Forum layout ── */
.forum-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

/* Pannello input */
.forum-input-panel {
  background: var(--color-surface-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 5rem;
}

.forum-input-panel h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--color-warm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.forum-input-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forum-input-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

.forum-input-panel input,
.forum-input-panel textarea {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--color-text);
  resize: vertical;
}

.forum-input-panel input:focus,
.forum-input-panel textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.95);
}

.forum-status {
  font-size: 0.88rem;
  margin: 0;
  min-height: 1.2rem;
}

.forum-status.success { color: #2e7d32; }
.forum-status.error   { color: #c62828; }

/* Area chat / messaggi */
.forum-chat-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forum-chat-area h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--color-warm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.forum-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forum-empty {
  color: var(--color-muted);
  font-style: italic;
}

/* Singola card messaggio */
.forum-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(58,72,86,0.10);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.2s;
}

.forum-card--new {
  border-left-color: var(--color-btn-lime);
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.forum-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.forum-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warm) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forum-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.forum-card-meta strong {
  font-size: 0.95rem;
}

.forum-card-time {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.forum-card-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--color-text);
}

.forum-card-message {
  margin: 0 0 0.6rem;
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.forum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.forum-tag {
  background: linear-gradient(135deg, rgba(194, 169, 106, 0.26) 0%, rgba(122, 92, 62, 0.24) 125%);
  color: var(--color-accent-ink);
  border: 1px solid rgba(194, 169, 106, 0.52);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
}

/* Risposte */
.forum-replies-toggle {
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
}

.forum-replies-toggle summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  list-style: none;
  user-select: none;
}

.forum-replies-toggle summary:hover { color: var(--color-accent-dark); }

.forum-replies-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.forum-reply {
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--color-accent-soft);
}

.forum-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  gap: 0.5rem;
}

.forum-reply-header strong { font-size: 0.88rem; }

.forum-reply-time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.forum-reply p { margin: 0; font-size: 0.9rem; }

.forum-no-replies {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0;
}

/* Form risposta inline */
.forum-reply-form { margin-top: 0.75rem; }

.forum-reply-inputs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-reply-inputs input {
  flex: 1;
  min-width: 120px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 0.88rem;
}

.forum-reply-inputs input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Mobile: layout verticale */
@media (max-width: 860px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .forum-input-panel {
    position: static;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(100%);
  background: rgba(245, 241, 232, 0.96);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 999;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .order-contact-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-price {
    text-align: left;
  }
}
