:root {
  --primary: #863a34;
  --light: #fff9f6;
  --marmo: #f8f8f8;
  --accent: #e0c7b3;
  --bordeaux: #7b2d26;
  --grigio: #555;
  --nero: #1c1c1c;
  --header-h-big: 200px;    /* altezza iniziale */
  --header-h-small: 100px;  /* altezza dopo scroll */
  --accent2: #a04f22;
  --dark: #1e1e1e;
  --radius: 18px;
  --border: rgba(0,0,0,.08);
}

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

body {
  margin: 0;
  font-family: 'Roboto','Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--nero);
  line-height: 1.6;
  overflow-x: hidden; 
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header/Navbar */
.header {
  position: fixed;      /* overlay vero */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;        /* sopra la hero */
  transition:
    background-color 0.6s ease,
    border-color     0.6s ease,
    box-shadow       0.6s ease;
}

.header.is-scrolled,
.header.menu-open {
  background: var(--marmo);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header.menu-open .nav-hamburger span {
  background: var(--nero);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h-big);  /* grande all’inizio */
  transition: height 0.6s ease; /* animazione smooth */
}

.header.is-scrolled .container {
  height: var(--header-h-small); /* si rimpicciolisce */
}

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

.logo-img {
  height: 180px;                 /* logo grande iniziale */
  transition: height 0.3s ease; /* animazione smooth */
}

.header.is-scrolled .logo-img {
  height: 120px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  position: relative;           /* necessario per posizionare ::after */
  margin-left: 0;
  text-decoration: none;
  color: var(--nero);
  font-weight: 600;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;                 /* distanza dal testo */
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--nero);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover {
  color: var(--nero);
  cursor: pointer;
}

.nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Overlay oscurato */
.menuOverlay {
  position: fixed;
  top: var(--header-h-big); /* parte sotto header grande */
  height: calc(100vh - var(--header-h-big));
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.header.is-scrolled + .menuOverlay {
  top: var(--header-h-small);
  height: calc(100vh - var(--header-h-small));
}

/* Attivo */
.menuOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menuOverlay.active .menuMobile {
  transform: translateY(0);
  opacity: 1;
}

.menuOverlay .container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

/* Menu mobile */
.menuMobile {
  background: var(--marmo);
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Transizione iniziale */
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.menuMobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.menuMobile li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.menuMobile li a {
  position: relative;
  width: 100%;
  display: block;
  padding: 1rem 0;
  text-align: center;
  text-decoration: none;
  color: var(--nero);
}

.nav-hamburger {
  display: none;
  margin: 0;
  width: 2em;
  height: 1.5em;
  z-index: 110;
  cursor: pointer;
  right: 10%;
  position: absolute;
  transform: rotate(0deg);
  transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.nav-hamburger span{
  height: 5px;
  position: absolute;
  background: var(--nero);
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.nav-hamburger span:nth-child(1){
  top: 0;
  width: 100%;
  left: 0;
}

.nav-hamburger span:nth-child(2){
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  right: 0;
  left: auto;
}

.nav-hamburger span:nth-child(3){
  bottom: 0;
  width: 100%;
  left: 0;
}

.nav-hamburger.open{
  transform: rotate(180deg);
}

.nav-hamburger.open span:nth-child(1){
  transform: rotate(45deg);
  top: 50%;
  left: 0;
}

.nav-hamburger.open span:nth-child(2){
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3){
  transform: rotate(-45deg);
  top: 50%;
  bottom: auto;
  left: 0;
}

/* Header sopra la hero (trasparente) */
.header--overlay {
  background: transparent;
  /*border-bottom: 1px solid rgba(255,255,255,0.15);*/
}

/* Link bianchi quando overlay (per leggibilità su foto) */
.header--overlay .nav a {
  color: white;
}

.header--overlay .nav a::after {
  background-color: white;
}

/* Hamburger bianco quando overlay */
.header--overlay .nav-hamburger span {
  background: white;
}

/* Quando si scorre: header solido come “separato” */
.header.is-scrolled {
  backdrop-filter: blur(10px);
}

/* Link tornano scuri quando scrolled */
.header.is-scrolled .nav a {
  color: var(--nero);
}

.header.is-scrolled .nav a::after {
  background-color: var(--nero);
}

.header.is-scrolled .nav-hamburger span {
  background: var(--nero);
}

.hero {
  position: relative; /* utile se in futuro vuoi overlay extra */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* contenuti in alto*/
  align-items: center;
  min-height: 100vh;
  padding-top: calc(var(--header-h-big) + 40px);  /* spazio per navbar overlay + titolo */
  padding-bottom: 20px;
  box-sizing: border-box;
  width: 100%;
  color: white;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65) 0%,   /* più scuro in alto */
      rgba(0, 0, 0, 0.40) 35%,
      rgba(0, 0, 0, 0.15) 70%,
      rgba(0, 0, 0, 0) 100%
    ),
    url('../img/Bancone.jpeg') center center no-repeat;
  background-size: cover;
}

.hero-line{
  font-family: 'Allura', cursive;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 3rem;
  font-family: 'PT Sans Caption',"Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
  position: relative;
  margin-bottom: 0;
  padding: 0;
  text-shadow: 0 6px 20px rgba(0,0,0,.45); /* boost leggibilità */
}

.hero p {
  font-size: 2.5rem;
  position: relative;
  margin-top: 0;
  padding: 0;
}

.button {
	position: relative;
  display: inline-block;
  padding: 0.5em 0.67em;
  color: white;
  text-decoration: none;
  border: 0.1em solid white;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

.button-primary {
  background: white;
  color: black;
}

.hero-footer {
	display: flex;
	margin-bottom: 10%;
}

.historySection {
  display: flex;
  flex-direction: column; /* mobile: uno sotto l'altro */
  gap: 2rem; /* spazio tra elementi */
}

/* Vista mobile */
.description {
  font-size: 1rem;
  line-height: 1.5;
}

/* Vista mobile */
.historyImage img {
  width: 100%;
  height: auto;
  display: block;
}

/* Vista desktop */
@media (min-width: 768px) {
  .historySection {
    flex-direction: row;
    align-items: center; /* centra verticalmente */
  }

  .description, .historyImage {
    flex: 1; /* occupano metà spazio ciascuno */
  }

  .hours {
  display: flex;
  justify-content: space-between;
}

}

.winterHours, .summerHours{
  max-width: 560px;
  margin: 0 auto;
  color: #111;
}

.rigaOrari{
  display: flex;
  justify-content: space-between; /* spinge le due colonne ai lati */
  gap: 24px;
  padding: 14px 0;
}

/* Sezioni */
section {
  padding: 0 20px;
  text-align: center;
  scroll-margin-top: var(--header-h-small);
}

.fancy {
  --b: 2px;
  --g: 15px;
  --c: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--g);

  font-weight: bold;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: .12em;
}

.fancy::before,
.fancy::after {
  content: "";
  flex: 1; /* riempie lo spazio fino ai margini */
  height: var(--b);
  background-color: var(--c);
}


.mappa iframe {
  max-width: 100%;
  border: none;
}

/* Footer */
.footer {
  /* Sfumatura: bordeaux più in alto -> nero in basso */
  background: linear-gradient(
    180deg,
    var(--bordeaux) 0%,
    #0f1115 10%,
    #000 100%
  );
  color: #fff;
  padding: 48px 0 18px;
}
.footer a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
}
.footer__subtitle {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}
.footer__hours {
  display: grid;
  gap: 18px;
}
.footer__hours-block {
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.footer__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.footer__row:last-child {
  border-bottom: none;
}
.footer__label {
  opacity: 0.85;
  font-size: 0.92rem;
}
.footer__value {
  font-size: 0.92rem;
}
.footer__right {
  display: grid;
  gap: 18px;
}
.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer__contacts p {
  margin: 0 0 8px;
  opacity: 0.92;
  line-height: 1.35;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.footer__social-link i {
  font-size: 1.1rem;
}
.footer__divider {
  margin-top: 32px;
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,.55);
}
.footer__bottom {
  padding-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}


/* Ordina ora section */
.ordina .historySection {
  text-align: left;
}

.ordina .historySection .description p {
  margin-bottom: 20px;
}

.multi-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px; /* distanza tra i pulsanti */
}

.multi-button .btn-link {
  flex: 1;
  position: relative;
  padding: 1rem 2rem;
  border: 2px solid black;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 1px;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
  color: var(--primary);
  background: transparent;
  overflow: hidden;
  display: inline-block; /* Per evitare problemi nei flex container */
  text-align: center;
  text-decoration: none;
}

.multi-button .btn-link::before,
.multi-button .btn-link::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
}

.multi-button .btn-link::after {
  height: 0;
  background-color: var(--primary);
  transition: height 0.5s ease;
  z-index: -1;
}

.multi-button .btn-link::before {
  background-color: #fff;
  height: 100%;
  z-index: -2;
}

.multi-button .btn-link:hover {
  color: #fff;
  transition: 0.1s ease;
}

.multi-button .btn-link:hover::after {
  height: 100%;
}

@keyframes towhite {
  0% {
    color: inherit;
  }
  100% {
    color: white;
  }
}

.girarrosto{
  text-align: left;
}
/* pill */

.girarrosto-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.girarrosto-dark__pill{
  border: 1px solid black;
  background: var(--marmo);
  color: var(--bordeaux);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Link alle pagine dei prodotti */
.row{
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 3 colonne desktop */
}

.test_box {
	padding: 0;
}

.test_box .inner {
	background: #333;
	display: block;
	margin: 10px;
	overflow: hidden;
}

.test_box .inner .test_click {
	-webkit-align-content: center;
	-ms-flex-line-pack: center;
	align-content: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: rgba(0,0,0,.1);
	color: #fff;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
	height: 300px;
	mix-blend-mode: normal;
	text-align: center;
	text-decoration: none;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
}

.flex_this {
	-webkit-align-content: center;
	-ms-flex-line-pack: center;
	align-content: center;
	display: flex;
  flex-direction: column;
	flex-wrap: inherit;
	height: 100%;
	margin: 0;
	padding: 10px;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
	width: 100%;
  justify-content: center;  /* centra verticalmente */
  align-items: center;      /* centra orizzontalmente */
}

.test_box .inner .test_click:hover .flex_this {
	margin-top: -5px;
}

.test_title {
	display: block;
	font-weight: 700;
	margin: 0 0 20px;
	width: 100%;
}

.test_link {
	border: 2px solid #fff;
	display: inline-block;
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .1em;
	margin-top: auto;
  align-self: center;
	padding: 10px 30px;
	text-transform: uppercase;
}

.test_link:hover {
  background-color: white;
  color: black;
}

.box-01 .inner {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,   /* più scuro in alto */
      rgba(0, 0, 0, 0.1) 35%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.1) 100%
    ),url('../img/SalumiInsaccati/Pancette2.jpeg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}

.box-02 .inner {
	background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,   /* più scuro in alto */
      rgba(0, 0, 0, 0.1) 35%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.1) 100%
    ),url('../img/Carni/Bistecche3.jpeg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}
.box-03 .inner {
	background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,   /* più scuro in alto */
      rgba(0, 0, 0, 0.1) 35%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.1) 100%
    ),url('../img/Preparati/Straccetti.jpeg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}
.box-04 .inner {
	background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,   /* più scuro in alto */
      rgba(0, 0, 0, 0.1) 35%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.1) 100%
    ),url('../img/ProdottiLocali/MensolaGenerica.jpeg');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-size: cover;
}

