/* ═══════════════════════════════════════════════════
   COREX S.p.A. — news.css
   Coerente con style.css (stesse var, font, palette)
═══════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NEWS LIST — GRID CARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.news-section {
  padding: 5rem 0 7rem;
  background: var(--off-white);
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Filtro lingua */
.news-lang-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.news-lang-bar span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-right: .5rem;
}
.lang-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: .42rem 1.1rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1.5px solid var(--gray-lt);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-dark);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-filter-btn:hover,
.lang-filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(212,43,43,.05);
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

/* Card */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  text-decoration: none;
  color: inherit;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
}

.news-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-lt);
  flex-shrink: 0;
}
.news-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.news-card:hover .news-card-thumb img { transform: scale(1.06); }

.news-card-badge {
  position: absolute;
  top: .9rem; left: .9rem;
  padding: .28rem .75rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  color: var(--gray-mid);
  font-weight: 500;
  letter-spacing: .04em;
}
.news-card-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-mid); flex-shrink: 0; }

.news-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: .86rem;
  color: var(--gray-mid);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: .4rem;
  transition: gap .2s var(--ease);
}
.news-card:hover .news-card-cta { gap: .65rem; }

/* Empty state */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray-mid);
  font-size: 1rem;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .9rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-lt);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-dark);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.pag-btn:hover,
.pag-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(212,43,43,.05);
}
.pag-btn.disabled { opacity: .35; pointer-events: none; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
  .news-section { padding: 3rem 0 5rem; }
  .news-grid    { grid-template-columns: 1fr; gap: 1.6rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NEWS DETAIL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.news-detail-section {
  padding: 5rem 0 7rem;
  background: var(--white);
}

.news-detail-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Breadcrumb */
.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .76rem;
  color: var(--gray-mid);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.news-breadcrumb a {
  color: var(--gray-mid);
  text-decoration: none;
  transition: color .2s;
}
.news-breadcrumb a:hover { color: var(--red); }
.news-breadcrumb .sep { opacity: .4; }

/* Article header */
.news-article-header {
  margin-bottom: 2.5rem;
}
.news-article-header .products-eyebrow { margin-bottom: .7rem; }

.news-article-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .8rem;
  color: var(--gray-mid);
  flex-wrap: wrap;
}
.news-article-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-mid); flex-shrink: 0; }

/* Cover image */
.news-cover-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--gray-lt);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.news-cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Body text */
.news-article-body {
  font-size: clamp(.93rem, 1.4vw, 1.02rem);
  line-height: 1.85;
  color: var(--gray-dark);
}
.news-article-body p         { margin-bottom: 1.4rem; }
.news-article-body h2        { font-size: 1.5rem; font-weight: 700; color: var(--black); margin: 2.5rem 0 .9rem; letter-spacing: -.015em; }
.news-article-body h3        { font-size: 1.18rem; font-weight: 700; color: var(--black); margin: 2rem 0 .7rem; }
.news-article-body strong    { color: var(--black); font-weight: 600; }
.news-article-body a         { color: var(--red); border-bottom: 1px solid rgba(212,43,43,.3); transition: border-color .2s; }
.news-article-body a:hover   { border-color: var(--red); }
.news-article-body ul, .news-article-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.news-article-body li        { margin-bottom: .4rem; }
.news-article-body blockquote {
  border-left: 3px solid var(--red);
  margin: 1.8rem 0;
  padding: 1rem 1.5rem;
  background: rgba(212,43,43,.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-dark);
}

/* Gallery */
.news-gallery {
  margin-top: 3.5rem;
}
.news-gallery-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.news-gallery-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-lt); }

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.news-gallery-item {
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-lt);
}
.news-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.news-gallery-item:hover img { transform: scale(1.07); }

/* Lightbox */
.news-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,10,10,.94);
  align-items: center;
  justify-content: center;
}
.news-lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  background: none; border: none;
  color: rgba(255,255,255,.6);
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  transition: color .2s;
  z-index: 1;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .82rem; color: rgba(255,255,255,.55);
  white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis;
}

/* Back button */
.news-back-wrap {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-lt);
}

@media (max-width: 640px) {
  .news-detail-section { padding: 2.5rem 0 4rem; }
  .news-gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ADMIN — LOGIN + DASHBOARD
   Mobile-first, ottimizzato iPhone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.admin-body {
  min-height: 100vh;
  background: #f0f2f5;
  font-family: var(--font-body);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  /* Evita zoom automatico su iOS nei campi input */
  -webkit-text-size-adjust: 100%;
}

/* ── Login ── */
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
@media (min-width: 480px) { .login-card { padding: 3rem 2.5rem; } }

.login-logo  { height: 26px; margin: 0 auto 2rem; display: block; }
.login-title { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: .4rem; color: var(--black); }
.login-sub   { font-size: .82rem; color: var(--gray-mid); text-align: center; margin-bottom: 2rem; }

/* ── Form elements ── */
.form-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.form-label {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dark);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--font-body);
  /* 16px minimo — evita zoom su iOS Safari */
  font-size: 16px;
  color: var(--black);
  background: var(--off-white);
  border: 1.5px solid var(--gray-lt);
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,43,43,.12);
  background: var(--white);
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form-hint     { font-size: .74rem; color: var(--gray-mid); line-height: 1.5; }

