/* ============================================================
   PALMIZI SERRAMENTI  — Design System v2
   Palette: White · #4ea820 (logo green) · #111
   ============================================================ */

:root {
  --brand:    #4ea820;
  --ink:      #2f3337;
  --muted:    #6b6b6b;
  --bg:       #ffffff;
  --bg-soft:  #f5f6f2;
  --bg-dark:  #111111;
  --line:     rgba(0,0,0,.1);
  --serif:    "Oswald", "Arial Narrow", Arial, sans-serif;
  --sans:     "Oswald", "Arial Narrow", Arial, sans-serif;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); font-size:1rem; line-height:1.65; color:var(--ink); background:var(--bg); }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

/* ── Layout ── */
.container { width:min(1160px,92%); margin-inline:auto; }

/* ── HEADER ── */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  border-top:5px solid var(--brand);
  border-bottom:1px solid var(--line);
}
.nav-shell {
  display:flex; align-items:center;
  justify-content:space-between;
  min-height:72px; gap:2rem;
}
.brand-wrap { display:flex; align-items:center; gap:.65rem; flex-shrink:0; }
.logo { height:44px; width:auto; max-width:180px; object-fit:contain; }

.main-nav { display:flex; align-items:center; gap:2rem; }
.nav-link {
  font-size:1.05rem; font-weight:500; color:var(--muted);
  letter-spacing:.02em; transition:color .2s; position:relative;
}
.nav-link::after {
  content:""; position:absolute; left:0; bottom:-4px;
  width:100%; height:2px; background:var(--brand);
  transform:scaleX(0); transform-origin:left; transition:transform .25s;
}
.nav-link:hover,
.nav-link.active { color:var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { transform:scaleX(1); }

.nav-cta {
  display:inline-flex; align-items:center; padding:.6rem 1.25rem;
  background:var(--brand); color:#fff;
  font-size:.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  transition:background .2s,transform .2s;
}
.nav-cta:hover { background:#3a8016; transform:translateY(-1px); }

.menu-toggle {
  display:none; flex-direction:column; justify-content:center;
  gap:5px; width:40px; height:40px; border:none; background:transparent; cursor:pointer;
}
.menu-toggle span { display:block; width:22px; height:2px; background:var(--ink); transition:.2s; }

/* ── HERO ── */
.hero-slider {
  position:relative; width:100%;
  height:100vh; min-height:580px; max-height:940px; overflow:hidden;
}
.hero-slide {
  position:absolute; inset:0; opacity:0;
  transition:opacity .9s ease;
}
.hero-slide.is-active { opacity:1; }
.hero-slide img { width:100%; height:100%; object-fit:cover; transition:transform 6s ease; }
.hero-slide.is-active img { transform:scale(1.05); }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%);
}
.hero-content {
  position:absolute; inset:0; display:flex;
  align-items:flex-end; padding-bottom:10vh; z-index:2;
}
/* testo animato per ogni slide */
.hero-slide .hero-kicker,
.hero-slide h1,
.hero-slide h2,
.hero-slide p,
.hero-slide .hero-actions {
  opacity:0; transform:translateY(22px);
  transition:opacity .6s ease, transform .7s ease;
}
.hero-slide.is-active .hero-kicker  { opacity:1; transform:none; transition-delay:.15s; }
.hero-slide.is-active h1            { opacity:1; transform:none; transition-delay:.28s; }
.hero-slide.is-active h2            { opacity:1; transform:none; transition-delay:.28s; }
.hero-slide.is-active p             { opacity:1; transform:none; transition-delay:.42s; }
.hero-slide.is-active .hero-actions { opacity:1; transform:none; transition-delay:.56s; }

.hero-kicker {
  display:block; font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand); margin-bottom:.9rem;
}
.hero-slide h1 {
  font-family:var(--serif); font-weight:600;
  font-size:clamp(2.4rem,5.5vw,5.5rem); line-height:1.0;
  color:#fff; max-width:14ch; margin-bottom:1rem;
}
.hero-slide h2 {
  font-family:var(--serif); font-weight:600;
  font-size:clamp(2.1rem,4.6vw,4.6rem); line-height:1.05;
  color:#fff; max-width:14ch; margin-bottom:1rem;
}
.hero-slide p {
  font-size:1rem; color:rgba(255,255,255,.8);
  max-width:44ch; line-height:1.65; margin-bottom:1.5rem;
}
.hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; }

