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

:root {
  --red: #d71920;
  --red-dark: #a90f16;
  --blue: #0a2f75;
  --blue-dark: #061b45;
  --white: #ffffff;
  --dark: #111827;
  --gray: #6b7280;
  --light: #f5f7fb;
  --light-blue: #eef4ff;
  --border: #e5e7eb;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* TOP BAR */

.top-bar {
  background: var(--blue-dark);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
}

/* HEADER */

.header {
  height: 86px;
  padding: 0 6%;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.logo span {
  display: block;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
}

.logo strong {
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--red);
}

.cart-btn {
  background: var(--red);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.3s;
}

.cart-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}


/* NUOVA HERO HOME ORIENTATA AL CATALOGO */

.home-catalog-hero {
  min-height: 760px;
  padding: 80px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.23), transparent 40%),
    linear-gradient(135deg, #f8fbff, #ffffff);
}

.home-catalog-hero .hero-text {
  max-width: 720px;
}

.home-catalog-hero h1 {
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1;
  color: var(--blue-dark);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.home-catalog-hero h1 strong {
  display: block;
  color: var(--red);
}

.home-catalog-hero .hero-text > p {
  max-width: 650px;
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 28px;
}

/* barra ricerca hero */

.hero-search-box {
  max-width: 680px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
  margin-bottom: 26px;
}

.hero-search-box input {
  border: none;
  outline: none;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: transparent;
}

.hero-search-box input::placeholder {
  color: #9ca3af;
}

.hero-search-box a {
  background: var(--red);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap;
}

.hero-search-box a:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* pannello categorie/prodotti */

.hero-products-panel {
  display: grid;
  gap: 22px;
}

.product-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.1);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.product-preview:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 65px rgba(17, 24, 39, 0.15);
}

.product-preview::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(10, 47, 117, 0.08);
  right: -38px;
  bottom: -38px;
}

.big-preview {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(6, 27, 69, 0.95), rgba(10, 47, 117, 0.82)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.09) 0,
      rgba(255,255,255,0.09) 2px,
      transparent 2px,
      transparent 14px
    );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.big-preview::after {
  background: rgba(255, 255, 255, 0.1);
}

.preview-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--light-blue);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.big-preview .preview-icon {
  background: rgba(255, 255, 255, 0.14);
}

.product-preview span,
.product-preview h3,
.product-preview h4,
.product-preview a {
  position: relative;
  z-index: 2;
}

.product-preview span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.big-preview span {
  color: #ffb8bd;
}

.product-preview h3 {
  font-size: 30px;
  line-height: 1.15;
  margin: 8px 0 18px;
}

.product-preview h4 {
  color: var(--blue-dark);
  font-size: 18px;
  margin-top: 7px;
}

.big-preview h3 {
  color: white;
}

.big-preview a {
  width: fit-content;
  background: var(--red);
  color: white;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.3s;
}

.big-preview a:hover {
  background: var(--red-dark);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.preview-grid .product-preview {
  min-height: 170px;
}

.red-preview {
  background: var(--red);
  border-color: var(--red);
}

.red-preview span,
.red-preview h4 {
  color: white;
}

.red-preview .preview-icon {
  background: rgba(255, 255, 255, 0.16);
}

.blue-preview {
  background: var(--blue);
  border-color: var(--blue);
}

.blue-preview span,
.blue-preview h4 {
  color: white;
}

.blue-preview .preview-icon {
  background: rgba(255, 255, 255, 0.16);
}

/* responsive nuova hero */

@media (max-width: 1050px) {
  .home-catalog-hero {
    grid-template-columns: 1fr;
  }

  .hero-products-panel {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .home-catalog-hero {
    padding: 55px 6%;
    min-height: auto;
  }

  .hero-search-box {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 12px;
  }

  .hero-search-box input {
    padding: 14px;
  }

  .hero-search-box a {
    text-align: center;
  }

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

  .product-preview h3 {
    font-size: 25px;
  }
}

/* SERVICES */

.services {
  padding: 70px 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  background: white;
}

.service {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.08);
}

.service span {
  font-size: 38px;
}

.service h3 {
  color: var(--blue-dark);
  margin: 15px 0 8px;
}

.service p {
  color: var(--gray);
}

/* CATEGORIES */

.categories {
  padding: 100px 6%;
  background: var(--light);
}

.section-title {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-title span {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.section-title h2 {
  color: var(--blue-dark);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 10px 0 16px;
}

.section-title p {
  color: var(--gray);
}

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

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(17, 24, 39, 0.12);
}

.category-card span {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 30px;
  margin-bottom: 20px;
}

.category-card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.category-card p {
  color: var(--gray);
  font-size: 15px;
}

/* FEATURED */

.featured {
  padding: 100px 6%;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.25), transparent 30%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.section-title.white h2,
.section-title.white p {
  color: white;
}

.section-title.white span {
  color: #ffb8bd;
}

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

.product-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.product-img {
  height: 230px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 32px;
  font-weight: 800;
}

.blue-img {
  background: linear-gradient(135deg, var(--blue), #4369b1);
}

.red-img {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.dark-img {
  background: linear-gradient(135deg, var(--dark), var(--blue));
}

.product-info {
  padding: 24px;
}

.product-info span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  color: var(--blue-dark);
  margin: 8px 0 10px;
}

.product-info p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 22px;
}

.product-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-info strong {
  color: var(--blue);
  font-size: 22px;
}

.product-info a {
  background: var(--red);
  color: white;
  padding: 10px 17px;
  border-radius: 999px;
  font-weight: 800;
}

/* CTA */

.cta {
  padding: 75px 6%;
  background: var(--red);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta span {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 8px 0 12px;
}

.cta p {
  opacity: 0.85;
}

.btn-white {
  background: white;
  color: var(--red);
}

/* FOOTER */

.footer {
  background: #07152f;
  color: white;
  padding: 70px 6%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer h3,
.footer h4 {
  margin-bottom: 16px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 10px;
}

/* CATALOGO */

.catalog-hero {
  padding: 105px 6%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 25, 32, 0.18), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(10, 47, 117, 0.24), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef5ff 100%);
  border-bottom: 1px solid var(--border);
}

.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 117, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 47, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
  pointer-events: none;
}

.catalog-hero::after {
  content: "🧰";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 250px;
  height: 250px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 105px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  z-index: 1;
}

.catalog-hero .tag,
.catalog-hero h1,
.catalog-hero p {
  position: relative;
  z-index: 2;
}

.catalog-hero .tag {
  margin-bottom: 20px;
  background: rgba(215, 25, 32, 0.1);
  color: var(--red);
  border: 1px solid rgba(215, 25, 32, 0.18);
}

.catalog-hero h1 {
  max-width: 820px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.catalog-hero p {
  max-width: 680px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.75;
}

.catalog-page {
  padding: 80px 6% 100px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--light) 18%, var(--light) 100%);
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 34px;
  align-items: start;
}

