:root {
  --ink: #24313a;
  --muted: #66757f;
  --rose: #c24a6c;
  --rose-dark: #8f2e4b;
  --mint: #dff2ea;
  --cream: #fff8f2;
  --paper: #ffffff;
  --line: #e6ddd8;
  --shadow: 0 18px 50px rgba(41, 49, 58, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  left: 16px;
  position: absolute;
  top: -80px;
  z-index: 5;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.topbar::before {
  background-image: var(--menu-logo);
  background-position: left 86px center;
  background-repeat: no-repeat;
  background-size: auto 82px;
  content: "";
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
}

.topbar::after {
  display: none;
}

.topbar__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 78px;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  align-items: center;
  background: var(--rose);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 24px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-group {
  align-items: center;
  display: flex;
  gap: 12px;
}

.nav a {
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 13px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--mint);
}

.topbar-social {
  align-items: center;
  display: flex;
  gap: 8px;
}

.social-link {
  align-items: center;
  background: #f26312;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  text-decoration: none;
  width: 32px;
}

.social-link[hidden] {
  display: none;
}

.social-link svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.social-link:hover {
  background: var(--rose-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  align-items: flex-end;
  display: grid;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  position: relative;
}

.hero__media,
.hero__overlay {
  inset: 0;
  position: absolute;
}

.hero__media {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(36, 49, 58, 0.82), rgba(36, 49, 58, 0.5), rgba(36, 49, 58, 0.24)),
    rgba(255, 255, 255, 0.08);
}

.hero__content {
  color: white;
  max-width: 1040px;
  padding: 70px 22px 105px;
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd5df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero p {
  font-size: 20px;
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button--primary {
  background: var(--rose);
  color: white;
}

.button--primary:hover {
  background: var(--rose-dark);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: white;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 22px;
}

#news {
  scroll-margin-top: 112px;
}

.section--tint {
  background: var(--cream);
  max-width: none;
}

.section--tint > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.section__grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 1fr 0.9fr;
}

.lead {
  color: var(--rose-dark);
  font-size: 22px;
  font-weight: 700;
}

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.check-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0 12px 32px;
  position: relative;
}