/* progress bar */
.hero-progress {
  position:absolute; bottom:0; left:0; height:3px;
  background:var(--brand); width:0; z-index:3;
}

/* controls */
.hero-controls {
  position:absolute; bottom:2rem; right:2.5rem;
  z-index:3; display:flex; align-items:center; gap:.5rem;
}
.hero-dot {
  width:28px; height:3px; border:none;
  background:rgba(255,255,255,.35); cursor:pointer;
  transition:background .25s, width .3s;
}
.hero-dot.is-active { background:#fff; width:44px; }
.hero-arrow {
  width:42px; height:42px; border:1px solid rgba(255,255,255,.5);
  background:transparent; color:#fff; font-size:1.1rem;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.hero-arrow:hover { background:rgba(255,255,255,.14); }

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--sans); font-weight:700; font-size:.82rem;
  letter-spacing:.07em; text-transform:uppercase; padding:.8rem 1.6rem;
  border:none; cursor:pointer; transition:all .2s;
}
.btn-brand { background:var(--brand); color:#fff; }
.btn-brand:hover { background:#3a8016; transform:translateY(-1px); }
.btn-outline { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.65); }
.btn-outline:hover { background:rgba(255,255,255,.1); }
.btn-dark { background:var(--ink); color:#fff; }
.btn-dark:hover { background:#333; transform:translateY(-1px); }

/* ── STATS ── */
.stats-band { background:var(--bg-soft); padding:3.5rem 0; border-bottom:1px solid var(--line); }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.stat-item { padding:0 2rem; border-left:1px solid var(--line); }
.stat-item:first-child { border-left:none; padding-left:0; }
.stat-number {
  display:block; font-family:var(--serif);
  font-size:clamp(2.4rem,4vw,3.2rem); font-weight:600;
  line-height:1; color:var(--ink); margin-bottom:.35rem;
}
.stat-label { font-size:.88rem; color:var(--muted); line-height:1.4; }

/* ── SECTION GLOBALS ── */
.section        { padding:6rem 0; }
.section--soft  { background:var(--bg-soft); }
.section--dark  { background:var(--bg-dark); color:#fff; }

/* Remove top spacing only for the first section directly under the header. */
main > .section:first-child { padding-top: 0; }

.section-tag {
  display:block; font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand); margin-bottom:.9rem;
}
.section--dark .section-tag { color:#7fd64a; }
.section-title {
  font-family:var(--sans); font-size:clamp(2rem,3.8vw,3.4rem);
  font-weight:600; line-height:1.05; margin-bottom:1rem;
}
.section-lead {
  font-size:1rem; color:var(--muted); max-width:56ch; line-height:1.7;
}
.section--dark .section-lead { color:rgba(255,255,255,.6); }

.section-lead-gap { margin-bottom: 1rem; }
.copy-muted { color: var(--muted); line-height: 1.7; }
.section-head-spacing { margin-bottom: 3rem; }
.section-cta-spacing { margin-top: 3rem; }
.cta-band-actions-gap { margin-top: 2rem; }
.cta-band-actions-soft-gap { margin-top: 1.8rem; }
.cta-no-top-margin { margin-top: 0; }
.section-no-top-gap { padding-top: 0; }
.section--contact { padding-bottom: 0; }
.btn-top-gap { margin-top: 2rem; display: inline-flex; }
.contact-grid-spacing { margin-top: 3.5rem; }
.contact-map-spacing { margin-top: 2.2rem; }

/* ── SPLIT (50/50) ── */
.split { display:grid; grid-template-columns:1fr 1fr; }
.split-image { position:relative; overflow:hidden; min-height:560px; }
.split-image img { width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.split-image:hover img { transform:scale(1.04); }
.split-body {
  display:flex; flex-direction:column; justify-content:center;
  padding:5rem 4.5rem;
}
.split--reverse .split-image { order:2; }
.split--reverse .split-body   { order:1; }
.split-body .btn { margin-top:1.5rem; align-self:flex-start; }

/* ── SERVICES ZIGZAG ── */
.services-list { display:grid; gap:0; }
.service-row {
  display:grid; grid-template-columns:55% 45%;
  min-height:420px;
}
.service-row:nth-child(even) { grid-template-columns:45% 55%; }
.service-row:nth-child(even) .service-img  { order:2; }
.service-row:nth-child(even) .service-body { order:1; }
.service-img { overflow:hidden; }
.service-img img { width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.service-img:hover img { transform:scale(1.035); }
.service-body {
  display:flex; flex-direction:column; justify-content:center;
  padding:3rem 4rem;
  border-top:1px solid var(--line);
}
.section--soft .service-body { background:var(--bg-soft); }
.service-num {
  font-family:var(--serif); font-size:3.5rem; font-weight:300;
  color:rgba(0,0,0,.07); line-height:1; margin-bottom:-.4rem;
}
.service-body h3 {
  font-family:var(--sans); font-size:clamp(1.6rem,2.5vw,2.2rem);
  font-weight:600; line-height:1.1; margin-bottom:.75rem;
}
.service-body p { color:var(--muted); line-height:1.7; max-width:38ch; }

/* ── CTA BAND ── */
.cta-band { padding:5.5rem 0; background:var(--ink); text-align:center; }
.cta-band .section-title { color:#fff; max-width:20ch; margin-inline:auto; margin-bottom:1rem; }
.cta-band .section-lead  { margin-inline:auto; margin-bottom:2rem; }
.cta-band-actions { display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }

/* ── WHY US BAND ── */
.section--brand-why {
  background: #84d652;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--brand-why .container {
  position: relative;
  z-index: 1;
}

.section--brand-why::before {
  content: "";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 170px;
  height: 280px;
  border: 4px solid rgba(255,255,255,.26);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.08);
  pointer-events: none;
}

.section--brand-why::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 58%;
  width: 240px;
  height: 26px;
  border: 2px solid rgba(255,255,255,.28);
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.33) 0,
    rgba(255,255,255,.33) 2px,
    transparent 2px,
    transparent 14px
  );
  transform: rotate(-18deg);
  pointer-events: none;
}

.brand-why-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.2rem;
}

.section--brand-why .section-tag {
  color: rgba(255,255,255,.8);
}

.section--brand-why .section-title {
  color: #fff;
  margin-bottom: 0;
}

.brand-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.brand-why-card {
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 1.2rem;
}

.brand-why-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}

.brand-why-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.brand-why-card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: .55rem;
}

