/* ==============================
   Design tokens
   ============================== */
:root {
  --verde: #173d12;
  --verde-nav: rgb(38, 56, 24);
  --verde-soft: #2d5f34;
  --turcoaz: #0f8394;
  --alb: #ffffff;
  --nav-h: 55px;
  --pattern-url: url("../imagini/pattern.png");
  --sep-porumb: #f3c24c;
  --sep-refrigerat: rgb(38, 56, 24);
  --pack-shift: 26%;
  --pack-shift-bag: 34%;
  --title-shift: 4.875cqw;
  --fade-strip: 24%;
  --pack-width: 35.75cqw;
  --pack-width-bag: 24.75cqw;
  --product-name-size: 4.4cqw;
  --product-name-simple-size: 5.2cqw;
}


/* ==============================
   Base reset and page background
   ============================== */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 30px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--verde);
  background-color: #ffffff;
  background-image: var(--pattern-url);
  background-repeat: repeat;
  background-size: 220px auto;
}
img { max-width: 100%; height: auto; display: block; }

/* ==============================
   Responsive image wrappers
   ============================== */
.pack-imagine picture,
.reteta-imagine picture {
  display: block;
  width: 100%;
}
.reteta-imagine picture {
  height: 100%;
}
.pack-imagine picture > img,
.reteta-imagine picture > img {
  width: 100%;
}
.reteta-imagine picture > img {
  height: 100%;
  object-fit: cover;
}


/* ==============================
   Header and desktop navigation
   ============================== */
.bara-sus {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: var(--verde-nav);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.bara-interior {
  min-height: var(--nav-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  gap: 24px;
  padding: 0 15%;
}
.logo-link {
  position: absolute;
  left: 15%;
  top: 3px;
  height: var(--nav-h);
  display: flex;
  align-items: flex-start;
  z-index: 2;
}
.logo-gustavi {
  height: 66px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.22));
}
.meniu-principal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 5.8vw, 78px);
}


/* ==============================
   Hamburger button
   ============================== */