@media (max-width: 900px) {
  .catalog-hero {
    padding: 80px 6%;
  }

  .catalog-hero::after {
    opacity: 0.16;
    right: -35px;
    width: 220px;
    height: 220px;
    font-size: 90px;
  }

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

@media (max-width: 600px) {
  .catalog-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .catalog-hero p {
    font-size: 16px;
  }
}

.filters {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.filter-box h3 {
  color: var(--blue-dark);
  font-size: 16px;
  margin-bottom: 16px;
}

.filter-box input[type="text"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  outline: none;
}

.filter-box input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.1);
}

.filter-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 12px;
  cursor: pointer;
}

.filter-box label:last-child {
  margin-bottom: 0;
}

.filter-box input[type="radio"],
.filter-box input[type="checkbox"],
.filter-box input[type="range"] {
  accent-color: var(--red);
}

.filter-box input[type="range"] {
  width: 100%;
}

.price-text {
  margin-top: 12px;
  color: var(--gray);
}

.price-text strong {
  color: var(--blue);
}

.reset-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 15px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.reset-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.catalog-content {
  min-width: 0;
}

.catalog-top {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.catalog-top span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-top h2 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-top: 4px;
}

.catalog-top select {
  min-width: 210px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  outline: none;
}

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

.catalog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
  transition: 0.3s;
}

.catalog-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.13);
}

.catalog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  z-index: 2;
}

.catalog-image {
  height: 210px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.92), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 10px,
      rgba(255,255,255,0.12) 10px,
      rgba(255,255,255,0.12) 12px
    );
  display: grid;
  place-items: center;
}

.catalog-image span {
  font-size: 62px;
}

.catalog-info {
  padding: 22px;
}

.catalog-category {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-info h3 {
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.3;
  margin: 8px 0 10px;
  min-height: 46px;
}

.catalog-info p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 18px;
  min-height: 64px;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.catalog-meta span:first-child {
  color: var(--blue);
  font-weight: 800;
}

.available {
  color: #15803d;
  font-weight: 800;
}

.not-available {
  color: var(--red);
  font-weight: 800;
}

.catalog-price {
  margin-bottom: 18px;
}

.catalog-price strong {
  color: var(--blue);
  font-size: 23px;
}

.catalog-price small {
  margin-left: 8px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 700;
}

.catalog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.details-btn,
.add-cart-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.details-btn {
  background: var(--light-blue);
  color: var(--blue);
}

.details-btn:hover {
  background: var(--blue);
  color: white;
}

.add-cart-btn {
  background: var(--red);
  color: white;
}

.add-cart-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.add-cart-btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
}

.empty-message {
  display: none;
  text-align: center;
  padding: 70px 25px;
  background: white;
  border-radius: 26px;
  border: 1px solid var(--border);
}

.empty-message.show {
  display: block;
}

.empty-message h3 {
  color: var(--blue-dark);
  font-size: 24px;
  margin-bottom: 8px;
}

.empty-message p {
  color: var(--gray);
}

.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--blue-dark);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transform: translateY(30px);
  opacity: 0;
  transition: 0.3s;
  z-index: 999;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

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

  .services,
  .categories-grid,
  .products-grid,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .reset-btn {
    grid-column: span 2;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .top-bar {
    display: none;
  }

  .header {
    height: auto;
    padding: 18px 6%;
    flex-wrap: wrap;
  }

  .cart-btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 55px 6%;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats,
  .small-cards,
  .services,
  .categories-grid,
  .products-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .main-card {
    min-height: 300px;
  }

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

  .btn-white {
    width: 100%;
  }

  .catalog-hero {
    padding: 65px 6%;
  }

  .catalog-page {
    padding: 55px 6% 80px;
  }

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

  .reset-btn {
    grid-column: span 1;
  }

  .catalog-top {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-top select {
    width: 100%;
  }

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

  .catalog-info h3,
  .catalog-info p {
    min-height: auto;
  }

  .cart-toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
  }
}
/* CARRELLO */

.cart-hero {
  padding: 105px 6%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(215, 25, 32, 0.18), transparent 32%),
    radial-gradient(circle at 86% 72%, rgba(10, 47, 117, 0.24), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef5ff 100%);
  border-bottom: 1px solid var(--border);
}

.cart-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 117, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 47, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
  pointer-events: none;
}

.cart-hero::after {
  content: "🛒";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(7deg);
  width: 250px;
  height: 250px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 105px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  z-index: 1;
}

.cart-hero .tag,
.cart-hero h1,
.cart-hero p {
  position: relative;
  z-index: 2;
}

.cart-hero .tag {
  margin-bottom: 20px;
  background: rgba(215, 25, 32, 0.1);
  color: var(--red);
  border: 1px solid rgba(215, 25, 32, 0.18);
}