.brand-why-card p {
  color: rgba(255,255,255,.9);
  line-height: 1.55;
}

/* ── BRANDS ── */
.brands-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 2.2rem;
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  padding: 1.25rem 0;
  animation: brandsScroll 34s linear infinite;
}
.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}
.brands-track img {
  width: 210px;
  height: 136px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.03);
  opacity: 0.75;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.brands-track img:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: translateY(-2px);
}
@keyframes brandsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PAGE HEADER (inner pages) ── */
.page-header { padding:5rem 0 3.5rem; border-bottom:1px solid var(--line); }
.page-header h1 {
  font-family:var(--serif); font-size:clamp(2.4rem,5vw,4.5rem);
  font-weight:600; line-height:1; margin-bottom:.8rem;
}
.page-header p { font-size:1.05rem; color:var(--muted); max-width:56ch; }

/* ── AZIENDA ── */
.story-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:6rem; align-items:center;
}
.story-text h2 {
  font-family:var(--sans); font-size:clamp(1.9rem,3vw,3rem);
  line-height:1.1; margin-bottom:1.25rem;
}
.story-text p  { color:var(--muted); line-height:1.75; margin-bottom:1rem; }
.story-image   { overflow:hidden; }
.story-image img { width:100%; aspect-ratio:4/5; object-fit:cover; }
.blockquote {
  margin-top:2rem; padding-left:1.25rem;
  border-left:3px solid var(--brand);
}
.blockquote p {
  font-family:var(--serif); font-size:1.35rem;
  line-height:1.45; color:var(--ink); font-style:italic;
}
.blockquote small {
  display:block; margin-top:.4rem; font-size:.78rem;
  color:var(--muted); text-transform:uppercase; letter-spacing:.08em;
}