.meniu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  z-index: 4;
}
.meniu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #f7f0dc;
  transition: transform .22s ease, opacity .22s ease;
}
.meniu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.meniu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.meniu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-grup {
  position: relative;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-categorie {
  color: #f7f0dc;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-submeniu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: max-content;
  padding: 14px 16px;
  background: #f7df9d;
  border: 1px solid rgba(21,57,13,.10);
  border-radius: 14px;
  box-shadow: 0 20px 36px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.nav-grup:hover .nav-submeniu,
.nav-grup:focus-within .nav-submeniu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-submeniu a {
  color: var(--verde-nav);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 500;
  opacity: .82;
  transform: translateX(0);
  transition: transform .18s ease, opacity .18s ease, font-weight .18s ease;
}
.nav-categorie:hover,
.nav-categorie:focus-visible { color: #ffffff; }
.nav-submeniu a:hover,
.nav-submeniu a:focus-visible {
  opacity: 1;
  transform: translateX(3px);
  font-weight: 700;
}


/* ==============================
   Page structure and category spacing
   ============================== */
.pagina-catalog {
  padding: calc(var(--nav-h) + 28px) 0 0;
}
.categorie {
  width: min(100%, 1600px);
  margin: 0 auto;
  container-type: inline-size;
}
.categorie + .categorie {
  margin-top: clamp(88px, 10vw, 132px);
}
.titlu-categorie {
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 36vw;
}
.titlu-refrigerat {
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 26vw;
}
.titlu-porumb {
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 28vw;
}


/* ==============================
   Category logo/title images
   ============================== */

.titlu-categorie picture,
.titlu-porumb picture,
.titlu-refrigerat picture {
  display: block;
  width: 100%;
}
.titlu-categorie img,
.titlu-porumb img,
.titlu-refrigerat img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==============================
   Product article grid
   ============================== */
.produs {
  display: grid;
  overflow: visible;
  grid-template-columns: 34% 66%;
  align-items: center;
  gap: 0;
  margin: 0;
  position: relative;
  padding-top: clamp(34px, 5vw, 50px);
}
.produs.rand-invers {
  grid-template-columns: 66% 34%;
}
.categorie .produs + .produs {
  padding-top: 10px;
}
.categorie .produs + .produs::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 10px;
}
.categorie-porumb .produs + .produs::before { background: var(--sep-porumb); }
.categorie-refrigerat .produs + .produs::before { background: var(--sep-refrigerat); }


/* ==============================
   Product titles and pack column
   ============================== */
.coloana-pack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0;
  position: relative;
  z-index: 3;
}
.rand-normal .coloana-pack {
  order: 1;
  align-items: flex-start;
}
.rand-normal .reteta-imagine { order: 2; }
.rand-invers .reteta-imagine {
  order: 1;
  margin-right: auto;
}
.rand-invers .coloana-pack {
  order: 2;
  align-items: flex-end;
}

.coloana-pack h2 {
  margin: 0;
  width: max-content;
  max-width: 100%;
  position: relative;
  z-index: 4;
  color: var(--verde);
  font-family: "Passions Conflict", cursive;
  font-weight: 400;
  line-height: .95;
  font-size: var(--product-name-size);
}
.rand-normal .coloana-pack h2 {
  text-align: left;
  margin-left: var(--title-shift);
}
.rand-invers .coloana-pack h2 {
  text-align: right;
  margin-right: var(--title-shift);
}
.titlu-principal,
.titlu-secundar {
  display: block;
}
.titlu-principal {
  font-size: 1.15em;
  line-height: .9;
}
.titlu-secundar {
  font-size: .72em;
  line-height: .88;
}
.h2-simple {
  font-size: var(--product-name-simple-size);
}
.nume-porumb {
  color: #dc9d0b;
}

/* ==============================
   Packshot sizing and overlap behavior
   ============================== */
.pack-imagine {
  width: min(165%, var(--pack-width));
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}
.rand-normal .pack-imagine {
  transform: translateX(var(--pack-shift));
}
.rand-invers .pack-imagine {
  transform: translateX(calc(-1 * var(--pack-shift)));
}
.pack-imagine img {
  width: 100%;
  height: auto;
  filter: drop-shadow(6px 6px 9px rgba(0, 0, 0, 0.6));
}
.pack-imagine-bag {
  width: min(68%, var(--pack-width-bag));
}
.rand-normal .pack-imagine-bag { 
  transform: translateX(var(--pack-shift-bag)); }
.rand-invers .pack-imagine-bag { 
  transform: translateX(calc(-1 * var(--pack-shift-bag))); }

.pack-imagine-bag-compact {
  width: min(60%, calc(var(--pack-width-bag) * 0.88));
}
.pack-imagine-bag-tall {
  width: min(60%, calc(var(--pack-width-bag) * 0.72));
}
.rand-normal .pack-imagine-bag-compact,
.rand-normal .pack-imagine-bag-tall {
  transform: translateX(var(--pack-shift-bag));
}
.rand-invers .pack-imagine-bag-compact,
.rand-invers .pack-imagine-bag-tall {
  transform: translateX(calc(-1 * var(--pack-shift-bag)));
}

/* ==============================
   Recipe image masks
   ============================== */
.reteta-imagine {
  margin: 0;
  width: 100%;
  aspect-ratio: 7 / 4.6;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.rand-normal .reteta-imagine { margin-left: auto; }
.reteta-imagine::before { display: none; }
.reteta-imagine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rand-normal .reteta-imagine img {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 12%, rgba(0,0,0,.88) 18%, rgba(0,0,0,1) 24%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 12%, rgba(0,0,0,.88) 18%, rgba(0,0,0,1) 24%, rgba(0,0,0,1) 100%);
}
.rand-invers .reteta-imagine img {
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 12%, rgba(0,0,0,.88) 18%, rgba(0,0,0,1) 24%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 12%, rgba(0,0,0,.88) 18%, rgba(0,0,0,1) 24%, rgba(0,0,0,1) 100%);
}



@media (min-width: 981px) {
  .meniu-principal.is-suppressing-dropdown .nav-grup:hover .nav-submeniu,
  .meniu-principal.is-suppressing-dropdown .nav-grup:focus-within .nav-submeniu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
}

/* ==============================
   Responsive: narrow desktop navigation
   Keeps the desktop navbar stable until the hamburger breakpoint.
   ============================== */
@media (min-width: 981px) and (max-width: 1100px) {
  .meniu-principal {
    gap: clamp(22px, 4.6vw, 48px);
  }
}


/* ==============================
   Responsive: mobile/tablet hamburger menu
   ============================== */