.cart-hero h1 {
  max-width: 820px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.cart-hero p {
  max-width: 680px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .cart-hero {
    padding: 80px 6%;
  }

  .cart-hero::after {
    opacity: 0.16;
    right: -35px;
    width: 220px;
    height: 220px;
    font-size: 90px;
  }
}

@media (max-width: 600px) {
  .cart-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .cart-hero p {
    font-size: 16px;
  }
}

.cart-page {
  padding: 80px 6% 100px;
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: start;
}

.cart-top {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.cart-top span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-top h2 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-top: 4px;
}

.continue-shopping {
  background: var(--light-blue);
  color: var(--blue);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.3s;
}

.continue-shopping:hover {
  background: var(--blue);
  color: white;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  display: grid;
  grid-template-columns: 96px 1fr 140px 130px;
  gap: 20px;
  align-items: center;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.cart-item-image {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.92), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 10px,
      rgba(255,255,255,0.12) 10px,
      rgba(255,255,255,0.12) 12px
    );
  display: grid;
  place-items: center;
}

.cart-item-image span {
  font-size: 42px;
}

.cart-item-info span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-item-info h3 {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.3;
  margin: 6px 0;
}

.cart-item-info p {
  color: var(--gray);
  font-size: 14px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.quantity-controls span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  color: var(--blue-dark);
}

.quantity-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.quantity-btn:hover {
  background: var(--blue);
  color: white;
}

.cart-item-total {
  text-align: right;
}

.cart-item-total strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 10px;
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.remove-btn:hover {
  text-decoration: underline;
}

.cart-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  position: sticky;
  top: 110px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.cart-summary h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin-bottom: 22px;
}

.summary-row,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row span,
.summary-total span {
  color: var(--gray);
}

.summary-row strong {
  color: var(--blue-dark);
}

.shipping-box {
  margin: 22px 0;
  padding: 20px;
  background: var(--light);
  border-radius: 20px;
}

.shipping-box h4 {
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.shipping-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.shipping-box input {
  accent-color: var(--red);
}

.shipping-box p {
  color: var(--gray);
  font-size: 13px;
  margin-top: 12px;
}

.summary-total {
  border-bottom: none;
  padding-top: 18px;
  margin-bottom: 22px;
}

.summary-total strong {
  color: var(--red);
  font-size: 26px;
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: white;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.3s;
  margin-bottom: 12px;
}

.checkout-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.checkout-btn.disabled {
  background: #d1d5db;
  color: #6b7280;
  pointer-events: none;
  transform: none;
}

.clear-cart-btn {
  width: 100%;
  border: none;
  background: var(--light-blue);
  color: var(--blue);
  padding: 14px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.clear-cart-btn:hover {
  background: var(--blue);
  color: white;
}

.empty-cart {
  display: none;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 70px 25px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.empty-cart.show {
  display: block;
}

.empty-cart h3 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-bottom: 10px;
}

.empty-cart p {
  color: var(--gray);
  margin-bottom: 24px;
}

/* RESPONSIVE CARRELLO */

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

  .cart-summary {
    position: static;
  }

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

  .quantity-controls {
    justify-content: flex-start;
    grid-column: 2;
  }

  .cart-item-total {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .cart-hero {
    padding: 65px 6%;
  }

  .cart-page {
    padding: 55px 6% 80px;
  }

  .cart-top {
    flex-direction: column;
    align-items: stretch;
  }

  .continue-shopping {
    text-align: center;
  }

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

  .cart-item-image {
    width: 100%;
    height: 170px;
  }

  .quantity-controls,
  .cart-item-total {
    grid-column: auto;
  }

  .cart-item-total {
    text-align: left;
  }
}
/* HERO HOME CON FOTO SFONDO */

.home-catalog-hero {
  min-height: 760px;
  padding: 50px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 27, 69, 0.92) 0%,
      rgba(6, 27, 69, 0.78) 48%,
      rgba(6, 27, 69, 0.45) 100%
    ),
    url("ferramenta.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.home-catalog-hero .tag {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-catalog-hero h1 {
  color: white;
}

.home-catalog-hero h1 strong {
  color: #ffb8bd;
}

.home-catalog-hero .hero-text > p {
  color: rgba(255, 255, 255, 0.82);
}

.home-catalog-hero .hero-stats div {
  background: rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--red);
  padding: 18px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.home-catalog-hero .hero-stats h3 {
  color: white;
}

.home-catalog-hero .hero-stats p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search-box {
  background: white;
}
/* CHECKOUT SEMPLICE */

.checkout-hero {
  padding: 90px 6%;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.22), transparent 40%),
    linear-gradient(135deg, #f8fbff, #ffffff);
}

.checkout-hero h1 {
  max-width: 900px;
  color: var(--blue-dark);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.checkout-hero p {
  max-width: 720px;
  color: var(--gray);
  font-size: 18px;
}

.checkout-page {
  padding: 80px 6% 100px;
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: start;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.checkout-block h2 {
  color: var(--blue-dark);
  font-size: 24px;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.1);
}

.delivery-options,
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.option-card,
.payment-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  gap: 12px;
  cursor: pointer;
}

.option-card input,
.payment-card input {
  accent-color: var(--red);
  margin-top: 4px;
}

.option-card strong,
.payment-card strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: 4px;
}

.option-card p,
.payment-card p {
  color: var(--gray);
  font-size: 13px;
}

.shipping-fields {
  margin-top: 22px;
}

.payment-message {
  margin-top: 18px;
  background: var(--light-blue);
  color: var(--blue);
  padding: 15px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
}