.alert { padding: .85rem 1.1rem; border-radius: 8px; font-size: .84rem; margin-bottom: 1.4rem; font-weight: 500; }
.alert-error   { background: rgba(212,43,43,.09); color: #b02020; border: 1px solid rgba(212,43,43,.2); }
.alert-success { background: rgba(40,140,60,.09);  color: #1e7a38; border: 1px solid rgba(40,140,60,.2); }

/* ── Topbar ── */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-lt);
  padding: 0 1rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
@media (min-width: 768px) { .admin-topbar { padding: 0 2rem; height: 62px; } }

.admin-topbar-logo { height: 20px; }
.admin-topbar-right {
  display: flex; align-items: center; gap: .8rem;
  font-size: .82rem; color: var(--gray-mid);
}
.admin-topbar-right a {
  color: var(--gray-mid); text-decoration: none;
  font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .45rem .8rem;
  border: 1.5px solid var(--gray-lt);
  border-radius: 6px;
  transition: color .2s, border-color .2s;
  /* Target touch minimo 44px */
  min-height: 44px; display: flex; align-items: center;
}
.admin-topbar-right a:hover { color: var(--red); border-color: var(--red); }

/* ── Bottom nav mobile (sostituisce sidebar) ── */
.admin-bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-lt);
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.07);
  /* Safe area iPhone X+ */
  padding-bottom: env(safe-area-inset-bottom);
}
.admin-bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .25rem; padding: .6rem .5rem;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray-mid); text-decoration: none;
  min-height: 56px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.admin-bottom-nav a.active,
.admin-bottom-nav a:hover { color: var(--red); }
.admin-bottom-nav .nav-icon { font-size: 1.3rem; line-height: 1; }

/* Sidebar desktop */
.admin-sidebar {
  display: none;
  background: var(--white);
  border-right: 1px solid var(--gray-lt);
  padding: 2rem 0;
}
@media (min-width: 900px) {
  .admin-sidebar { display: block; }
  .admin-bottom-nav { display: none; }
}

.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .78rem 1.5rem; font-size: .84rem; font-weight: 500;
  color: var(--gray-dark); text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--red); background: rgba(212,43,43,.05); border-left-color: var(--red);
}
.sidebar-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gray-mid);
  padding: 1.5rem 1.5rem .5rem;
}

/* ── Layout ── */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 56px);
  /* Spazio per bottom nav su mobile */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 220px 1fr;
    padding-bottom: 0;
    min-height: calc(100vh - 62px);
  }
}

/* ── Admin main ── */
.admin-main { padding: 1.2rem 1rem 2rem; overflow-y: auto; }
@media (min-width: 600px)  { .admin-main { padding: 1.8rem 1.5rem 3rem; } }
@media (min-width: 900px)  { .admin-main { padding: 2.5rem 2.5rem 4rem; } }

.admin-page-title { font-size: 1.25rem; font-weight: 700; color: var(--black); letter-spacing: -.015em; margin-bottom: .3rem; }
.admin-page-sub   { font-size: .84rem; color: var(--gray-mid); margin-bottom: 1.6rem; }
@media (min-width: 600px) { .admin-page-title { font-size: 1.5rem; } }

/* ── Stats ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-bottom: 1.6rem;
}
.stat-card {
  background: var(--white); border-radius: 12px;
  padding: 1rem 1.1rem; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stat-val { font-size: 1.7rem; font-weight: 700; color: var(--red); line-height: 1; }
.stat-lbl { font-size: .72rem; color: var(--gray-mid); margin-top: .35rem; }
@media (min-width: 600px) {
  .admin-stats { gap: 1.2rem; margin-bottom: 2rem; }
  .stat-card   { padding: 1.4rem 1.5rem; }
  .stat-val    { font-size: 2rem; }
}

/* ── News cards mobile (lista) ── */
.admin-news-list { display: flex; flex-direction: column; gap: .8rem; }