/* CARDS CON PRODOTTI */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 20px;

  /* 1 colonna su mobile */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
  /* centra la “griglia” e limita larghezza */
  max-width: 1400px;
  margin: 0 auto;
}

/* ogni item non deve fare flex qui */
.cards__item {
  margin: 0;
  padding: 0;
}

/* la card: altezza uniforme */
.card {
  background: var(--marmo);
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.25);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  /* altezza uguale per tutte */
  height: 420px;
}

/* contenuto */
.card__content {
  padding: 16px;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0; /* importante per il clamp/overflow */
  text-align: left;
}

/* immagine come background */
.card__image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* altezza immagine (fissa e coerente) */
  height: 250px;
}

.card__title {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* testo: tronca e non cambia altezza card */
.card__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.5;

  /* tronca a righe fisse */
  overflow: hidden;
}

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

/* Slideshow container */
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Ogni slide */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* Immagine slide */
.slide img {
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: block;
  height: 400px;
}

/* Descrizione sotto immagine */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: var(--marmo);
  color: black;
  font-size: 1rem;
}

.headerProdotti {
  background: var(--marmo);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.headerProdotti .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h-small);
}

.logo_prodotti {
  display: flex;
  align-items: center;
}

.logo_prodotti img{
  height: 120px;
}

.prodotti {
  top: 30px;
}

