/* --- Font --- */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Variabili tema scuro (default) --- */
:root {
  --bg:          #05386b;
  --surface:     #0a4a80;
  --text:        #e8e0d0;
  --muted:       #ffffff;
  --title:       #c9a84c;
  --contrNAV:    #ffffff;
  --accent:      #c9a84c;
  --accent-h:    #e0bc6a;
  --border:      #2a3f5f;
  --code-bg:     #043060;
  --header-bg:   #032d58;
  --header-fg:   #e8e0d0;
  --max-w:       740px;
  --font-body:   'Lora', Georgia, serif;
  --font-ui:     system-ui, sans-serif;
}

/* --- Tema chiaro --- */
html.theme-light {
  --bg:        #fafaf8;
  --surface:   #f0ede8;
  --text:      #1c1c1c;
  --muted:     #000000;
  --title:     #c9a84c;
  --contrNAV:  #ffffff;
  --accent:    #2c4a6e;
  --accent-h:  #1a3050;
  --border:    #e0ddd8;
  --code-bg:   #e8e4de;
  --header-bg: #2c4a6e;
  --header-fg: #fafaf8;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .3s, color .3s;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main.container { flex: 1; padding-top: 2.5rem; padding-bottom: 3rem; }

.evidenza {
  margin: 2rem auto;
  max-width: 80%;
  padding: .8rem 1.5rem;
  color: var(--accent);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  hyphens: auto;
  -webkit-hyphens: auto;
}



/* --- Header --- */
.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
  transition: background .3s, border-color .3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--title);
  text-decoration: none;
  letter-spacing: .04em;
  font-variant: small-caps;
  transition: color .3s;
}
.site-title:hover { color: var(--accent-h); text-decoration: none; }

.site-header nav a {
  color: var(--contrNAV);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.site-header nav a:hover { color: var(--header-fg); }

/* --- Toggle tema --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--contrNAV);
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.theme-toggle:hover { color: var(--header-fg); border-color: var(--accent); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  transition: border-color .3s;
}

/* --- Links --- */
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-h); text-decoration: underline; }

/* --- Tipografia --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--title);
  transition: color .3s;
}

h1 { font-size: 1.85rem; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .65rem; }
h3 { font-size: 1.1rem;  margin: 1.5rem 0 .5rem; }

.home-claim {
  text-align: center;
  font-size: 2rem;
  line-height: 1.35;
  margin: .5rem 0 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

p { margin-bottom: 1.1rem; }

strong { font-weight: 700; }
em     { font-style: italic; }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.75rem 0;
  padding: .6rem 1.25rem;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}

code {
  font-family: 'Courier New', monospace;
  font-size: .83em;
  background: var(--code-bg);
  color: var(--accent);
  padding: .1em .35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
pre code { background: none; padding: 0; color: var(--text); font-size: .82rem; }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: .3rem; }

.article-abstract {
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  margin: 2.5rem 1.5rem;
  padding: .6rem 1.25rem;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 4px;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-align: justify;
}

/* --- Filter bar --- */
.filter-bar {
  font-family: var(--font-ui);
  font-size: .82rem;
  margin-bottom: 1.75rem;
  padding: .55rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: .6rem;
  border-radius: 0 4px 4px 0;
}
.filter-bar a { font-size: .78rem; color: var(--muted); }
.filter-bar a:hover { color: var(--accent); }

/* --- Article list --- */
.article-list { list-style: none; padding: 0; }

.article-card {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  transition: border-color .3s;
}
.article-card:first-child { padding-top: 0; }
.article-card:last-child  { border-bottom: none; }

.article-card h2 { font-size: 1.2rem; margin: 0 0 .45rem; }
.article-card h2 a { color: var(--title); }
.article-card h2 a:hover { color: var(--accent-h); text-decoration: none; }

.excerpt { color: var(--muted); font-size: .93rem; margin-bottom: .65rem; }

/* --- Meta --- */
.meta {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.cat-link {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
}
.cat-link:hover { text-decoration: underline; }

.tag-link { color: var(--muted); font-size: .7rem; }
.tag-link:hover { color: var(--accent); text-decoration: none; }

.date { color: var(--muted); opacity: .7; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-ui);
  font-size: .85rem;
}
.pagination a { color: var(--accent); font-weight: 600; }
.pagination a:hover { color: var(--accent-h); }
.pagination span { color: var(--muted); }

/* --- Articolo singolo --- */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb span:last-child { color: var(--text); }

.article-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.article-header h1 { margin-bottom: .65rem; }

.article-body {
  margin-top: 1.75rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  hyphenate-limit-chars: 6 3 3;
  hyphenate-limit-lines: 2;
}
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body a { text-decoration: underline; }

