/* Portale apps.pfirter.com — home "coming soon". Riferimento grafico: docs/template-html/template2. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141212;
  --ink-2: #1d1a1a;
  --accent: #ec3013;
  --accent-hover: #d02810;
  --accent-soft: rgba(236, 48, 19, 0.12);
  --on-dark: #f6f4f3;
  --on-dark-muted: rgba(246, 244, 243, 0.62);
  --line-dark: rgba(246, 244, 243, 0.12);
  --success: #4ade80;
  --error: #ff8a73;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* — marchio — */
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-logo-sm { height: 26px; }

/* — bottoni — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; background: none; color: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--line-dark); }
.btn-outline:hover { border-color: var(--on-dark); }
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* — header — */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-header .brand { margin-right: auto; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 11px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .035); color: var(--on-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  list-style: none; cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .2s;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary {
  border-color: rgba(246, 244, 243, .35); background: rgba(255, 255, 255, .07);
}
.language-picker-chevron { color: var(--on-dark-muted); transition: transform .2s; }
.language-picker[open] .language-picker-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  width: 108px; padding: 6px; border: 1px solid var(--line-dark); border-radius: 12px;
  background: rgba(29, 26, 26, .98); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.language-menu a {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; border-radius: 8px; color: var(--on-dark-muted);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  transition: color .2s, background-color .2s;
}
.language-menu a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.language-menu a.is-active { color: var(--on-dark); background: var(--accent-soft); }
.site-footer .language-menu { top: auto; bottom: calc(100% + 10px); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a:not(.btn) { color: var(--on-dark-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--on-dark); }

/* — coming soon — */
.soon {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.soon::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: .5;
}
.soon-glow {
  position: absolute; z-index: -1; width: min(900px, 120vw); aspect-ratio: 1;
  left: 50%; top: 50%; translate: -50% -55%;
  background: radial-gradient(circle, rgba(236, 48, 19, .38) 0%, rgba(236, 48, 19, .10) 38%, transparent 68%);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-6%, -3%) scale(1); }
  to   { transform: translate(6%, 4%) scale(1.12); }
}

.soon-inner { text-align: center; max-width: 1080px; padding-inline: var(--gutter); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.soon h1 {
  margin: 28px 0 20px;
  font-size: clamp(40px, 7.4vw, 96px); font-weight: 800;
  line-height: .98; letter-spacing: -0.035em;
}
.soon h1 .accent {
  background: linear-gradient(100deg, #ff7a5c 0%, var(--accent) 55%, #ff9a7f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.soon-lead { margin: 0 auto; max-width: 44ch; font-size: clamp(17px, 2vw, 20px); color: var(--on-dark-muted); }
.soon-actions { margin-top: 40px; }

/* — finestra contatto — */
.dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 1px solid var(--line-dark); border-radius: 20px;
  background: var(--ink-2); color: var(--on-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.dialog::backdrop { background: rgba(10, 9, 9, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-inner { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.dialog-head p { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.dialog-close {
  flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-dark); background: none; color: var(--on-dark); cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s;
}
.dialog-close:hover { border-color: var(--on-dark); }

.form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
  color: var(--on-dark); caret-color: var(--accent);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: 10px;
  transition: border-color .2s, background-color .2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(246, 244, 243, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .06); }
.field textarea { min-height: 130px; resize: vertical; }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--on-dark-muted); }
.form-note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 0; font-size: 14px; min-height: 1.6em; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--success); }

.sent { text-align: center; padding: 12px 0 4px; }
.sent-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(74, 222, 128, .12); color: var(--success);
}
.sent h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.sent p { margin: 0 0 20px; color: var(--on-dark-muted); }

/* — footer — */
.site-footer { border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 28px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a, .footer-links button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--on-dark); }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-header .container { gap: 12px; }
  .language-picker summary { min-height: 36px; padding-inline: 10px; }
  .language-menu { right: -4px; }
  .nav { gap: 16px; }
  .nav .nav-link { display: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .dialog-inner { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* — pagine d'errore — */
.error-code {
  margin: 0; font-size: clamp(88px, 16vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(246, 244, 243, .9) 0%, rgba(246, 244, 243, .15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-feature-settings: "tnum" 1;
}
.soon-error h1 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 56px); }

/* — accesso — */
.auth-card {
  width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 32px; border-radius: 20px;
  background: rgba(29, 26, 26, .82); border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.auth-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.auth-intro { margin: 0 0 24px; color: var(--on-dark-muted); font-size: 15px; }
.auth-alert { margin: 0 0 20px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.auth-alert.is-error { background: rgba(255, 138, 115, .1); border: 1px solid rgba(255, 138, 115, .35); color: var(--error); }
.auth-alert.is-ok { background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3); color: var(--success); }
.btn-google { width: 100%; padding: 12px 18px; background: #fff; color: #1f1f1f; font-size: 15px; }
.btn-google:hover { background: #f1f1f1; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--on-dark-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--on-dark-muted); }

/* — informativa privacy — */
.legal {
  padding: calc(var(--header-h) + 64px) 0 88px;
  background:
    radial-gradient(circle at 75% 8%, rgba(236, 48, 19, .14), transparent 30%),
    var(--ink);
}
.legal-inner { max-width: 820px; }
.legal-eyebrow {
  display: block; margin-bottom: 12px; color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.legal h1 { margin: 0 0 12px; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.035em; }
.legal-updated { margin: 0 0 36px; color: var(--on-dark-muted); font-size: 14px; }
.legal-intro { margin: 0 0 48px; font-size: 19px; color: var(--on-dark-muted); }
.legal-section { padding: 28px 0; border-top: 1px solid var(--line-dark); }
.legal-section h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; }
.legal-section h3 { margin: 24px 0 8px; font-size: 16px; }
.legal-section p { margin: 0 0 12px; color: var(--on-dark-muted); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 22px; color: var(--on-dark-muted); }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