@media (max-width: 480px) {

  #nav-index {
    display: none;
  }

  .nav-hamburger{
    display: block;
  }
/*
  .hero {
    min-height: calc(50vh);
  }
*/

  .hero-line { font-size: 2.6rem; }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-title{
    margin-top: 30%;   /* aumenta se la vuoi ancora più in basso */
  }

  .hero-footer {
    margin-bottom: 40%;
  }

  .slide img {
    height: 300px;
  }

  .fancy {
    --w: 70px;
    font-size: 1.1rem;
  }

  .orari h2 {
    font-size: 1.1rem;
  }

  .orari h3, .orari h4 {
    font-size: 1rem;
  }

  .EstivoInvernale div:nth-child(1){
    margin-right: 0;
    border-bottom: none;
  }

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

  .footer {
    padding: 36px 0 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

}

.btn-open-gallery{
  border: 2px solid #fff;
	display: inline-block;
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .1em;
	margin-top: auto;
  align-self: center;
	padding: 10px 30px;
	text-transform: uppercase;
}

.btn-open-gallery:hover{
  background-color: white;
  color: black;
  cursor: pointer;
}

.modal-toggle{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal-toggle:checked ~ .modal{
  display: block;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  cursor:pointer;
}

.modal-content{
  position: relative;
  z-index: 2;

  min-height: 100svh;
  display: grid;
  place-items: center;

  padding: 24px 12px;
  overflow: auto;             
  -webkit-overflow-scrolling: touch;
}

.modal-close{
  position: fixed; 
  top: 16px;
  right: 16px;
  z-index: 10000;

  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 8px 12px;
  background: black;
  color: white;
  border-radius: 12px;
}

.gallery{
  /* dimensione immagini: grande su desktop, più piccola su mobile */
  --s: clamp(110px, 30vw, 210px);

  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(6px, 1.2vw, 12px);
  position: relative;

  max-width: min(92vw, 620px);
}

/* stato iniziale: immagini chiuse */
.gallery > img{
  width: var(--s);
  aspect-ratio: 1;
  object-fit: cover;
  transform: scale(.1);
  filter: brightness(0);
  pointer-events: none;
  transform-origin: var(--x) var(--y);
  transition: 1s calc((var(--i) - 1)*.1s);
}

.gallery > img:nth-of-type(1) {--i:1;--x:150%;--y:150%;}
.gallery > img:nth-of-type(2) {--i:2;--x: 50%;--y:150%;}
.gallery > img:nth-of-type(3) {--i:3;--x:-50%;--y:150%;}
.gallery > img:nth-of-type(4) {--i:4;--x:150%;--y: 50%;}
.gallery > img:nth-of-type(5) {--i:5;}
.gallery > img:nth-of-type(6) {--i:6;--x:-50%;--y: 50%;}
.gallery > img:nth-of-type(7) {--i:7;--x:150%;--y:-50%;}
.gallery > img:nth-of-type(8) {--i:8;--x: 50%;--y:-50%;}
.gallery > img:nth-of-type(9) {--i:9;--x:-50%;--y:-50%;}

.modal-toggle:checked ~ .modal .gallery > img{
  transform: scale(1);
  filter: brightness(1);
  pointer-events: initial;
}

/* bottone Instagram in navbar */
.nav-instagram{
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  padding: 6px;
  box-sizing: border-box;
  text-decoration: none;

  /*box-shadow: 0 10px 15px rgba(0,0,0,0.25);*/
  /*background: linear-gradient(0deg, #ddd, #fff);*/
  transition: .3s;
}

/* “bottone interno” */
.nav-instagram i{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;

  /*background: linear-gradient(0deg, #fff, #ddd);
  border-radius: 50%;*/

  font-size: 40px;
  color: var(--marmo);
  transition: .3s;
}

.header.is-scrolled .nav-instagram i{
  color: var(--bordeaux);
}

.nav-instagram:hover{
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.25);*/
  cursor: pointer;
}