.check-list li::before {
  color: var(--rose);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.photo-block {
  margin: 0;
}

.photo-block img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.section__heading {
  margin-bottom: 34px;
  max-width: 760px;
}

.section__heading p {
  color: var(--muted);
  font-size: 18px;
}

.service-grid,
.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card,
.news-card,
.convention-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.service-card__number {
  color: var(--rose);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 24px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section--gallery {
  background: #f2f8f7;
  max-width: none;
}

.section--gallery > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.gallery-events {
  display: grid;
  gap: 24px;
}

.gallery-event {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-event__heading {
  align-items: start;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.gallery-event__heading h3 {
  margin-bottom: 8px;
}

.gallery-event__date {
  color: var(--rose);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.gallery-thumbs {
  display: grid;
  gap: 12px;
  grid-auto-columns: calc((100% - 36px) / 4);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 22px 22px;
  scrollbar-color: var(--rose) #edf3f1;
  scrollbar-width: thin;
}

.gallery-thumb {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.gallery-thumb:hover {
  border-color: var(--rose);
}

.gallery-thumb img,
.gallery-thumb video {
  aspect-ratio: 4 / 3;
  background: #dbe5e2;
  object-fit: cover;
  width: 100%;
}

.gallery-thumb__caption {
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px 11px;
}

.gallery-thumb__badge {
  background: rgba(36, 49, 58, 0.86);
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.body--locked {
  overflow: hidden;
}

.lightbox {
  align-items: center;
  background: rgba(20, 28, 33, 0.88);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 28px;
  position: fixed;
  z-index: 30;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1050px, 86vw);
  width: 100%;
}

.lightbox__media {
  align-items: center;
  display: grid;
  justify-items: center;
}

.lightbox__media img,
.lightbox__media video {
  background: black;
  border-radius: var(--radius);
  max-height: 78vh;
  max-width: 100%;
}

.lightbox__figure figcaption {
  color: white;
  font-weight: 800;
  padding-top: 12px;
  text-align: center;
}

.lightbox__close,
.lightbox__arrow {
  align-items: center;
  background: white;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  position: fixed;
  width: 48px;
}

.lightbox__close {
  right: 22px;
  top: 22px;
}

.lightbox__arrow--prev {
  left: 22px;
  top: 50%;
}

.lightbox__arrow--next {
  right: 22px;
  top: 50%;
}

.news-card__meta {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.read-more,
.detail-back {
  color: var(--rose-dark);
  display: inline-flex;
  font-weight: 900;
  margin-top: 8px;
  text-decoration: none;
}

.read-more:hover,
.detail-back:hover {
  text-decoration: underline;
}

.detail-section {
  padding-top: 0;
}

.detail-article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  padding: clamp(22px, 4vw, 46px);
}

.detail-date,
.card-date {
  color: var(--muted);
  font-weight: 800;
}

.card-date {
  font-size: 13px;
  margin: -6px 0 12px;
}

.detail-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 20px 0 28px;
}

.detail-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  overflow: visible;
  width: 100%;
}

.detail-image img,
.detail-image video {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.detail-image figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.detail-image__link {
  color: inherit;
  cursor: pointer;
  display: block;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(194, 74, 108, .24);
  text-decoration: none;
}

.detail-image__link img,
.detail-image__link video {
  pointer-events: none;
  -webkit-user-drag: none;
}

.detail-image__link:hover img,
.detail-image__link:hover video {
  filter: brightness(.96);
}

.detail-image__link:active {
  opacity: .85;
}

.detail-image__link:focus-visible {
  outline: 3px solid var(--accent, #b34c68);
  outline-offset: 4px;
}

.news-media-detail__figure {
  margin: 22px 0 30px;
}

.news-media-detail__figure img,
.news-media-detail__figure video {
  background: #f4f1ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
}

.news-media-detail__figure figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}

.news-media-page .detail-content {
  white-space: pre-wrap;
}

.news-media-page {
  min-height: 100vh;
}

.dictation-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dictation-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-gallery .detail-image:only-child img,
.detail-gallery .detail-image:only-child video {
  max-height: 620px;
  object-fit: contain;
}

.detail-gallery .detail-image:not(:only-child) img,
.detail-gallery .detail-image:not(:only-child) video {
  max-height: 420px;
  object-fit: contain;
}

.detail-content {
  color: var(--ink);
  font-size: 18px;
  max-width: 860px;
}

.support-section {
  background: #fff4ed;
  padding: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1440px;
}

.support-media {
  background: #e9e2dc;
  margin: 0;
  min-height: 430px;
  overflow: hidden;
}

.support-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.support-copy {
  align-content: center;
  background: white;
  display: grid;
  min-height: 430px;
  padding: clamp(34px, 5vw, 76px);
}

.support-copy .eyebrow {
  color: #e95716;
}

.support-copy h2,
.support-copy h3 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  margin: 0 0 22px;
  max-width: 680px;
}

.support-copy h3 {
  color: #e95716;
}

.support-text {
  font-size: 17px;
  max-width: 660px;
}

.support-text p {
  margin: 0 0 12px;
}

.support-details {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.support-details div {
  border-left: 4px solid #e95716;
  padding-left: 14px;
}

.support-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-details dd {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 900;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.convention-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.convention-item strong {
  color: var(--rose-dark);
}

.contact-section {
  display: grid;
  gap: 44px;
  grid-template-columns: 0.8fr 1fr;
}

.contact-cards {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-cards a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  padding: 14px 16px;
  text-decoration: none;
}

.contact-cards span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  padding: 14px 16px;
}

.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  overflow: hidden;
}

.map-card iframe {
  aspect-ratio: 4 / 3;
  border: 0;
  display: block;
  width: 100%;
}

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: 26px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.privacy {
  align-items: start;
  display: grid;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.privacy input {
  margin-top: 4px;
}

.form-note {
  color: var(--rose-dark);
  font-weight: 700;
  margin: 0;
}

.footer {
  align-items: center;
  background: #f5f1ee;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px max(22px, calc((100vw - 1180px) / 2));
}

.footer p {
  margin: 0;
}

.error-page {
  padding: 80px 22px;
}

.admin-shell {
  background: #f7f5f2;
  min-height: 100vh;
}

.admin-header {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 18px max(22px, calc((100vw - 1180px) / 2));
}

.admin-header a {
  color: white;
}

.admin-main {
  display: grid;
  gap: 22px;
  grid-template-columns: 240px 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 22px 70px;
}

.admin-tabs {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 8px;
  position: sticky;
  top: 96px;
}

.admin-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px;
  text-align: left;
}

.admin-tabs button[aria-selected="true"] {
  background: var(--mint);
}

.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid .wide,
.editor-card .wide {
  grid-column: 1 / -1;
}

.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.editor-list {
  display: grid;
  gap: 14px;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.editor-card__actions {
  align-items: end;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.gallery-editor-card {
  background: #fffdfb;
}

.media-editor-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.media-editor-list h3 {
  font-size: 18px;
  margin: 0;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 2px;
}

.media-empty-state {
  background: #f8faf9;
  border: 1px dashed #b8c6c0;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  padding: 14px;
}

.media-editor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.media-editor-card .wide {
  grid-column: 2 / -1;
}

.media-preview {
  align-items: center;
  background: #edf3f1;
  border: 1px dashed #b8c6c0;
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  justify-items: center;
  min-height: 120px;
  overflow: hidden;
}

.media-preview img,
.media-preview video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.media-picker > strong {
  color: var(--ink);
}

.media-picker__technical input {
  background: #f7f5f2;
}

.media-preview--small {
  max-width: 260px;
  min-height: 120px;
}

.button--light {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button--danger {
  background: #fff0f0;
  border-color: #f3b6b6;
  color: #9d2727;
}

.status {
  color: var(--rose-dark);
  font-weight: 800;
}

.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10vh auto;
  max-width: 440px;
  padding: 28px;
}

@media (max-width: 900px) {
  #news {
    scroll-margin-top: 92px;
  }

  .nav-toggle {
    display: block;
  }

  .topbar::before {
    background-position: left 24px center;
    background-size: auto 62px;
    opacity: 1;
  }

  .topbar::after {
    display: none;
  }

  .nav {
    background: white;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 22px 10px;
    position: static;
  }

  .nav-group {
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 78px;
  }

  .nav--open {
    display: grid;
  }

  .topbar-social {
    background: white;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 22px 14px;
    position: static;
  }

  .nav.nav--open + .topbar-social {
    display: flex;
  }

  .nav a {
    border-radius: var(--radius);
    padding: 12px;
  }

  .section__grid,
  .contact-section,
  .admin-main {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-media,
  .support-copy {
    min-height: 360px;
  }

  .support-copy--membership {
    order: 1;
  }

  .support-media--primary {
    order: 2;
  }

  .support-copy--tax {
    order: 3;
  }

  .support-media--secondary {
    order: 4;
  }

  .service-grid,
  .news-grid,
  .convention-list,
  .admin-grid,
  .editor-card,
  .media-editor-card {
    grid-template-columns: 1fr;
  }

  .media-editor-card .wide {
    grid-column: 1;
  }

  .gallery-event__heading {
    display: grid;
  }

  .gallery-thumbs {
    grid-auto-columns: calc((100% - 12px) / 2);
  }

  .brand__logo {
    width: 150px;
  }

  .admin-tabs {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
  }

  .hero__overlay {
    background: linear-gradient(0deg, rgba(36, 49, 58, 0.92), rgba(36, 49, 58, 0.42));
  }

  .hero__content {
    padding-bottom: 66px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .gallery-thumbs {
    grid-auto-columns: 84%;
  }
}

/* Privacy, CMP e blocco preventivo contenuti esterni */
.footer-legal { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; margin-top: 12px; }
.footer-legal a, .footer-legal button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.map-card { min-height: 360px; position: relative; }
.map-card iframe { border: 0; height: 100%; min-height: 360px; width: 100%; }
.map-consent { align-items: center; background: linear-gradient(135deg, #edf4ef, #d8e8de); display: flex; inset: 0; justify-content: center; min-height: 360px; padding: 28px; text-align: center; }
.map-consent > div { background: rgba(255,255,255,.94); border-radius: 16px; box-shadow: var(--shadow); max-width: 540px; padding: 28px; }
.map-consent strong { display: block; font-size: 1.35rem; margin-bottom: 8px; }
.map-consent .button { margin: 8px 12px 8px 0; }
.consent-panel[hidden] { display: none; }
.consent-panel { align-items: flex-end; background: rgba(25,35,42,.58); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 10000; }
.consent-panel__card { background: white; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.28); max-height: calc(100vh - 40px); max-width: 720px; overflow: auto; padding: 28px; position: relative; width: 100%; }
.consent-panel__card h2 { margin-top: 0; }
.consent-panel__close { background: transparent; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; position: absolute; right: 18px; top: 14px; }
.consent-category { align-items: center; background: #f6f3f0; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 20px; justify-content: space-between; margin: 12px 0; padding: 16px; }
.consent-category div { display: grid; gap: 4px; }
.consent-category small { color: #58636a; }
.consent-category span { color: var(--rose-dark); font-size: .88rem; font-weight: 800; white-space: nowrap; }
.consent-category--choice { cursor: pointer; }
.consent-category--choice input { height: 24px; min-width: 24px; width: 24px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.consent-links { font-size: .92rem; }
.body--consent-open { overflow: hidden; }
.legal-page { background: #faf8f6; color: var(--ink); min-height: 100vh; }
.legal-header { background: white; border-bottom: 1px solid var(--line); padding: 22px max(24px, calc((100% - 980px) / 2)); }
.legal-header a { color: var(--rose-dark); font-weight: 800; }
.legal-content { background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin: 40px auto; max-width: 980px; padding: clamp(24px, 5vw, 56px); }
.legal-content h1 { margin-top: 0; }
.legal-content h2 { margin-top: 34px; }
.legal-content li { margin-bottom: 8px; }
.legal-notice { background: #fff4d8; border: 1px solid #e9c66b; border-radius: 12px; padding: 16px; }
@media (max-width: 560px) { .consent-panel { padding: 0; } .consent-panel__card { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 24px 18px; } .consent-actions { display: grid; } .consent-actions .button { width: 100%; } .consent-category { align-items: flex-start; } }
.legal-table-wrap { overflow-x: auto; }
.legal-content table { border-collapse: collapse; margin: 16px 0; width: 100%; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.legal-content th { background: #f6f3f0; }

/* Pannello consenso compatto */
.consent-panel__card { max-width: 760px; }
.consent-panel__card > h2 { font-size: 1.25rem; text-align: center; }
.consent-services-link { background: transparent; border: 0; color: var(--rose-dark); cursor: pointer; font: inherit; font-weight: 800; padding: 8px 0; text-decoration: underline; }
.consent-details[hidden] { display: none; }
.consent-details { background: #fbfaf8; border: 1px solid var(--line); border-radius: 14px; margin: 8px 0 18px; padding: 12px; }
.consent-save { display: block; margin-left: auto; }
.consent-actions--main { display: grid; grid-template-columns: 1fr 1fr 1.45fr; }
.consent-actions--main .button { min-height: 50px; }
.consent-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 0; }
.consent-links a { color: var(--rose-dark); font-weight: 800; }
@media (max-width: 640px) { .consent-actions--main { grid-template-columns: 1fr; } .consent-links { flex-wrap: wrap; } }

/* Correzione allineamento informativa modulo contatti */
.privacy input[type="checkbox"] { border-radius: 3px; height: 18px; margin: 3px 0 0; padding: 0; width: 18px; }
.privacy span { line-height: 1.5; min-width: 0; }
.privacy a { display: inline; white-space: nowrap; }

/* Rispetta lo stato nascosto del segnaposto dopo il consenso */
.map-consent[hidden] { display: none !important; }

/* Modulo contatti migliorato */
.contact-form { align-content: start; background: linear-gradient(145deg, #fffaf7, #f4ece7); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(70, 48, 40, .08); gap: 18px; padding: clamp(24px, 4vw, 36px); }
.contact-form__heading { border-bottom: 1px solid var(--line); margin-bottom: 2px; padding-bottom: 18px; }
.contact-form__heading .eyebrow { margin: 0 0 6px; }
.contact-form__heading h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 0 0 8px; }
.contact-form__heading p:last-child { color: var(--muted); margin: 0; }
.contact-form label > span[aria-hidden="true"] { color: var(--rose-dark); }
.contact-form input:not([type="checkbox"]), .contact-form textarea, .contact-form select { background: white; border-radius: 12px; min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { line-height: 1.5; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--rose-dark); box-shadow: 0 0 0 3px rgba(176, 69, 98, .14); outline: none; }
.contact-form__help { background: rgba(255,255,255,.7); border-left: 4px solid var(--rose-dark); border-radius: 8px; color: var(--muted); line-height: 1.5; margin: -4px 0 0; padding: 12px 14px; }
.contact-form .privacy { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.contact-form__submit { justify-self: start; min-width: 190px; }
.contact-form .form-note:empty { display: none; }
.contact-form .form-note:not(:empty) { background: #edf7f0; border-radius: 10px; padding: 12px 14px; }
@media (max-width: 560px) { .contact-form__submit { width: 100%; } }

/* Backoffice: accesso e barra operativa */
.admin-shell { background: radial-gradient(circle at top left, #fff8f4, #f3f1ee 48%, #edf4ef); }
.login-card { border: 0; box-shadow: 0 24px 70px rgba(43, 47, 52, .16); margin: clamp(40px, 10vh, 110px) auto; max-width: 500px; padding: clamp(28px, 5vw, 44px); }
.login-card h1 { margin: 4px 0 10px; }
.login-card > p:not(.eyebrow) { color: var(--muted); }
.password-field { display: grid; grid-template-columns: 1fr auto; position: relative; }
.password-field input { border-radius: 12px 0 0 12px; min-width: 0; }
.password-field button { background: white; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; color: var(--rose-dark); cursor: pointer; font: inherit; font-weight: 800; padding: 0 14px; }
.login-status { min-height: 24px; }
.admin-header { box-shadow: 0 6px 24px rgba(0,0,0,.16); position: sticky; top: 0; z-index: 100; }
.admin-header__actions { margin-top: 0; }
.admin-session { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .85rem; font-weight: 800; padding: 8px 12px; }
.admin-panel { box-shadow: 0 14px 38px rgba(43,47,52,.07); }
.admin-panel__actions { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; }
.admin-tabs button { transition: background-color .18s ease, transform .18s ease; }
.admin-tabs button:hover { background: #f5f1ee; transform: translateX(2px); }
.admin-tabs button[aria-selected="true"] { box-shadow: inset 4px 0 0 var(--rose-dark); }
.button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 700px) { .admin-session { display: none; } .admin-header { position: static; } .admin-header__actions { width: 100%; } .admin-header__actions .button { flex: 1; text-align: center; } }

.detail-image__link { cursor: pointer; }
.detail-image__link:hover img, .detail-image__link:hover video { filter: brightness(.96); }
.news-media-page { min-height: 100vh; }