.confirm-order-btn {
  border: none;
  background: var(--red);
  color: white;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  position: sticky;
  top: 110px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.checkout-summary h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin-bottom: 22px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-item strong {
  color: var(--blue-dark);
  font-size: 14px;
  display: block;
}

.checkout-item span {
  color: var(--gray);
  font-size: 13px;
}

.checkout-item b {
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}

.checkout-empty {
  background: var(--light);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.checkout-empty p {
  color: var(--gray);
  margin-bottom: 12px;
}

.checkout-empty a {
  color: var(--red);
  font-weight: 800;
}

.summary-row,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row span,
.summary-total span {
  color: var(--gray);
}

.summary-row strong {
  color: var(--blue-dark);
}

.summary-total {
  border-bottom: none;
  padding-top: 18px;
}

.summary-total strong {
  color: var(--red);
  font-size: 26px;
}

.success-box {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.success-box h2 {
  color: var(--blue-dark);
  font-size: 34px;
  margin-bottom: 12px;
}

.success-box p {
  color: var(--gray);
  margin-bottom: 24px;
}

@media (max-width: 1050px) {
  .checkout-page {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .checkout-page {
    padding: 55px 6% 80px;
  }

  .form-grid,
  .delivery-options,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }
}/* ORDINE COMPLETATO */

.order-completed-page {
  min-height: 720px;
  padding: 90px 6%;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.22), transparent 40%),
    linear-gradient(135deg, #f8fbff, #ffffff);
  display: grid;
  place-items: center;
}

.order-completed-box {
  width: min(820px, 100%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 55px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.12);
}

.success-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  margin: 0 auto 22px;
}

.order-completed-box > span {
  display: inline-block;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.order-completed-box h1 {
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.order-completed-box p {
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.order-code-box {
  background: var(--light);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
}

.order-code-box small,
.order-info-grid small {
  display: block;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 6px;
}

.order-code-box strong {
  color: var(--blue);
  font-size: 22px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.order-info-grid div {
  background: var(--light);
  border-radius: 20px;
  padding: 18px;
}

.order-info-grid strong {
  color: var(--blue-dark);
  font-size: 15px;
}

.completed-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .order-completed-page {
    padding: 60px 6%;
  }

  .order-completed-box {
    padding: 34px 22px;
  }

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

  .completed-actions {
    flex-direction: column;
  }

  .completed-actions .btn {
    width: 100%;
  }
}
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.load-more-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.catalog-error {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.catalog-error h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.catalog-error p {
  color: var(--gray);
}

.catalog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ADMIN ORDINI */

.admin-hero {
  padding: 90px 6%;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.22), transparent 40%),
    linear-gradient(135deg, #f8fbff, #ffffff);
}

.admin-hero h1 {
  max-width: 900px;
  color: var(--blue-dark);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.admin-hero p {
  max-width: 720px;
  color: var(--gray);
  font-size: 18px;
}

.admin-page {
  padding: 80px 6% 100px;
  background: var(--light);
}

.admin-toolbar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.admin-toolbar span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-toolbar h2 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-top: 4px;
}

.admin-refresh-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-refresh-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.order-card-admin {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.order-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.order-admin-header span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-admin-header h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin: 5px 0;
}

.order-admin-header p {
  color: var(--gray);
  font-size: 14px;
}

.order-status {
  text-align: right;
}

.order-status span {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.order-status strong {
  display: block;
  color: var(--red);
  font-size: 26px;
}

.order-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.admin-info-box,
.admin-products-box,
.admin-note-box,
.admin-total-box {
  background: var(--light);
  border-radius: 20px;
  padding: 20px;
}

.admin-info-box h4,
.admin-products-box h4,
.admin-note-box h4 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.admin-info-box p,
.admin-note-box p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 5px;
}

.admin-info-box strong {
  color: var(--blue-dark);
}

.admin-products-box {
  margin-bottom: 18px;
}

.admin-product-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.admin-product-row:last-child {
  border-bottom: none;
}

.admin-product-row span {
  color: var(--gray);
  font-size: 14px;
}

.admin-product-row strong {
  color: var(--blue-dark);
  font-size: 14px;
  white-space: nowrap;
}

.admin-note-box {
  margin-bottom: 18px;
}

.admin-total-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.admin-total-box div {
  background: white;
  border-radius: 16px;
  padding: 16px;
}

.admin-total-box span {
  display: block;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 5px;
}

.admin-total-box strong {
  color: var(--blue);
  font-size: 18px;
}

.empty-admin {
  display: none;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 70px 25px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.empty-admin.show {
  display: block;
}

.empty-admin h3 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-bottom: 10px;
}

.empty-admin p {
  color: var(--gray);
}

.admin-loading,
.admin-error {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  color: var(--gray);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.06);
}

.admin-error h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .admin-toolbar,
  .order-admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .order-status {
    text-align: left;
  }

  .order-admin-grid,
  .admin-total-box {
    grid-template-columns: 1fr;
  }
}
/* ADMIN PRODOTTI */

.admin-products-page {
  padding: 80px 6% 100px;
  background: var(--light);
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 34px;
  align-items: start;
}

.admin-product-form-section,
.admin-products-list-section {
  min-width: 0;
}

.admin-product-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.admin-product-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  background: white;
}

.admin-product-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.1);
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
}

.admin-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-checkbox-row input {
  accent-color: var(--red);
}