@media (max-width: 980px) {
  :root { --nav-h: 52px; }

  html { scroll-padding-top: calc(var(--nav-h) + 18px); }

  .bara-interior {
    min-height: var(--nav-h);
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    gap: 16px;
  }

  .logo-link {
    position: static;
    height: var(--nav-h);
    margin-right: 0;
    padding-top: 3px;
    align-items: flex-start;
    overflow: visible;
  }

  .logo-gustavi { height: 62px; }

  .meniu-toggle { display: flex; }

  .meniu-principal {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 6%;
    background: var(--verde-nav);
    box-shadow: 0 24px 34px rgba(0,0,0,.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .36s ease, padding .28s ease, opacity .24s ease, transform .24s ease, visibility .24s ease;
  }

  .meniu-principal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 10px 6% 18px;
  }

  .nav-grup {
    width: 100%;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(247,240,220,.16);
  }

  .nav-grup:first-child { border-top: 0; }

  .nav-categorie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
  }

  .nav-categorie::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    margin-left: 18px;
    color: #f7f0dc;
    transition: transform .22s ease;
  }

  .nav-direct::after {
    content: none;
  }

  .nav-grup.is-open .nav-categorie::after {
    transform: rotate(45deg);
  }

  .nav-submeniu,
  .nav-grup:hover .nav-submeniu,
  .nav-grup:focus-within .nav-submeniu {
    position: static;
    display: flex;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    gap: 10px;
    overflow: hidden;
    background: #f7df9d;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height .34s ease, padding .26s ease, margin .26s ease, opacity .24s ease, transform .24s ease, visibility .24s ease;
  }

  .nav-grup.is-open .nav-submeniu {
    max-height: 720px;
    margin: 0 0 14px;
    padding: 12px 14px 14px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-submeniu a {
    font-size: clamp(13.1px, 2.4vw, 14.4px);
    line-height: 1.36;
    padding: 4px 0;
    white-space: nowrap;
  }

  .pagina-catalog {
    padding-top: calc(var(--nav-h) + 30px);
  }
  .titlu-categorie,
  .titlu-refrigerat {
    width: min(70vw, 320px);
    padding: 0 14px;
  }
  .titlu-porumb {
    width: min(74vw, 340px);
    padding: 0 14px;
  }


/* ==============================
   Responsive: mobile product articles
   ============================== */
@media (max-width: 820px) {
  .categorie {
    width: 100%;
  }

  .titlu-categorie,
  .titlu-refrigerat {
    width: min(64vw, 300px);
    padding: 0 14px;
  }
  .titlu-porumb {
    width: min(70vw, 320px);
    padding: 0 14px;
  }
  .categorie + .categorie {
    margin-top: 64px;
  }

  .produs,
  .produs.rand-invers {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding-top: 24px;
    overflow: visible;
  }

  .categorie .produs + .produs { padding-top: 24px; }

  .rand-normal .coloana-pack,
  .rand-invers .coloana-pack {
    order: 1;
    align-items: center;
    width: min(100%, 92vw);
    margin: 0 auto calc(-1 * clamp(54px, 16vw, 96px));
    gap: 8px;
    z-index: 3;
  }

  .rand-normal .reteta-imagine,
  .rand-invers .reteta-imagine {
    order: 2;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 5.5 / 7;
    z-index: 1;
  }

  .coloana-pack h2,
  .h2-simple {
    width: 100%;
    max-width: 92vw;
    text-align: center;
    font-size: clamp(42px, 13vw, 68px);
    line-height: .92;
  }

  .rand-normal .coloana-pack h2,
  .rand-invers .coloana-pack h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .titlu-principal { line-height: .88; }
  .titlu-secundar { line-height: .84; }

  .pack-imagine,
  .pack-imagine-bag,
  .pack-imagine-bag-compact,
  .pack-imagine-bag-tall {
    transform: none !important;
    margin: 0 auto;
  }

  .pack-imagine { width: min(84vw, 430px); }
  .pack-imagine-bag { width: min(54vw, 260px); }
  .pack-imagine-bag-compact { width: min(50vw, 240px); }
  .pack-imagine-bag-tall { width: min(42vw, 205px); }

  .reteta-imagine img,
  .rand-normal .reteta-imagine img,
  .rand-invers .reteta-imagine img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.52) 10%, rgba(0,0,0,.84) 18%, rgba(0,0,0,1) 26%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.52) 10%, rgba(0,0,0,.84) 18%, rgba(0,0,0,1) 26%, rgba(0,0,0,1) 100%);
    object-position: center center;
  }
}

}

/* ==============================
   Responsive: large screens
   ============================== */
@media (min-width: 1601px) {
  :root {
    --pack-width: 41.1125cqw;
    --pack-width-bag: 28.4625cqw;
  }

  .pack-imagine {
    width: min(189.75%, var(--pack-width));
  }

  .pack-imagine-bag {
    width: min(70%, var(--pack-width-bag));
  }

  .pack-imagine-bag-compact {
    width: min(62%, calc(var(--pack-width-bag) * 0.9));
  }

  .pack-imagine-bag-tall {
    width: min(50%, calc(var(--pack-width-bag) * 0.74));
  }
}



/* ==============================
   Footer
   ============================== */