/* ── CONTACT ── */
.contact-grid { display:grid; grid-template-columns:1fr 1.45fr; gap:5rem; align-items:start; }
.contact-info h2 {
  font-family:var(--sans); font-size:clamp(1.8rem,2.5vw,2.6rem);
  line-height:1.1; margin-bottom:1.5rem;
}
.contact-block      { margin-bottom:1.25rem; }
.contact-block strong {
  display:block; font-size:.72rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); margin-bottom:.3rem;
}
.contact-block a,
.contact-block span { font-size:1rem; color:var(--ink); line-height:1.5; display:block; }
.contact-block a:hover { color:var(--brand); }
.wa-link {
  display:inline-flex; align-items:center; gap:.5rem;
  margin-top:1.5rem; padding:.8rem 1.6rem;
  background:#25d366; color:#fff;
  font-weight:700; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase;
  transition:background .2s;
}
.wa-link:hover { background:#1da851; }
.contact-form label {
  display:block; font-size:.74rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); margin-bottom:.4rem;
}
.contact-form input,
.contact-form textarea {
  width:100%; padding:.8rem .9rem;
  border:1px solid var(--line); border-radius:0;
  font-family:var(--sans); font-size:.95rem; color:var(--ink);
  background:var(--bg); outline:none; transition:border-color .2s;
  appearance:none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color:var(--brand); }