.nav a.nav-instagram::after{
  content: none;
}

.nav-instagram--mobile{
  display: none;
  @media (max-width: 480px){
    display: inline-grid;
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ===============================
   TARTARE – versione scura
   =============================== */

section.tartare{
  padding: 0;
  padding-top: 30px;
}

.tartare-dark{
  padding: clamp(24px, 6vw, 24px) 0;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(134,58,52,.25), transparent 55%),
    radial-gradient(700px 400px at 90% 10%, rgba(255,255,255,.05), transparent 60%),
    #0f1115;
  color: #e9ecf1;
}

.tartare-dark__wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */

.tartare-dark__header{
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.tartare-dark__kicker{
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: .8rem;
  margin-bottom: 10px;
}

.tartare-dark__title{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: #fff;
}

.tartare-dark__subtitle{
  color: #b7becb;
  line-height: 1.55;
  font-size: 1.05rem;
}

/* grid */

.tartare-dark__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

.tartare-dark__card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* media */

.tartare-dark__media{
  height: 200px;
  background-size: cover;
  background-position: center;
}

/* body */

.tartare-dark__body{
  padding: 10px;
}

.tartare-dark__body h3{
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
}

.tartare-dark__body p{
  margin: 0 0 12px;
  color: #b7becb;
  line-height: 1.5;
}

.tartare-dark__body ul{
  margin: 0;
  padding-left: 18px;
  color: #e9ecf1;
}

.tartare-dark__body li{
  margin: 6px 0;
}

/* info box */

.tartare-dark__info{
  margin-top: 22px;
}

.tartare-dark__box{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tartare-dark__box h4{
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.tartare-dark__box p{
  margin: 0;
  color: #b7becb;
  line-height: 1.55;
}

.tartare-dark__box--accent{
  background: rgba(134,58,52,.25);
  border-color: rgba(134,58,52,.4);
}

/* CTA */

.tartare-dark__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tartare-dark__btn{
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;

  background: rgba(134,58,52,.9);
  color: #fff;
}

.tartare-dark__btn--ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

/* responsive */

@media (min-width: 760px){
  .tartare-dark__grid{
    grid-template-columns: repeat(3, 1fr);
  }
  .tartare-dark__info{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   Instagram popup laterale
   ========================= */

/* checkbox invisibile */
.ig-toggle{
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.ig-popup{
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: inline-block;
}

/* linguetta */
.ig-tab{
  width: 54px;
  height: 54px;
  border-radius: 16px 0 0 16px;
  display: grid;
  place-items: center;
  cursor: pointer;

  background: var(--nero);
  color: #fff;

  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  transition: transform .2s ease, background-color .3s ease;
}

.ig-tab i{ font-size: 28px; }
.ig-tab:hover{ transform: translateY(-2px); }

/* pannello fuori dal layout */
.ig-panel{
  position: absolute;
  right: 54px;
  bottom: 0;

  width: min(290px, calc(100vw - 90px));
  background: var(--marmo);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px 0 0 18px;
  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  box-shadow: 0 14px 30px rgba(0,0,0,.18);

  transform: translateX(12px);
  opacity: 0;
  pointer-events: none;

  transition: transform .35s ease, opacity .35s ease;
}

/* stato aperto */
#ig-toggle:checked ~ .ig-popup .ig-panel{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* tab cambia colore quando aperto */
#ig-toggle:checked ~ .ig-popup .ig-tab{
  background: var(--bordeaux);
}