.admin-submit-btn {
  width: 100%;
  border: none;
  background: var(--red);
  color: white;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-submit-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.admin-form-message {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.admin-form-message.show {
  display: block;
}

.admin-form-message.success {
  background: #dcfce7;
  color: #166534;
}

.admin-form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  display: grid;
  grid-template-columns: 90px 1fr 160px 130px;
  gap: 18px;
  align-items: center;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.admin-product-image {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.92), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 10px,
      rgba(255,255,255,0.12) 10px,
      rgba(255,255,255,0.12) 12px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-product-image span {
  font-size: 38px;
}

.admin-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-main > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-product-main h3 {
  color: var(--blue-dark);
  font-size: 18px;
  margin: 4px 0 6px;
}

.admin-product-main p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.admin-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-tags small {
  background: var(--light);
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.admin-product-tags small.available {
  color: #15803d;
}

.admin-product-tags small.not-available {
  color: var(--red);
}

.admin-product-numbers {
  display: grid;
  gap: 12px;
}

.admin-product-numbers div {
  background: var(--light);
  border-radius: 16px;
  padding: 12px;
}

.admin-product-numbers span {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-product-numbers strong {
  color: var(--blue-dark);
  font-size: 16px;
}

.admin-product-actions {
  display: grid;
  gap: 10px;
}

.edit-product-btn,
.delete-product-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.edit-product-btn {
  background: var(--light-blue);
  color: var(--blue);
}

.edit-product-btn:hover {
  background: var(--blue);
  color: white;
}

.delete-product-btn {
  background: #fee2e2;
  color: #991b1b;
}

.delete-product-btn:hover {
  background: var(--red);
  color: white;
}

@media (max-width: 1200px) {
  .admin-products-page {
    grid-template-columns: 1fr;
  }

  .admin-product-card {
    grid-template-columns: 90px 1fr;
  }

  .admin-product-numbers,
  .admin-product-actions {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .admin-products-page {
    padding: 55px 6% 80px;
  }

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

  .admin-product-image {
    width: 100%;
    height: 170px;
  }

  .admin-product-numbers,
  .admin-product-actions {
    grid-column: auto;
  }
}.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-cancel-btn {
  display: none;
  width: 100%;
  border: none;
  background: var(--light-blue);
  color: var(--blue);
  padding: 15px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-cancel-btn.show {
  display: block;
}

.admin-cancel-btn:hover {
  background: var(--blue);
  color: white;
}
/* ADMIN LOGIN */

.admin-login-page {
  min-height: 100vh;
  padding: 50px 6%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.24), transparent 40%),
    linear-gradient(135deg, #f8fbff, #ffffff);
}

.admin-login-box {
  width: min(520px, 100%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 42px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.13);
}

.login-logo {
  margin-bottom: 26px;
}

.admin-login-box h1 {
  color: var(--blue-dark);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  margin: 12px 0 14px;
}

.admin-login-box > p {
  color: var(--gray);
  margin-bottom: 26px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-login-btn {
  border: none;
  background: var(--red);
  color: white;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-login-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.login-message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.login-message.show {
  display: block;
}

.login-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.login-message.success {
  background: #dcfce7;
  color: #166534;
}

.back-site-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 800;
}

.back-site-link:hover {
  color: var(--red);
}

@media (max-width: 600px) {
  .admin-login-box {
    padding: 30px 22px;
  }
}/* ADMIN PRODOTTI - FIX COMPLETO */

.admin-products-page {
  padding: 80px 6% 100px;
  background: var(--light);
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 34px;
  align-items: start;
}

.admin-product-form-section,
.admin-products-list-section {
  min-width: 0;
}

.admin-product-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.admin-product-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  background: white;
}

.admin-product-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.1);
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
}

.admin-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-checkbox-row input {
  accent-color: var(--red);
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-submit-btn {
  width: 100%;
  border: none;
  background: var(--red);
  color: white;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-submit-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.admin-cancel-btn {
  display: none;
  width: 100%;
  border: none;
  background: var(--light-blue);
  color: var(--blue);
  padding: 15px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.admin-cancel-btn.show {
  display: block;
}

.admin-cancel-btn:hover {
  background: var(--blue);
  color: white;
}

.admin-form-message {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.admin-form-message.show {
  display: block;
}

.admin-form-message.success {
  background: #dcfce7;
  color: #166534;
}

.admin-form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  display: grid;
  grid-template-columns: 90px 1fr 160px 130px;
  gap: 18px;
  align-items: center;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.admin-product-image {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.92), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 10px,
      rgba(255,255,255,0.12) 10px,
      rgba(255,255,255,0.12) 12px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-product-image span {
  font-size: 38px;
}

.admin-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-main > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-product-main h3 {
  color: var(--blue-dark);
  font-size: 18px;
  margin: 4px 0 6px;
}

.admin-product-main p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.admin-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-tags small {
  background: var(--light);
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.admin-product-tags small.available {
  color: #15803d;
}

.admin-product-tags small.not-available {
  color: var(--red);
}

.admin-product-numbers {
  display: grid;
  gap: 12px;
}

.admin-product-numbers div {
  background: var(--light);
  border-radius: 16px;
  padding: 12px;
}

.admin-product-numbers span {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-product-numbers strong {
  color: var(--blue-dark);
  font-size: 16px;
}

.admin-product-actions {
  display: grid;
  gap: 10px;
}

.edit-product-btn,
.delete-product-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

.edit-product-btn {
  background: var(--light-blue);
  color: var(--blue);
}

.edit-product-btn:hover {
  background: var(--blue);
  color: white;
}

.delete-product-btn {
  background: #fee2e2;
  color: #991b1b;
}

.delete-product-btn:hover {
  background: var(--red);
  color: white;
}

@media (max-width: 1200px) {
  .admin-products-page {
    grid-template-columns: 1fr;
  }

  .admin-product-card {
    grid-template-columns: 90px 1fr;
  }

  .admin-product-numbers,
  .admin-product-actions {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .admin-products-page {
    padding: 55px 6% 80px;
  }

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

  .admin-product-image {
    width: 100%;
    height: 170px;
  }

  .admin-product-numbers,
  .admin-product-actions {
    grid-column: auto;
  }
}/* DETTAGLIO PRODOTTO */

.product-detail-page {
  padding: 70px 6% 100px;
  background: var(--light);
  min-height: 720px;
}

.back-to-catalog {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 800;
  transition: 0.3s;
}

.back-to-catalog:hover {
  color: var(--red);
}

.product-detail-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: stretch;
}

.product-detail-image {
  min-height: 540px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.94), rgba(215, 25, 32, 0.78)),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(255,255,255,0.12) 12px,
      rgba(255,255,255,0.12) 14px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.product-detail-image span {
  font-size: 110px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 42px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
}

.product-detail-category {
  display: inline-block;
  background: rgba(215, 25, 32, 0.1);
  color: var(--red);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.product-detail-info h1 {
  color: var(--blue-dark);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.product-detail-description {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 26px;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.product-detail-meta div {
  background: var(--light);
  border-radius: 18px;
  padding: 16px;
}

.product-detail-meta small {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 5px;
}

.product-detail-meta strong {
  color: var(--blue-dark);
  font-size: 15px;
}

.product-detail-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail-availability span {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.product-detail-availability span.available {
  background: #dcfce7;
  color: #15803d;
}

.product-detail-availability span.not-available {
  background: #fee2e2;
  color: #991b1b;
}

.product-detail-availability small {
  color: var(--gray);
}

.product-detail-price {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 28px;
}

.product-detail-price strong {
  color: var(--red);
  font-size: 38px;
}

.product-detail-price small {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 18px;
  font-weight: 800;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-detail-actions button {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.product-detail-actions button:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
}

.product-detail-loading,
.product-not-found {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 60px;
  text-align: center;
  color: var(--gray);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.product-not-found {
  display: none;
}

.product-not-found.show {
  display: block;
}

.product-not-found h1 {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.product-not-found p {
  margin-bottom: 24px;
}

@media (max-width: 1000px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .product-detail-page {
    padding: 45px 6% 80px;
  }

  .product-detail-info {
    padding: 28px 22px;
  }

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

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
  }
}/* BOTTONI GENERALI - FIX */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-red {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.25);
}

.btn-red:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(10, 47, 117, 0.22);
}

.btn-blue:hover {
  background: var(--blue-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--blue);
}

.btn-white:hover {
  background: var(--light-blue);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* FIX BOTTONI DETTAGLIO PRODOTTO */

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.product-detail-actions .btn {
  min-width: 210px;
}

.product-detail-actions button.btn {
  appearance: none;
  -webkit-appearance: none;
}

.product-detail-actions button:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 700px) {
  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
    min-width: auto;
  }
}/* =========================================================
   CONTATTI
   ========================================================= */

.contact-hero {
  padding: 105px 6%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 25, 32, 0.18), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(10, 47, 117, 0.24), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef5ff 100%);
  border-bottom: 1px solid var(--border);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 117, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 47, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
  pointer-events: none;
}

.contact-hero::after {
  content: "📞";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(7deg);
  width: 250px;
  height: 250px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 105px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  z-index: 1;
}

.contact-hero .tag,
.contact-hero h1,
.contact-hero p {
  position: relative;
  z-index: 2;
}

.contact-hero .tag {
  margin-bottom: 20px;
}

.contact-hero h1 {
  max-width: 820px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.contact-hero p {
  max-width: 680px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.75;
}

.contact-page {
  background: var(--light);
  padding: 80px 6% 100px;
}

.contact-info-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.contact-card span {
  font-size: 38px;
}

.contact-card h3 {
  color: var(--blue-dark);
  font-size: 20px;
  margin: 16px 0 10px;
}

.contact-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--red);
  font-weight: 900;
  word-break: break-word;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: stretch;
}

.contact-form-box,
.contact-side-box,
.map-placeholder {
  background: white;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-form-box h2 {
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin: 18px 0 12px;
}

.contact-form-box > p {
  color: var(--gray);
  margin-bottom: 26px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-side-box {
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.97), rgba(215, 25, 32, 0.86));
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-side-box::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -80px;
  background: rgba(255,255,255,0.13);
  border-radius: 50%;
}

.contact-side-icon {
  font-size: 86px;
  position: relative;
  z-index: 1;
}

.contact-side-box h3 {
  color: white;
  font-size: 32px;
  margin: 24px 0 12px;
  position: relative;
  z-index: 1;
}

.contact-side-box p {
  color: rgba(255,255,255,0.84);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.contact-side-box .btn {
  position: relative;
  z-index: 1;
  background: white;
  color: var(--blue);
}

.contact-message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.contact-message.show {
  display: block;
}

.contact-message.success {
  background: #dcfce7;
  color: #166534;
}

.contact-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.map-section {
  margin-top: 36px;
}

.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
}

.map-placeholder span {
  font-size: 54px;
}

.map-placeholder h3 {
  color: var(--blue-dark);
  font-size: 28px;
  margin-top: 12px;
}

.map-placeholder p {
  color: var(--gray);
  margin-top: 8px;
}

@media (max-width: 1050px) {
  .contact-info-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .contact-hero {
    padding: 80px 6%;
  }

  .contact-hero::after {
    opacity: 0.16;
    right: -35px;
    width: 220px;
    height: 220px;
    font-size: 90px;
  }

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

  .contact-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .contact-hero p {
    font-size: 16px;
  }

  .contact-form-box,
  .contact-side-box,
  .map-placeholder {
    padding: 26px 22px;
  }
}
/* =========================================================
   FIX RESPONSIVE HOME MOBILE CON FOTO HERO
   ========================================================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .top-bar {
    padding: 9px 5%;
    font-size: 11px;
    line-height: 1.4;
  }

  .header {
    min-height: auto;
    padding: 14px 5%;
    gap: 14px;
    align-items: center;
    background: white;
  }

  .logo-box {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 20px;
  }

  .logo span {
    font-size: 10px;
  }

  .logo strong {
    font-size: 16px;
  }

  .cart-btn {
    padding: 11px 14px;
    font-size: 12px;
  }

  .cart-btn span {
    width: 21px;
    height: 21px;
    font-size: 11px;
  }

  .nav {
    width: 100%;
    order: 3;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    background: var(--light);
    color: var(--blue);
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--border);
  }

  /* HERO HOME MOBILE CON FOTO */

  .hero {
    min-height: auto;
    padding: 68px 5% 52px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;

    background-image:
      linear-gradient(
        180deg,
        rgba(6, 27, 69, 0.90) 0%,
        rgba(6, 27, 69, 0.72) 48%,
        rgba(215, 25, 32, 0.50) 100%
      ),
      url("ferramenta.svg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
  }

  .hero .tag,
  .hero h1,
  .hero p,
  .hero-actions {
    position: relative;
    z-index: 2;
  }

  .hero .tag {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
  }

  .hero h1 {
    color: white;
    font-size: clamp(38px, 12vw, 58px);
    line-height: 0.98;
    letter-spacing: -2.2px;
    margin: 16px 0 18px;
    text-shadow: 0 7px 28px rgba(0, 0, 0, 0.72);
  }

  .hero p {
    color: rgba(255, 255, 255, 0.90);
    font-size: 15.8px;
    line-height: 1.75;
    max-width: 100%;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.62);
  }

  .hero-actions {
    margin-top: 26px;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 15px 18px;
  }

  .hero-actions .btn-blue {
    background: white;
    color: var(--blue);
  }

  .hero-visual {
    display: none;
  }

  /* SEZIONI HOME MOBILE */

  .section {
    padding: 62px 5%;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .section-title h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.2px;
  }

  .section-title p {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .categories-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card,
  .feature-card {
    border-radius: 24px;
    padding: 23px;
  }

  .category-card span,
  .feature-card span {
    font-size: 38px;
  }

  .category-card h3,
  .feature-card h3 {
    font-size: 20px;
    margin: 14px 0 8px;
  }

  .category-card p,
  .feature-card p {
    font-size: 14.5px;
    line-height: 1.6;
  }

  /* FOOTER MOBILE */

  .footer {
    grid-template-columns: 1fr;
    padding: 46px 5%;
    gap: 28px;
  }

  .footer h3 {
    font-size: 22px;
  }

  .footer h4 {
    font-size: 17px;
  }

  .footer p,
  .footer a {
    font-size: 14px;
  }
}
/* =========================================================
   RESPONSIVE CONTATTI - TELEFONO COME CATALOGO
   ========================================================= */

@media (max-width: 900px) {
  .contact-hero {
    padding: 80px 6%;
    position: relative;
    overflow: hidden;
  }

  .contact-hero::after {
    content: "📞";
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%) rotate(7deg);
    width: 220px;
    height: 220px;
    border-radius: 42px;
    display: grid;
    place-items: center;
    font-size: 90px;
    background:
      linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
    opacity: 0.16;
    z-index: 1;
  }

  .contact-hero .tag,
  .contact-hero h1,
  .contact-hero p {
    position: relative;
    z-index: 2;
  }

  .contact-info-section {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .contact-hero {
    padding: 78px 6%;
  }

  .contact-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
  }

  .contact-hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .contact-hero::after {
    right: -45px;
    width: 210px;
    height: 210px;
    font-size: 86px;
    opacity: 0.15;
  }

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

  .contact-form-box,
  .contact-side-box,
  .map-placeholder,
  .map-box {
    border-radius: 26px;
  }

  .contact-form-box,
  .contact-side-box,
  .map-placeholder {
    padding: 26px 22px;
  }
}
.hero-search-box button {
  border: none;
  background: var(--red);
  color: white;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}

.hero-search-box button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard-hero {
  padding: 95px 6%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 25, 32, 0.18), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(10, 47, 117, 0.24), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef5ff 100%);
  border-bottom: 1px solid var(--border);
}

.admin-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 117, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 47, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
  pointer-events: none;
}

.admin-dashboard-hero::after {
  content: "📊";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(7deg);
  width: 250px;
  height: 250px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 105px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  z-index: 1;
}

.admin-dashboard-hero .tag,
.admin-dashboard-hero h1,
.admin-dashboard-hero p {
  position: relative;
  z-index: 2;
}

.admin-dashboard-hero .tag {
  margin-bottom: 20px;
}

.admin-dashboard-hero h1 {
  max-width: 820px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.admin-dashboard-hero p {
  max-width: 680px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.75;
}

.dashboard-page {
  padding: 80px 6% 100px;
  background: var(--light);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.dashboard-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.dashboard-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -45px;
  bottom: -45px;
  border-radius: 50%;
  background: rgba(10, 47, 117, 0.07);
}

.dashboard-stat-card.warning::after {
  background: rgba(215, 25, 32, 0.08);
}

.dashboard-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  margin-bottom: 18px;
}

.dashboard-stat-card span {
  display: block;
  color: var(--gray);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dashboard-stat-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.dashboard-stat-card p {
  color: var(--gray);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.dashboard-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-panel-header span {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dashboard-panel-header h2 {
  color: var(--blue-dark);
  font-size: 28px;
}

.dashboard-link-btn {
  background: var(--light-blue);
  color: var(--blue);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  transition: 0.3s;
}

.dashboard-link-btn:hover {
  background: var(--blue);
  color: white;
}

.latest-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.latest-order-card {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.8fr 0.7fr;
  gap: 16px;
  align-items: center;
  background: var(--light);
  border-radius: 22px;
  padding: 18px;
}

.latest-order-main span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.latest-order-main h3 {
  color: var(--blue-dark);
  font-size: 17px;
  margin: 4px 0;
}

.latest-order-main p,
.latest-order-info small,
.latest-order-status small,
.latest-order-total small {
  display: block;
  color: var(--gray);
  font-size: 12px;
}

.latest-order-info strong,
.latest-order-status strong,
.latest-order-total strong {
  display: block;
  color: var(--blue-dark);
  font-size: 14px;
  margin-top: 4px;
}

.latest-order-status strong.paid {
  color: #15803d;
}

.latest-order-status strong.pending {
  color: var(--red);
}

.latest-order-total strong {
  color: var(--red);
  font-size: 16px;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-actions a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--light);
  border-radius: 22px;
  padding: 18px;
  transition: 0.3s;
}

.dashboard-actions a:hover {
  background: var(--light-blue);
  transform: translateX(4px);
}

.dashboard-actions a > span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.dashboard-actions strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.dashboard-actions small {
  color: var(--gray);
  line-height: 1.5;
}

.dashboard-loading,
.dashboard-empty,
.dashboard-error {
  background: var(--light);
  border-radius: 22px;
  padding: 32px;
  text-align: center;
  color: var(--gray);
}

.dashboard-empty h3,
.dashboard-error h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .admin-dashboard-hero {
    padding: 80px 6%;
  }

  .admin-dashboard-hero::after {
    opacity: 0.16;
    right: -35px;
    width: 220px;
    height: 220px;
    font-size: 90px;
  }

  .admin-dashboard-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .admin-dashboard-hero p {
    font-size: 16px;
  }

  .dashboard-page {
    padding: 60px 6% 80px;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .dashboard-stat-card strong {
    font-size: 34px;
  }
}
/* =========================================================
   GESTIONE STATI ORDINE ADMIN
   ========================================================= */

.order-management-box {
  margin-top: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 14px;
  align-items: end;
}

.order-management-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-management-field label {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.order-management-field select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--blue-dark);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.order-management-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.08);
}

.save-order-status-btn,
.delete-order-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.3s;
  white-space: nowrap;
}

.save-order-status-btn {
  background: var(--blue);
  color: white;
}

.save-order-status-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.delete-order-btn {
  background: #fee2e2;
  color: #991b1b;
}

.delete-order-btn:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

.order-update-message {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.order-update-message.show {
  display: block;
}

.order-update-message.success {
  background: #dcfce7;
  color: #166534;
}

.order-update-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.order-status span.paid {
  background: #dcfce7;
  color: #166534;
}

.order-status span.pending {
  background: #fee2e2;
  color: #991b1b;
}

.order-status span.refunded {
  background: #e0e7ff;
  color: #3730a3;
}

@media (max-width: 1000px) {
  .order-management-box {
    grid-template-columns: 1fr 1fr;
  }

  .save-order-status-btn,
  .delete-order-btn {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .order-management-box {
    grid-template-columns: 1fr;
  }
}/* =========================================================
   PAGINE LEGALI
   ========================================================= */

.legal-hero {
  padding: 105px 6%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 25, 32, 0.18), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(10, 47, 117, 0.24), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef5ff 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 117, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(10, 47, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
  pointer-events: none;
}

.legal-hero::after {
  content: "📄";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(7deg);
  width: 250px;
  height: 250px;
  border-radius: 42px;
  display: grid;
  place-items: center;
  font-size: 105px;
  background:
    linear-gradient(135deg, rgba(10, 47, 117, 0.96), rgba(215, 25, 32, 0.85));
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
  z-index: 1;
}

.legal-hero .tag,
.legal-hero h1,
.legal-hero p {
  position: relative;
  z-index: 2;
}

.legal-hero .tag {
  margin-bottom: 20px;
}

.legal-hero h1 {
  max-width: 820px;
  color: var(--blue-dark);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.legal-hero p {
  max-width: 680px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.75;
}

.legal-page {
  padding: 80px 6% 100px;
  background: var(--light);
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 46px;
  box-shadow: var(--shadow);
}

.legal-updated {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.legal-content h2 {
  color: var(--blue-dark);
  font-size: 26px;
  margin: 34px 0 14px;
  line-height: 1.2;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 14px 0 24px 22px;
}

.legal-content li {
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--blue-dark);
}

.legal-note {
  margin-top: 38px;
  background: var(--light-blue);
  color: var(--blue);
  padding: 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .legal-hero {
    padding: 80px 6%;
  }

  .legal-hero::after {
    opacity: 0.16;
    right: -35px;
    width: 220px;
    height: 220px;
    font-size: 90px;
  }

  .legal-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-page {
    padding: 55px 6% 80px;
  }

  .legal-content {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 15px;
  }
}
.load-more-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.load-more-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.load-more-btn.hidden {
  display: none;
}
/* =========================================================
   CATALOGO PRODOTTI - GRIGLIA E CARD
   ========================================================= */

.catalog-content {
  min-width: 0;
}

.catalog-toolbar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catalog-toolbar span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-toolbar h2 {
  color: var(--blue-dark);
  font-size: 30px;
  margin-top: 4px;
}

.catalog-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.catalog-product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: 0.3s;
}

.catalog-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.catalog-product-image {
  height: 210px;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.14), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10, 47, 117, 0.22), transparent 40%),
    linear-gradient(135deg, #f8fbff, #eef5ff);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.catalog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: 0.3s;
}

.catalog-product-card:hover .catalog-product-image img {
  transform: scale(1.04);
}

.catalog-product-image span {
  font-size: 70px;
}

.catalog-product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-product-category {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.4;
}

.catalog-product-info h3 {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-product-info p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 18px;
}

.catalog-product-meta small {
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
}

.catalog-product-meta small.available {
  color: #15803d;
}

.catalog-product-meta small.unavailable {
  color: var(--red);
}

.catalog-product-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-product-bottom strong {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.catalog-product-actions {
  display: flex;
  gap: 10px;
}

.details-btn,
.add-cart-btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.details-btn {
  background: var(--light-blue);
  color: var(--blue);
}

.details-btn:hover {
  background: var(--blue);
  color: white;
}

.add-cart-btn {
  background: var(--red);
  color: white;
}

.add-cart-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.add-cart-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.catalog-loading,
.catalog-empty {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 45px;
  text-align: center;
  color: var(--gray);
  box-shadow: var(--shadow);
}

.catalog-empty h3 {
  color: var(--blue-dark);
  font-size: 26px;
  margin-bottom: 10px;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.load-more-btn {
  border: none;
  background: var(--blue);
  color: white;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.load-more-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.load-more-btn.hidden {
  display: none;
}

/* =========================================================
   SIDEBAR FILTRI CATALOGO
   ========================================================= */

.catalog-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}

.filter-box {
  margin-bottom: 20px;
}

.filter-box:last-child {
  margin-bottom: 0;
}

.filter-box label {
  display: block;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 9px;
}

.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--blue-dark);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 47, 117, 0.08);
}

/* =========================================================
   RESPONSIVE CATALOGO
   ========================================================= */

@media (max-width: 1200px) {
  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-page {
    grid-template-columns: 1fr !important;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .catalog-products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    padding: 22px;
  }

  .catalog-toolbar h2 {
    font-size: 24px;
  }

  .catalog-product-image {
    height: 190px;
  }

  .catalog-product-actions {
    flex-direction: column;
  }
}
/* Logo ufficiale Ferramenta Brizzi */
.logo { flex-shrink: 0; }
.brand-logo { display: block; width: 225px; max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 768px) { .brand-logo { width: 180px; } }
@media (max-width: 380px) { .brand-logo { width: 155px; } }
