:root {
  color-scheme: light;
  --ink: #1c1b19;
  --text-muted: #59534c;
  --line: #d8cdbc;
  --paper: #f5f0e7;
  --white: #fff;
  --accent: #7d2637;
  --accent-wash: #f8f2eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { min-height: 73vh; }
a { color: #753147; text-underline-offset: 3px; }
button, input { font: inherit; }
button:disabled { opacity: .65; cursor: wait; }
button:not(:disabled), input[type="checkbox"], summary { cursor: pointer; }
:focus-visible { outline: 3px solid #8c4252; outline-offset: 3px; }
.wrap { width: min(100% - clamp(32px, 7vw, 128px), 68rem); margin-inline: auto; }
.preview-banner { color: #352b1e; background: #ede1cc; border-bottom: 1px solid #d9cbb4; }
.preview-banner .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 13px; min-height: 36px; padding-block: .38rem; font-size: .76rem; }
.preview-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .075em; }
.site-header { background: var(--white); border-bottom: 1px solid #e6ddd0; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-inner img { display: block; width: 76px; height: 60px; object-fit: contain; }
.header-inner p { margin: 0; font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; text-align: right; }
.header-inner p span { color: var(--accent); padding: 0 .15em; }
.main-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(26px, 5.6vw, 78px); padding-block: clamp(32px, 5.4vw, 69px); }
.eyebrow { margin: 0 0 .7rem; color: var(--accent); font-weight: 760; letter-spacing: .1em; font-size: .72rem; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.65rem, 5vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: -.015em; }
.intro-copy { font-size: 1.12rem; color: var(--text-muted); max-width: 30ch; margin-block: 1.35rem 1.65rem; }
.topics { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.topics li { display: flex; align-items: center; gap: .65rem; font-size: .94rem; font-weight: 600; }
.topics li::before { content: ""; display: block; width: .35rem; height: .35rem; flex: none; border-radius: 50%; background: var(--accent); }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(21px, 4vw, 43px); min-width: 0; }
.card-intro { margin: .8rem 0 1.25rem; color: var(--text-muted); font-size: .97rem; }
.email-field label { display: block; font-weight: 650; margin-bottom: .33rem; font-size: .91rem; }
.email-field input { width: 100%; min-height: 46px; background: #fffdfa; color: var(--ink); border: 1px solid #938777; border-radius: 3px; padding: .62rem .72rem; }
.email-field input::placeholder { color: #665f56; opacity: 1; }
.form-hint { margin: .36rem 0 0; color: var(--text-muted); font-size: .79rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.required-mark { color: var(--accent); font-weight: 700; }
.limits { margin-top: 1.14rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.4; font-size: .91rem; cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: .04rem 0 0; accent-color: var(--accent); }
.limits details { padding-left: calc(18px + .7rem); margin-top: .35rem; color: var(--text-muted); font-size: .81rem; }
.limits summary { display: list-item; width: fit-content; text-decoration: underline; text-underline-offset: 2px; font-weight: 650; }
.limits details p { margin: .6rem 0 0; }
.optional-choice { min-width: 0; border: 1px solid var(--line); background: var(--accent-wash); padding: .86rem .86rem .76rem; margin: 1.05rem 0; }
.optional-choice legend { padding-inline: .35rem; font-size: .82rem; font-weight: 750; }
.optional-choice .form-hint { padding-left: calc(18px + .7rem); }
.button-primary, .button-secondary { min-height: 44px; font-size: .87rem; font-weight: 700; padding: .64rem .92rem; border: 1px solid var(--ink); border-radius: 3px; display: inline-flex; align-items: center; justify-content: space-between; gap: .55rem; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:not(:disabled):hover { background: #38332d; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: #eee4d4; }
.form-status { margin: .6rem 0 0; font-weight: 650; font-size: .86rem; color: #7a1d30; }
.mail-section { max-width: 43rem; min-width: 0; }
.mail-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: .9rem .6rem; flex-wrap: wrap; }
.mail-count { background: #eee0ca; padding: .23rem .58rem; color: #3a2e1e; font-size: .77rem; font-weight: 750; border: 1px solid #dbceb9; border-radius: 3px; }
.mail-branch { margin: .75rem 0 1rem; font-size: .91rem; color: var(--text-muted); }
.mail-card { background: var(--white); border: 1px solid var(--line); }
.mail-header, .mail-body { padding: clamp(17px, 4vw, 35px); overflow-wrap: anywhere; }
.mail-header { border-bottom: 1px solid var(--line); }
.mail-meta { margin: .92rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .18rem .67rem; font-size: .82rem; }
.mail-meta dt { font-weight: 750; white-space: nowrap; }
.mail-meta dd { margin: 0; }
.mail-body { font-size: .93rem; }
.mail-body p { margin-block: 0 .85rem; }
.mail-body footer, .mail-unsubscribe { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .9rem; color: var(--text-muted); font-size: .86rem; }
.mail-body [href="#anteprima-disiscrizione"] { font-weight: 650; }
.mail-attachment { display: flex; align-items: center; gap: .65rem; background: var(--paper); border: 1px solid var(--line); padding: .65rem .72rem; margin: .75rem 0 0; text-decoration: none; color: var(--ink); border-radius: 3px; }
.mail-attachment:hover { border-color: #9b8c79; }
.attachment-icon { flex: none; font-size: .68rem; font-weight: 750; color: var(--accent); border: 1px solid currentColor; background: white; padding: .24rem .28rem; border-radius: 2px; }
.attachment-name { font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; min-width: 0; overflow-wrap: anywhere; }
.demo-revoke-status { background: #fdf8ee; border: 1px solid #ac987c; padding: .6rem .9rem; font-size: .85rem; }
.mail-section .button-secondary { margin-top: .85rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--text-muted); padding-block: 1rem; font-size: .77rem; }
@media (max-width: 50rem) {
  .main-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .intro-copy { max-width: 50ch; margin: .8rem 0 0; }
  .topics { display: none; }
  h1 br { display: none; }
}
@media (max-width: 25rem) {
  h1 { font-size: 2.25rem; }
  .form-card { padding: 1.05rem; }
  .button-primary { width: 100%; }
}