.site-footer {
  margin-top: 0;
  padding: clamp(28px, 4vw, 48px) 20px;
  background: var(--verde-nav);
  color: #fff;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #d9b778 0%, #d9b778 22%, #efe3cb 55%, #d9b778 78%, #d9b778 100%);
  box-shadow: 0 -1px 0 rgba(38, 56, 24, .55);
}

.footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: block;
  width: clamp(96px, 12vw, 150px);
  flex: 0 0 auto;
}

.footer-brand picture,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 4vw, 54px);
  flex-wrap: wrap;
}

.footer-nav a {
  color: #f9f3dc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  transition: opacity .22s ease, transform .22s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: .82;
  transform: translateY(-1px);
}


.footer-legal {
  width: 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(249, 243, 220, .22);
  text-align: right;
}

.footer-legal a {
  color: rgba(249, 243, 220, .78);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.4;
  transition: color .22s ease, opacity .22s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #ffffff;
  opacity: 1;
}

.footer-copyright {
  margin: clamp(16px, 2vw, 24px) auto 0;
  width: min(100%, 1120px);
  color: rgba(249, 243, 220, .68);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 0;
    padding: 32px 20px 36px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    width: min(38vw, 132px);
  }

  .footer-links {
    align-items: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-nav a {
    font-size: 14px;
    white-space: nowrap;
  }
}




/* ==============================
   Inner pages: contact and legal content
   ============================== */
.pagina-interna {
  padding: calc(var(--nav-h) + clamp(44px, 7vw, 92px)) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 112px);
  min-height: calc(100vh - var(--nav-h));
  background-color: #ffffff;
  background-image: var(--pattern-url);
  background-repeat: repeat;
}

.pagina-interna::before {
  content: "";
  display: block;
  width: min(100%, 1120px);
  height: 5px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  background: linear-gradient(90deg, #d9b778 0%, #d9b778 22%, #efe3cb 55%, #d9b778 78%, #d9b778 100%);
}

.pagina-contact::before,
.pagina-termeni::before {
  display: none;
}

.continut-intern {
  width: min(100%, 980px);
  margin: 0 auto;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(38,56,24,.12);
  box-shadow: 0 24px 60px rgba(38,56,24,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.contact-card {
  padding: clamp(34px, 5vw, 64px);
  text-align: center;
}

.contact-logo {
  width: min(200px, 58vw);
  margin: 0 auto 24px;
}

.contact-logo picture,
.contact-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-card h3,
.legal-content h1 {
  margin: 0 0 clamp(24px, 3.8vw, 42px);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  color: var(--verde-nav);
  letter-spacing: .02em;
}

.contact-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: clamp(22px, 3vw, 32px);
}

.contact-list {
  width: min(100%, 860px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-line {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 14px;
  color: var(--verde-nav);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.45;
}

.contact-line img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.contact-line a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-line .email {
  color: rgb(134, 145, 134);
}

.contact-line a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms ease;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  color: #d49100;
}

.contact-line a:hover::after,
.contact-line a:focus-visible::after {
  transform: scaleX(1);
}

.harta-contact {
  width: min(100%, 860px);
  margin: clamp(34px, 4.5vw, 54px) auto clamp(28px, 4vw, 42px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(38,56,24,.16);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.contact-list-details {
  margin-bottom: 0;
}

.harta-contact iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.legal-content {
  padding: clamp(34px, 5vw, 64px);
}

.legal-content h1 {
  text-align: center;
}

.legal-content h2 {
  margin: 2.1em 0 .7em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: var(--verde-nav);
}

.legal-content p {
  margin: 0 0 1.1em;
  color: #263818;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.72;
}

.legal-content a {
  color: var(--verde-nav);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #d49100;
}

@media (max-width: 760px) {
  .pagina-interna {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-card,
  .legal-content {
    padding: 30px 20px;
  }

  .contact-list {
    gap: 14px;
  }

  .contact-line {
    grid-template-columns: 26px 1fr;
    gap: 11px;
    font-size: 15px;
  }

  .contact-line img {
    width: 23px;
    height: 23px;
  }

  .harta-contact {
    aspect-ratio: 1 / 1.15;
  }
}


/* ==============================
   Cookie banner
   ============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(38, 56, 24, .12);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .08);
  color: var(--verde-nav);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.cookie-banner.is-hidden,
.cookie-banner[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(12px, 1.7vw, 14px);
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}

.cookie-accept {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--verde-nav);
  color: #f9f3dc;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.cookie-accept:hover,
.cookie-accept:focus-visible {
  opacity: .9;
  transform: translateY(-1px);
}


@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-banner {
    background: rgba(255, 255, 255, .92);
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  .cookie-banner p {
    max-width: 100%;
  }
}
