.nav-left a:hover {
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}
nav .left a:hover {
  background-color: transparent !important;
  color: #fff;
}
nav a:hover {
  box-shadow: none !important;
}

/* --- CARD GRANDI E CENTRATE PER SHOP --- */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.product-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px 24px 18px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.product-card img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  margin: 18px 0 0 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  aspect-ratio: 5 / 4;
}
/* ====== Layout di main ====== */
/* NAVBAR base */
body{
  max-width: 100%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: #0ea5e9;
  border-bottom: 1px solid #0284c7;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* logo */
nav img.left {
  height: 40px;
  flex-shrink: 0; /* non farlo schiacciare */
}

nav .left {
  max-width: 100px;
  width: 100px;
}

nav .left a {
  box-shadow: none !important;
}

/* menu desktop */
nav .center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .center a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: .5rem;
}

nav .center a:hover {
  background: rgba(255,255,255,0.15);
}

/* login button */
.btn-login {
  padding: .5rem 1rem;
  border: 1px solid #fff;
  background: #fff;
  color: #0ea5e9;
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 28px;
}

/* hamburger */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  margin-left: .5rem;
}

.btn-login {
  padding: .5rem 1rem;
  border: 1px solid #fff;
  background: #fff;
  color: #0ea5e9;
  border-radius: .5rem;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
}

/* -------- Mobile view -------- */
@media (max-width: 768px) {
  /* logo a sinistra, login + hamburger a destra */
  nav {
    justify-content: space-between;
  }

  /* il menu diventa a scomparsa */
  nav .center {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: #0ea5e9;
    border-top: 1px solid #0284c7;
    display: none;
    padding: 1rem 0;
    gap: 1rem;
  }

  nav .center.active {
    display: flex;
  }

  nav .center a {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  /* hamburger visibile */
  .nav-toggle {
    display: block;
  }

  /* login e hamburger stanno insieme a destra */
  .btn-login {
    order: 2;
  }
  .nav-toggle {
    order: 1;
  }
}


.navbar {
  display: flex;
  justify-content: space-evenly; /* distribuisce i blocchi */
  align-items: center;
  background-color: #333;
  padding: 10px;
}

.left {
  flex: 1; /* occupa spazio a sinistra */
  text-align: left;
  color: white;
}

.center {
  flex: auto; /* occupa spazio al centro */
  text-align: center;
  align-items: center;
}

.right {
  flex: auto; /* occupa spazio a destra */
  text-align: right;
}


nav a {
    color: #0074D9;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

nav .dropdown {
    position: relative;
    display: inline-block;
}

nav .dropdown-toggle {
    cursor: pointer;
    color: #0074D9;
    background: none;
    border: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

nav .dropdown-toggle:hover,
nav .dropdown-toggle:focus {
    background-color: #0074D9;
    color: #fff;
}

nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    width: 100%;
}

nav .dropdown:hover .dropdown-menu,
nav .dropdown:focus-within .dropdown-menu {
    display: block;
}

nav .dropdown-menu a {
    color: #0074D9;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    display: block;
    border-radius: 0;
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s;
}

nav .dropdown-menu a:hover {
    background-color: #0074D9;
    color: #fff;
}

nav a:hover {
    background-color: #0074D9;
    color: #fff;
}

nav img {
    margin-left: 0;
    margin-right: 0;
    max-width: 8%;
    height: auto;
}

.btn-login {
  background: linear-gradient(135deg, #4facfe, #00f2fe); /* gradiente blu/azzurro */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;        /* angoli arrotondati */
  cursor: pointer;
  transition: all 0.3s ease; /* animazione morbida */
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* leggero effetto ombra */
}

/* Hover (quando ci passi sopra col mouse) */
.btn-login:hover {
  transform: translateY(-2px); /* effetto sollevato */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #00c6ff, #0072ff); /* più intenso */
}

/* Active (quando clicchi) */
.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.btn-azzurro4 {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(10, 128, 207, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px); /* effetto vetro */
  transition: all 0.3s ease;
}
.btn-azzurro4:hover {
  background: rgba(12, 114, 182, 0.938);
  color: white;
}

section{
  display: flex;
  margin-top: 80px; /* Spazio per la navbar fissa */
  flex: 1; /* Permette alla sezione di espandersi */
  min-height: 100vh; /* Assicura che la sezione occupi almeno l'altezza della viewport */
  flex-direction: row;
}

footer {
    width: 100vw;
    height: 60px;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    left: 0;
    position: relative;
    bottom: 0;
    right: 0;
}

/* ====== Layout di base ====== */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b1220;
    --card-bg: #0f172a;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
    --shadow: 0 6px 20px rgba(0,0,0,.35);
  }
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  }

/* container/row compatibile con la tua struttura */
.container {
    display: block;
    padding: 20px;
}

.grid {
    display: flex;
    flex-direction: column; /* impila le card una sotto l'altra */
    align-items: center;    /* centra orizzontalmente */
    gap: 20px;              /* spazio tra le card */
    padding: 20px;
}

.product-card {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    background: white;
    cursor: pointer;
}

.row{
  display: flex;
  flex-direction: row;
  gap: 24px;
}

/* ====== Card prodotto ====== */
.product-card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  max-height: min-content;
}

.product-card:hover{
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* immagine */
.product-card img{
  width: 50%;
  aspect-ratio: 4 / 3;       /* ritaglio elegante e coerente */
  object-fit: cover;
  display: block;
}

/* contenuto */
.product-card .content{
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card h2{
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.product-card .price{
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.product-card .descrizione{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* footer azioni (opzionale) */
.product-card .actions{
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.product-card .btn{
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: background .18s ease, border-color .18s ease;
}

.product-card .btn:hover{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* piccoli schermi */
@media (max-width: 420px) {
  .flex-container {
    flex-direction: column;  /* impila le card una sotto l'altra */
    align-items: center;     /* centra orizzontalmente */
    justify-content: center; /* centra anche verticalmente */
    gap: 16px;
    width: 100%;
  }
}



body {
    background: #f9f9f9;
}
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.card h3 {
    margin: 10px 0 5px;
}
.card p {
    color: #555;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;   /* altezza fissa */
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.15);
}

.product-card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 150px;       /* altezza costante immagine */
    object-fit: cover;   /* ritaglio elegante */
    border-radius: 6px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-card p {
    color: #555;
    margin: 4px 0;
    font-size: 0.9rem;
}

/* descrizione con testo limitato */
.product-card p.descrizione {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esportazione{
  display: flex;
  justify-content: center;
  margin: auto;
}

body{
  background-color: #b2fcff;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}
/* Rimuovi margine bianco a destra */
html, body {
  width: 100vw;
  overflow-x: hidden;
}

@media print {
  button {
    display: none;
  }
  body {
    margin: 0;
  }
  .no-break {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .no-print {
    display: none !important;
  }
}

@page {
  size: A4;
  margin: 20mm;
}