.contact-form textarea { min-height:150px; resize:vertical; }
.form-row  { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.form-full { margin-bottom:1rem; }

.contact-alert {
  margin: 0 0 .8rem;
  padding: .65rem .75rem;
  border: 1px solid transparent;
  font-size: .9rem;
}

.contact-alert--success {
  background: #f0f9ea;
  border-color: #8ccf66;
  color: #1f5a09;
}

.contact-alert--error {
  background: #fff2f2;
  border-color: #e7a5a5;
  color: #7c2020;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-map-wrap {
  border: 1px solid var(--line);
  overflow: hidden;
}

.contact-map-wrap--full {
  width: 100%;
  border-left: 0;
  border-right: 0;
}

.contact-map {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-map--full {
  height: 480px;
}


/* ── NEWS (INSTAGRAM) ── */
.news-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.news-card {
  border: 1px solid var(--line);
  background: #fff;
}
.news-card.is-hidden {
  display: none;
}
.news-card a {
  display: block;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-card:hover img {
  transform: scale(1.03);
}
.news-card-body {
  padding: .85rem .9rem 1rem;
}
.news-card-body p {
  font-size: .95rem;
  line-height: 1.45;
  color: var(--ink);
  min-height: 4.2em;
}
.news-meta {
  margin-top: .7rem;
  display: flex;
  gap: .55rem;
  align-items: center;
}
.news-meta span {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4a4a4a;
  border: 1px solid rgba(0,0,0,.16);
  padding: .16rem .45rem;
}
.news-empty {
  margin-top: 1.8rem;
  padding: 1.2rem;
  border: 1px dashed rgba(0,0,0,.28);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.news-more {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.news-pagination {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.news-page-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .85rem;
  border: 1px solid rgba(0,0,0,.18);
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.news-page-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.news-page-link.is-disabled {
  opacity: .38;
  pointer-events: none;
}

.news-page-current {
  font-size: .8rem;
  color: #565656;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── PRIVACY PAGE ── */
.privacy-content {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.privacy-section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.privacy-section h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
  margin-bottom: .5rem;
}

.privacy-section p,
.privacy-section li {
  font-size: .96rem;
  color: #3e3e3e;
  line-height: 1.65;
}

.privacy-section ul {
  margin: .45rem 0 0 1.1rem;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(520px, calc(100% - 2rem));
  background: rgba(22, 24, 26, 0.96);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
  border-top: 4px solid var(--brand);
  padding: .95rem;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: #9fe173;
  text-decoration: underline;
}

.cookie-actions {
  margin-top: .75rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.btn-outline-dark {
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  background: transparent;
}

.btn-outline-dark:hover {
  background: rgba(255,255,255,.12);
}

.btn-danger {
  background: #c5392f;
  color: #fff;
}

.btn-danger:hover {
  background: #a92f27;
}

/* ── GALLERY ── */
.gallery-filters {
  display:flex; gap:2rem; margin-bottom:2rem;
  border-bottom:1px solid var(--line); padding-bottom:0;
}
.filter-btn {
  background:transparent; border:none; padding:.4rem 0;
  font-family:var(--sans); font-size:.78rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px;
  transition:color .2s, border-color .2s;
}
.filter-btn:hover  { color:var(--ink); }
.filter-btn.active { color:var(--ink); border-color:var(--brand); }
.gallery-masonry { column-count:3; column-gap:1rem; margin-top:2.5rem; }
.gallery-item { break-inside:avoid; margin-bottom:1rem; }
.gallery-item.is-hidden { display:none; }
.gallery-thumb {
  position:relative; overflow:hidden; display:block;
  width:100%; border:none; padding:0; cursor:pointer; background:transparent;
}
.gallery-thumb img { width:100%; height:auto; display:block; transition:transform .45s; }
.gallery-thumb:hover img { transform:scale(1.04); }
.gallery-thumb-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,.3);
  display:flex; align-items:flex-end; padding:.9rem;
  opacity:0; transition:opacity .3s;
}
.gallery-thumb:hover .gallery-thumb-overlay { opacity:1; }
.gallery-thumb-label { font-size:.75rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#fff; }

/* ── REALIZZAZIONI ADMIN ── */
.admin-realizzazioni {
  margin-top: 2rem;
}

.admin-login,
.admin-upload {
  display: grid;
  gap: .9rem;
  max-width: 760px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
}

.admin-login input,
.admin-upload input,
.admin-upload select,
.admin-item-form input,
.admin-item-form select {
  width: 100%;
  padding: .72rem .8rem;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
}

.admin-login label,
.admin-upload label,
.admin-item-form label {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .35rem;
}

.admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .9rem;
}

.admin-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.admin-item {
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .9rem;
}

.admin-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-item-form {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: .7rem;
  align-items: end;
}

.admin-item-actions,
.admin-delete-form {
  display: flex;
  align-items: end;
}

/* ── LIGHTBOX ── */
.lightbox {
  position:fixed; inset:0; background:rgba(0,0,0,.92);
  z-index:200; display:grid; place-items:center;
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.lightbox.open { opacity:1; pointer-events:auto; }
.lightbox-inner { width:min(1100px,94%); position:relative; }
.lightbox-close {
  position:absolute; top:-2.5rem; right:0;
  border:none; background:transparent; color:#fff;
  font-size:.82rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  cursor:pointer; opacity:.65; transition:opacity .2s;
}
.lightbox-close:hover { opacity:1; }
.lightbox-inner img { width:100%; max-height:80vh; object-fit:contain; }
.lightbox-caption { margin-top:.8rem; text-align:center; color:rgba(255,255,255,.55); font-size:.85rem; }

/* ── FLOATING SOCIAL BANNER (DESKTOP) ── */
.social-float {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-float-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transition: transform .2s ease, filter .2s ease;
}

.social-float-link:hover {
  transform: translateX(2px);
  filter: brightness(1.05);
}

.social-float-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-float-link--facebook { background: #1877f2; }
.social-float-link--instagram { background: #9b5f2b; }
.social-float-link--whatsapp { background: #25d366; }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.show  { opacity:1; transform:none; }

/* ── FOOTER ── */
.site-footer {
  border-top: 5px solid var(--brand);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  background-color: #1e2022;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.018) 0px,
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.018) 0px,
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 6px
    );
}
.footer-grid {
  display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:3rem;
  padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size:.88rem; line-height:1.65; color:rgba(255,255,255,.5); max-width:27ch; margin-top:.9rem; }
.footer-brand small { display:block; margin-top:.5rem; font-size:.75rem; color:rgba(255,255,255,.3); }
.logo-footer { height:58px; width:auto; max-width:220px; filter:brightness(0) invert(1); }
.footer-col h6 {
  font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.4); margin-bottom:1rem;
}
.footer-col a { display:block; font-size:.9rem; color:rgba(255,255,255,.6); margin-bottom:.5rem; transition:color .2s; }
.footer-col a:hover { color:var(--brand); }
.footer-col p { font-size:.88rem; margin-bottom:.45rem; line-height:1.55; }
.footer-bottom {
  margin-top:1.8rem; display:flex; justify-content:space-between; align-items:center;
  font-size:.76rem; color:rgba(255,255,255,.3);
}
.footer-social { display:flex; gap:1.2rem; }
.footer-social a { color:rgba(255,255,255,.45); transition:color .2s; }
.footer-social a:hover { color:var(--brand); }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .social-float { display: none; }
  .section--brand-why::before,
  .section--brand-why::after {
    opacity: .45;
    transform: translateY(-50%) scale(.86);
    transform-origin: center;
  }
  .brand-why-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns:1fr; }
  .split--reverse .split-image,
  .split--reverse .split-body { order:initial; }
  .split-image { min-height:420px; }
  .split-body { padding:3.5rem 2.5rem; }
  .service-row,
  .service-row:nth-child(even) { grid-template-columns:1fr; min-height:auto; }
  .service-row:nth-child(even) .service-img,
  .service-row:nth-child(even) .service-body { order:initial; }
  .service-img { min-height:300px; }
  .service-body { padding:2.5rem 2rem; }
  .story-grid { grid-template-columns:1fr; gap:3rem; }
  .contact-grid { grid-template-columns:1fr; gap:3rem; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-masonry { column-count:2; }
  .admin-item {
    grid-template-columns: 1fr;
  }
  .admin-item-form {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns:1fr; }
  .stat-item { border-left:none; border-top:1px solid var(--line); padding:1.2rem 0 0; }
  .stat-item:first-child { border-top:none; padding-top:0; }
}

@media (max-width:768px) {
  .social-float { display: none; }
  .section--brand-why::before,
  .section--brand-why::after {
    display: none;
  }
  .menu-toggle { display:flex; }
  .nav-cta { display:none; }
  .main-nav {
    position:absolute; top:72px; left:0; right:0;
    background:#fff; flex-direction:column; align-items:stretch;
    padding:1rem 1.5rem; gap:0;
    border-bottom:1px solid var(--line);
    transform:translateY(-4px); opacity:0; pointer-events:none;
    transition:opacity .2s, transform .2s;
  }
  .main-nav.open { transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-link { padding:.75rem 0; border-bottom:1px solid var(--line); font-size:1.12rem; }
  .nav-link::after { display:none; }
  .hero-slider { height:86vh; }
  .hero-slide h1 { font-size:clamp(2rem,9vw,3rem); }
  .section { padding:4rem 0; }
  .split-body { padding:2.5rem 1.5rem; }
  .service-body { padding:2rem 1.5rem; }
  .form-row { grid-template-columns:1fr; }
  .contact-map { height: 320px; }
  .contact-map--full { height: 340px; }
  .footer-grid { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; gap:.6rem; text-align:center; }
  .news-grid { grid-template-columns: 1fr; }
  .news-pagination { flex-direction: column; align-items: flex-start; }
  .news-empty { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 1rem; right: 1rem; width: auto; }
  .gallery-masonry { column-count:1; }
  .gallery-filters { gap:1.2rem; }
  .hero-controls { right:1.2rem; bottom:1.4rem; }
  .cta-band { padding:4rem 0; }
  .brands-track { gap: 1.6rem; }
  .brands-track img { width: 170px; height: 112px; }
  .admin-login,
  .admin-upload {
    padding: .9rem;
  }
}