.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: .82rem;
}
.nav-prev, .nav-next { max-width: 45%; color: var(--accent); font-weight: 600; line-height: 1.4; }
.nav-prev:hover, .nav-next:hover { color: var(--accent-h); text-decoration: none; }
.nav-next { text-align: right; }

/* --- Responsive --- */
@media (max-width: 600px) {
  html  { font-size: 16px; }
  h1    { font-size: 1.5rem; }
  .home-claim { font-size: 1.6rem; }
  .article-nav { flex-direction: column; }
  .nav-prev, .nav-next { max-width: 100%; }
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  z-index: 9999;
  font-family: var(--font-ui);
  font-size: .85rem;
  transition: background .3s, border-color .3s;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner { padding: 1.1rem 1.25rem 1.25rem; }

.cookie-close {
  position: absolute;
  top: .5rem;
  right: .65rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: .2rem .4rem;
}
.cookie-close:hover { color: var(--text); }

.cookie-banner p { margin: 0 0 .9rem; line-height: 1.5; color: var(--text); }

.cookie-actions {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}

.cookie-btn {
  flex: 1;
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .8rem;
  font-family: var(--font-ui);
  transition: background .2s, color .2s;
}
.cookie-btn:hover { background: var(--border); }

.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cookie-btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }

.cookie-btn-full { width: 100%; margin-top: .6rem; flex: none; }

.cookie-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .78rem;
  user-select: none;
  margin-bottom: .4rem;
}
.cookie-details summary:hover { color: var(--text); }

.cookie-checkboxes {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: .5rem 0;
}
.cookie-checkboxes label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: normal;
  font-size: .82rem;
  cursor: pointer;
}
.cookie-checkboxes input[type=checkbox] { width: auto; margin: 0; }

@media (max-width: 420px) {
  .cookie-banner { left: .75rem; right: .75rem; max-width: none; }
}

/* --- Nav toggle (hamburger) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--contrNAV);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .2rem .4rem;
  line-height: 1;
}

.main-nav a { white-space: nowrap; }

@media (max-width: 600px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 2px solid var(--accent);
    flex-direction: column;
    padding: .75rem 1.25rem 1rem;
    gap: .75rem;
    z-index: 99;
  }
  .main-nav.nav-open { display: flex; }
}

@media (min-width: 601px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex !important; align-items: center; gap: 1rem; }
  .theme-toggle { display: inline-block !important; }
}

/* --- Newsletter --- */
.nl-page { text-align: center; }

.nl-title {
  font-size: 1.6rem;
  color: var(--title);
  margin-bottom: .75rem;
}

.nl-sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.nl-form { text-align: left; }