.admin-news-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.admin-news-card-body {
  padding: 1rem 1.1rem .8rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.admin-news-card-title {
  font-size: .94rem; font-weight: 700; color: var(--black); line-height: 1.3;
}
.admin-news-card-meta {
  font-size: .74rem; color: var(--gray-mid);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.admin-news-card-actions {
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--gray-lt);
  display: flex; gap: .5rem; flex-wrap: wrap;
}

/* ── News table (desktop) ── */
.admin-table-wrap {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden;
  display: none;
}
@media (min-width: 700px) {
  .admin-table-wrap  { display: block; }
  .admin-news-list   { display: none; }
}

.admin-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--gray-lt);
}
.admin-table-header h3 { font-size: .96rem; font-weight: 700; color: var(--black); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th {
  text-align: left; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray-mid);
  padding: .9rem 1.2rem; background: var(--off-white);
  border-bottom: 1px solid var(--gray-lt);
}
.admin-table td {
  padding: .9rem 1.2rem; border-bottom: 1px solid var(--gray-lt);
  color: var(--gray-dark); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,.018); }
.admin-table td strong { color: var(--black); font-weight: 600; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .72rem; font-size: .68rem;
  font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; border-radius: 50px;
}
.badge-published { background: rgba(40,140,60,.1);  color: #1e7a38; }
.badge-draft     { background: rgba(0,0,0,.07);      color: var(--gray-mid); }

/* Action buttons */
.act-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem 1rem; font-size: .78rem; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  background: none; font-family: var(--font-body);
  /* Touch target minimo 44px */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.act-btn-edit   { border-color: var(--gray-lt); color: var(--gray-dark); }
.act-btn-edit:hover   { border-color: var(--black); color: var(--black); }
.act-btn-delete { border-color: rgba(212,43,43,.25); color: var(--red); }
.act-btn-delete:hover { background: rgba(212,43,43,.07); border-color: var(--red); }
.act-btn-view   { border-color: rgba(40,140,60,.25); color: #1e7a38; }
.act-btn-view:hover   { background: rgba(40,140,60,.07); border-color: #1e7a38; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gray-lt); border-radius: 10px;
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--off-white);
  -webkit-tap-highlight-color: transparent;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--red); background: rgba(212,43,43,.03);
}
.upload-zone-text { font-size: .84rem; color: var(--gray-mid); margin-top: .5rem; }
.upload-zone-text strong { color: var(--red); }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .6rem; margin-top: 1rem;
}
.gallery-preview-item {
  position: relative; aspect-ratio: 1/1;
  border-radius: 8px; overflow: hidden; background: var(--gray-lt);
}
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-remove {
  position: absolute; top: .3rem; right: .3rem;
  width: 24px; height: 24px;
  background: rgba(212,43,43,.85); color: white;
  border: none; border-radius: 50%; font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Lang tabs — scrollabili su mobile */
.lang-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--gray-lt);
  margin-bottom: 1.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lang-tabs::-webkit-scrollbar { display: none; }
.lang-tab {
  padding: .7rem 1rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gray-mid);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s; background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: var(--font-body); white-space: nowrap;
  min-height: 44px; display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.lang-tab.active { color: var(--red); border-bottom-color: var(--red); }
.lang-tab-pane { display: none; }
.lang-tab-pane.active { display: block; }

/* Grid form 2 colonne → 1 su mobile */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
@media (min-width: 600px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* FAB — bottone fisso "Crea news" su mobile */
.admin-fab {
  display: flex;
  position: fixed; bottom: calc(64px + env(safe-area-inset-bottom) + .8rem);
  right: 1rem; z-index: 150;
  width: 52px; height: 52px;
  background: var(--red); color: var(--white);
  border-radius: 50%; border: none;
  font-size: 1.6rem; line-height: 1;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(212,43,43,.45);
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s, box-shadow .2s;
}
.admin-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(212,43,43,.55); }
@media (min-width: 700px) { .admin-fab { display: none; } }

/* Confirm modal */
.confirm-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 8000;
  align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 500px) {
  .confirm-modal-overlay { align-items: center; padding: 1rem; }
}
.confirm-modal-overlay.open { display: flex; }
.confirm-modal {
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 1.8rem 1.5rem calc(1.8rem + env(safe-area-inset-bottom));
  width: 100%; max-width: 100%;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
  text-align: center;
}
@media (min-width: 500px) {
  .confirm-modal {
    border-radius: 16px;
    max-width: 400px;
    padding: 2rem 2.2rem;
  }
}
.confirm-modal h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.confirm-modal p  { font-size: .86rem; color: var(--gray-mid); margin-bottom: 1.6rem; line-height: 1.6; }
.confirm-modal-btns { display: flex; flex-direction: column; gap: .7rem; }
@media (min-width: 400px) { .confirm-modal-btns { flex-direction: row; justify-content: center; } }

/* Quill editor ottimizzato mobile */
.ql-toolbar.ql-snow { flex-wrap: wrap !important; }
.ql-container.ql-snow { font-size: 16px !important; }
.ql-editor { min-height: 180px !important; padding: .9rem !important; }