/* Semaforo dei Conti · viola in testata, blu notte, pastelli menta e rosa, cornici a gradini. Pulsanti principali color prugna */
:root {
    --viola: #5300FD;
    --notte: #002F50;
    --petrolio: #024D51;
    --prugna: #4F1150;
    --verde: #16F585;
    --menta: #DBFFC9;
    --rosa: #FFC2E8;
    --fondo: #F6F7F9;
    --inchiostro: #212121;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; background: #fff; color: var(--inchiostro); font: 400 1.0625rem/1.6 'Barlow', 'DIN Alternate', Arial, sans-serif; letter-spacing: .01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--notte); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--viola); outline-offset: 3px; }
.vis_hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta_su { position: absolute; left: -9999px; top: 0; z-index: 90; padding: 10px 14px; background: #fff; }
.salta_su:focus { left: 10px; top: 10px; }
.wrap { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.wrap_text { max-width: 820px; }

/* testata viola */
.header_band { background: var(--viola); color: #fff; }
.header_band_row { display: flex; align-items: center; justify-content: space-between; min-height: 128px; }
.logo_testata img { width: 250px; }
.header_icons { display: flex; gap: 14px; }
.icon_link { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; color: #fff; cursor: pointer; }
.icon_link svg { width: 30px; height: 30px; }
.menu_switch { display: none; }
.menu_switch_lines, .menu_switch_lines::before, .menu_switch_lines::after { display: block; width: 26px; height: 3px; background: #fff; }
.menu_switch_lines { position: relative; }
.menu_switch_lines::before, .menu_switch_lines::after { content: ''; position: absolute; left: 0; }
.menu_switch_lines::before { top: -8px; }
.menu_switch_lines::after { top: 8px; }
.nav_strip { background: #fff; border-bottom: 1px solid #e3e5ea; }
.nav_strip ul { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; list-style: none; }
.nav_strip a { display: block; padding: 4px 0; color: var(--inchiostro); text-decoration: none; letter-spacing: .04em; }
.nav_strip a:hover, .nav_strip a[aria-current] { color: var(--viola); text-decoration: underline; text-underline-offset: 6px; }

.btn { display: inline-block; padding: 18px 24px 15px; border: 2px solid transparent; font: 600 1.1rem/1.2 'Barlow', Arial, sans-serif; text-decoration: none; cursor: pointer; }
.btn_prugna { background: var(--prugna); color: #fff; box-shadow: 0px 4px 10px rgba(0, 0, 0, .25); }
.btn_prugna:hover { background: #3a0c3b; }
.btn_navy { background: var(--notte); color: #fff; }
.btn_plum { background: var(--petrolio); color: #fff; }
.btn_green { background: var(--verde); color: #000; }
.btn_outline_green { border-color: var(--verde); color: #fff; }
.btn_outline_light { border-color: rgba(255, 255, 255, .8); background: transparent; color: #fff; }
.plain_link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.arrow_link { color: #2a1a8f; text-decoration: none; }
.arrow_link::after { content: ' ›'; }

/* quadratini */
.pixel { position: absolute; display: block; pointer-events: none; }
.pixel_a { left: 0; top: 0; width: 76px; height: 38px; background: var(--viola); }
.pixel_b { left: 0; bottom: 0; width: 38px; height: 38px; background: var(--viola); }
.pixel_c { right: 0; bottom: 0; width: 76px; height: 38px; background: #c3edfe; }

/* eroe */
.hero_block { position: relative; overflow: hidden; background: linear-gradient(100deg, #6143f4 0%, #6f8cf0 55%, #6143f4 100%); color: #fff; }
.hero_grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; min-height: 548px; }
.hero_grid > * { min-width: 0; }
.hero_copy { padding: 50px 0; }
.hero_title { margin-bottom: 18px; font-size: clamp(3rem, 8vw, 6.6rem); font-weight: 500; line-height: .98; letter-spacing: -.01em; }
.hero_sub { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; }
.hero_text { max-width: 560px; }
.hero_btns { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero_media { align-self: stretch; }
.hero_img { width: 100%; height: 100%; object-fit: cover; }

/* tre stati */
.states_block { padding: 40px 0 44px; }
.block_title { margin-bottom: 40px; font-size: clamp(1.9rem, 3.2vw, 2.4rem); text-align: center; }
.states_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.state_card { padding: 28px 30px; background: var(--inchiostro); color: #fff; text-align: center; }
.state_name { margin-bottom: 12px; font-size: 3rem; line-height: 1; }
.state_green { color: var(--verde); }
.state_yellow { color: #ffd84a; }
.state_grey { color: #c7c9cf; }

/* ricerca nel registro */
.finder_block { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--notte); color: #fff; }
.finder_block > * { min-width: 0; }
.finder_copy { padding: 80px 40px 80px max(20px, calc((100vw - 1024px) / 2 + 20px)); }
.finder_kicker { font-weight: 600; font-size: .95rem; }
.finder_title { margin-bottom: 30px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.green_word { color: var(--verde); }
.finder_bar { display: flex; flex-wrap: wrap; align-items: stretch; background: #fff; }
.finder_icon { display: grid; place-items: center; width: 54px; color: var(--inchiostro); }
.finder_icon svg { width: 22px; height: 22px; }
.finder_bar input { flex: 1 1 220px; min-width: 0; height: 64px; border: 0; font: inherit; font-size: 1.05rem; }
.finder_bar select { height: 64px; padding: 0 14px; border: 0; border-left: 1px solid var(--notte); font: inherit; font-size: 1rem; }
.finder_go { height: 64px; padding: 0 32px; }
.register_list { margin: 24px 0 0; padding: 0; list-style: none; }
.register_row { display: grid; grid-template-columns: 14px 54px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.dot { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; }
.dot_verde { background: var(--verde); }
.dot_giallo { background: #ffd84a; }
.dot_grigio { background: #b4b6bd; }
.register_date { font-variant-numeric: tabular-nums; color: #c3edfe; }
.register_op small { display: block; color: #d2dbe6; font-size: .88rem; }
.register_empty { margin-top: 16px; }
.finder_media .img_fill { width: 100%; height: 100%; object-fit: cover; }

/* blocchi pastello */
.pastel_block { padding: 0px 0; overflow: hidden; }
.pastel_mint { background: var(--menta); color: #023e3a; }
.pastel_white { background: #fff; }
.pastel_pink { background: var(--rosa); color: #4a0f4b; }
.pastel_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pastel_grid > * { min-width: 0; }
.pastel_grid_rev { grid-template-columns: 1fr 1fr; }
.stepped_frame { position: relative; margin: 0 0 0 -40px; padding: 58px 0 58px 58px; }
.stepped_frame::before, .stepped_frame::after { content: ''; position: absolute; z-index: 2; background: inherit; }
.stepped_frame::before { left: 58px; top: 58px; width: 170px; height: 58px; background: var(--fondo-step, var(--menta)); }
.stepped_frame::after { right: 0; bottom: 58px; width: 170px; height: 58px; background: var(--fondo-step, var(--menta)); }
.pastel_white .stepped_frame { --fondo-step: #fff; }
.pastel_pink .stepped_frame { --fondo-step: var(--rosa); }
.stepped_frame .img_fill { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pastel_copy { padding: 50px 0; }
.pastel_copy_right { text-align: right; }
.pastel_title { margin-bottom: 18px; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.pastel_sub { font-weight: 600; font-size: 1.15rem; }

/* card */
.cards_block { padding: 70px 0; background: var(--fondo); }
.cards_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.scheda_info { min-width: 0; }
.scheda_info_img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scheda_info h3 { margin: 22px 30px 12px; color: #2a1a8f; font-size: 1.25rem; }
.scheda_info p, .scheda_info .arrow_link { display: block; margin-left: 30px; margin-right: 30px; }

/* due colonne */
.split_columns { padding: 70px 0; }
.two_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--notte); }
.two_cols > div { padding: 30px; }
.col_in { background: #fff; }
.col_out { background: var(--notte); color: #fff; }
.two_cols h3 { margin-bottom: 16px; font-size: 1.5rem; }
.two_cols ul { margin: 0; padding-left: 20px; }
.two_cols li { margin-bottom: 8px; }

/* blocco petrolio */
.teal_block { background: var(--petrolio); color: #fff; }
.teal_grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.teal_grid > * { min-width: 0; }
.stepped_frame_dark { --fondo-step: var(--petrolio); }
.teal_title { margin-bottom: 20px; color: var(--menta); font-size: clamp(2rem, 3.4vw, 2.6rem); }
.inline_faq b { color: var(--menta); }

.dark_band { padding: 50px 0; background: var(--inchiostro); color: #fff; }
.dark_band_row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dark_band_text { margin: 0; font-size: 1.3rem; }
.dark_band_text span { color: var(--verde); }

/* sottopagine viola */
.inner_hero { position: relative; overflow: hidden; padding: 70px 0 60px; background: linear-gradient(100deg, #6143f4, #6f8cf0); color: #fff; }
.crumbs { font-size: .95rem; }
.crumbs a { color: #fff; }
.inner_hero_title { font-size: clamp(2.2rem, 5vw, 3.8rem); overflow-wrap: break-word; }
.inner_hero_lead { max-width: 620px; margin: 14px 0 0; font-size: 1.2rem; }
.text_flow { padding-top: 50px; padding-bottom: 80px; }
.text_flow h2 { margin: 36px 0 12px; color: var(--notte); font-size: 1.7rem; }
.page_legal .text_flow h2 { font-size: 1.25rem; }
.wide_img { width: 100%; aspect-ratio: 55 / 28; object-fit: cover; margin: 30px 0; }
.side_by_side { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin: 30px 0; }
.side_by_side > * { min-width: 0; }
.side_by_side h2:first-child { margin-top: 0; }
.side_img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.float_img { float: right; width: 40%; margin: 6px 0 18px 26px; }
.note_box { clear: both; padding: 18px 22px; background: var(--menta); color: #023e3a; }

/* domande a interruttore */
.yesno_form { margin: 0 0 40px; padding: 30px; background: var(--fondo); }
.yesno_set { margin: 0 0 20px; padding: 0; border: 0; }
.yesno_set legend { margin-bottom: 14px; font-size: 1.3rem; font-weight: 600; color: var(--notte); }
.yesno_row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #dde0e6; }
.yesno_switch { display: inline-flex; border: 2px solid var(--notte); }
.yesno_switch label { position: relative; }
.yesno_switch input { position: absolute; opacity: 0; }
.yesno_switch span { display: block; min-width: 64px; padding: 8px 14px; text-align: center; cursor: pointer; }
.yesno_switch input:checked + span { background: var(--notte); color: #fff; }
.yesno_switch input:focus-visible + span { outline: 3px solid var(--viola); }
.field_row { margin-bottom: 14px; }
.field_row label { display: block; margin-bottom: 4px; font-weight: 600; }
.field_check label { font-weight: 400; }
.yesno_form input[type='text'], .yesno_form input[type='email'], .yesno_form select { width: 100%; height: 54px; padding: 0 14px; border: 2px solid #c5c9d2; background: #fff; font: inherit; }
.yesno_form [aria-invalid='true'] { border-color: #b3123e; }
.field_err { min-height: 1.4em; margin: 4px 0 0; color: #b3123e; font-size: .92rem; }
.trap_field { display: none; }
.form_result { min-height: 1.5em; font-weight: 600; }

/* chiusura blu notte */
.site_footer { padding: 60px 0 30px; background: var(--notte); color: #fff; }
.site_footer a { color: #fff; }
.footer_cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer_cols > * { min-width: 0; }
.footer_cols img { width: 210px; margin-bottom: 16px; }
.footer_title { color: var(--verde); font-weight: 600; }
.site_footer ul { margin: 0; padding: 0; list-style: none; }
.site_footer li { margin-bottom: 6px; overflow-wrap: anywhere; }
.footer_copy { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; }

/* striscia cookie */
.cookie_strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--viola); color: #fff; }
.cookie_strip a { color: #fff; }
.cookie_strip_row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; }
.cookie_strip_text { flex: 1 1 400px; margin: 0; font-size: .95rem; }
.cookie_strip_more { flex-basis: 100%; margin: 0; }
.cookie_strip_btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cookie_strip .btn { padding: 10px 16px; font-size: .95rem; }

@media (max-width: 900px) {
    .menu_switch { display: grid; }
    .nav_strip { display: none; }
    .nav_strip.is_open { display: block; }
    .nav_strip ul { flex-direction: column; }
    .hero_grid, .finder_block, .pastel_grid, .pastel_grid_rev, .teal_grid { grid-template-columns: 1fr; }
    .hero_media { height: 320px; }
    .finder_copy { padding: 50px 20px; }
    .finder_media { height: 260px; }
    .stepped_frame { margin: 0; padding: 30px 0 30px 30px; }
    .pastel_copy_right { text-align: left; }
    .pastel_grid_rev .stepped_frame { order: -1; }
}

@media (max-width: 680px) {
    body { font-size: 1rem; }
    .header_band_row { min-height: 90px; }
    .logo_testata img { width: 190px; }
    .states_grid, .cards_grid, .two_cols, .footer_cols, .side_by_side { grid-template-columns: 1fr; }
    .finder_bar select, .finder_go { flex: 1 1 100%; border-left: 0; border-top: 1px solid #ccc; }
    .float_img { float: none; width: 100%; margin: 20px 0; }
    .yesno_form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
.stepped_frame_alt { margin: 0 -40px 0 0; padding: 58px 58px 58px 0; }