.nl-field { margin-bottom: .75rem; }
.nl-field input {
  width: 100%;
  padding: .6rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .9rem;
}
.nl-field input::placeholder { color: var(--muted); }
.nl-field input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.nl-gdpr {
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.nl-gdpr label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.nl-gdpr input[type=checkbox] { width: auto; margin-top: .15rem; flex-shrink: 0; }
.nl-gdpr a { color: var(--accent); }

.nl-btn {
  width: 100%;
  padding: .65rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.nl-btn:hover { background: var(--accent-h); }
.nl-btn:disabled { opacity: .6; cursor: not-allowed; }

.nl-msg {
  margin-top: .75rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  min-height: 1.2em;
  text-align: center;
}
.nl-msg.ok  { color: #2a7a2a; }
.nl-msg.err { color: #c0392b; }

.nl-note {
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* --- Newsletter slide-up --- */
.nl-slideup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  z-index: 9998;
  padding: 1.25rem 1.25rem 1rem;
  font-family: var(--font-ui);
}
.nl-slideup[hidden] { display: none; }

.nl-slideup-close {
  position: absolute;
  top: .5rem;
  right: .65rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: .2rem .4rem;
}
.nl-slideup-close:hover { color: var(--text); }

.nl-slideup-title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--title);
  font-size: 1rem;
  margin: 0 0 .25rem;
  font-variant: small-caps;
  letter-spacing: .04em;
}
.nl-slideup-sub {
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 .9rem;
  line-height: 1.5;
}

/* --- Footer: invito alla newsletter (link, non form) --- */
.nl-footer-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.25rem;
  text-align: center;
}

.nl-footer-cta {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
}
.nl-footer-cta span { font-size: .85rem; color: var(--muted); }
.nl-footer-cta .nl-btn { flex-shrink: 0; width: auto; padding: .45rem 1.1rem; font-size: .85rem; }

@media (max-width: 420px) {
  .nl-slideup { right: .75rem; left: .75rem; width: auto; }
}

@keyframes nl-wander {
  0%   { transform: translateX(0); }
  44%  { transform: translateX(calc(-100vw + 100% + 3rem)); }
  56%  { transform: translateX(calc(-100vw + 100% + 3rem)); }
  100% { transform: translateX(0); }
}

.nl-slideup:not([hidden]) {
  animation: nl-wander 80s ease-in-out 2s infinite;
}

/* --- Argomenti --- */
.arg-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.arg-list li {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .35rem .75rem;
  font-family: var(--font-ui);
  font-size: .85rem;
}
.arg-list a { color: var(--accent); font-weight: 600; }
.arg-list a:hover { color: var(--accent-h); text-decoration: none; }
.arg-count {
  color: var(--muted);
  font-size: .75rem;
  opacity: .7;
}

/* --- Area riservata --- */
.area-zona {
  margin: 2.5rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.area-zona:last-of-type {
  border-bottom: none;
}
.area-zona h2 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}
.area-hint {
  font-size: .9rem;
  color: var(--muted, #666);
  margin-bottom: 1rem;
}
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.area-list li:last-child {
  border-bottom: none;
}
.area-list a {
  font-weight: 600;
}
.area-cat {
  display: inline-block;
  margin-left: .5rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted, #666);
}
.area-catalogo h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 1.5rem 0 .75rem;
}
.area-logout a {
  font-size: .9rem;
  color: var(--muted, #666);
}

/* --- Search ---*/

.search-wrap { margin: 1.5rem 0 1rem; }
.search-input {
  width: 100%; padding: .65rem .9rem;
  font-size: 1rem; border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  box-sizing: border-box;
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-count { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-item { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.search-title { font-size: 1.05rem; font-weight: 600; }
.search-item .meta { margin-top: .3rem; font-size: .82rem; }

/* --- Modal WhatsApp post-iscrizione --- */
.wa-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.wa-overlay[hidden] { display: none; }
.wa-modal {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
  width: 90vw; max-width: 480px;
  max-height: 90vh;
  font-family: var(--font-ui);
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.wa-modal h2 { font-size: 1.2rem; color: var(--title); margin-bottom: .75rem; }
.wa-modal p  { font-size: .88rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }
.wa-modal input[type=tel] {
  width: 100%; padding: .6rem .9rem; margin-bottom: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text);
  font-family: var(--font-ui); font-size: .9rem;
}
.wa-modal input[type=tel]:focus { outline: 2px solid var(--accent); border-color: transparent; }
.wa-modal-actions { display: flex; gap: .75rem; justify-content: center; }
.wa-modal-actions .nl-btn { flex: 1; max-width: 180px; }
.wa-btn-skip {
  flex: 1; max-width: 180px;
  padding: .65rem; border: 1px solid var(--border);
  border-radius: 4px; background: transparent;
  color: var(--muted); font-family: var(--font-ui);
  font-size: .9rem; cursor: pointer;
  transition: background .2s;
}
.wa-btn-skip:hover { background: var(--border); }
.wa-msg { font-size: .82rem; min-height: 1.2em; margin-top: .6rem; }

/* --- Newsletter profilo --- */
.nl-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nl-field select {
  width: 100%;
  padding: .6rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .9rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.nl-field select:focus { outline: 2px solid var(--accent); border-color: transparent; }

.nl-fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
}
.nl-fieldset legend { padding: 0 .4rem; }

.nl-optional {
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  opacity: .7;
  text-transform: none;
  letter-spacing: 0;
}

.nl-checks {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .5rem;
}

.nl-check-label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.nl-check-label input[type=checkbox] {
  width: auto;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.nl-altro-wrap input[type=text] {
  width: 100%;
  padding: .5rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .88rem;
}
.nl-altro-wrap input[type=text]:focus { outline: 2px solid var(--accent); border-color: transparent; }

.nl-profilo-actions {
  display: flex;
  gap: .75rem;
  margin-top: .25rem;
}
.nl-profilo-actions .nl-btn { flex: 1; }

.nl-btn-skip {
  flex: 1;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.nl-btn-skip:hover { background: var(--border); }

@media (max-width: 600px) {
  .nl-profilo-actions { flex-direction: column; }
}

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

.contatti-form { text-align: left; margin: 1rem 0; }
.contatti-form textarea {
  width: 100%;
  padding: .6rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: .9rem;
  resize: vertical;
}
.contatti-form textarea::placeholder { color: var(--muted); }
.contatti-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contatti-form .nl-btn { margin-top: .5rem; }
.contatti-msg {
  margin-top: .75rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  min-height: 1.2em;
  text-align: center;
}
.contatti-msg.ok  { color: #2a7a2a; }
.contatti-msg.err { color: #c0392b; }

.access-notice {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-family: var(--font-ui);
}
.access-notice-title {
  display: block;
  color: var(--title);
  font-size: .95rem;
  margin-bottom: .4rem;
}
.access-notice p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
}

