/* Filare dei Conti · fogli di stile del sito */
:root {
  --navy: #3c4b76;
  --navy-scuro: #2b365a;
  --blu: #014c89;
  --acciaio: #58658b;
  --acciaio-chiaro: #a9bccf;
  --fondo: #f4f4f4;
  --muted: #6f6f6f;
  --ombra: 0 0 30px rgba(200,196,219,.3);
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--fondo);
  color: #1a1a1a;
  font-family: 'Ubuntu', Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blu); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; color: var(--navy); }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 99; }

.section_wrapper { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* barra in alto: sfumatura dall'acciaio scuro al chiaro */
.top_bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(90deg, var(--acciaio) 0%, rgba(169,188,207,.92) 100%);
}
.top_bar .section_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 34px; width: auto; display: block; }
.menu_main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.menu_main a {
  position: relative;
  display: block;
  padding: 0 16px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 60px;
  color: #FFFFFF;
  text-decoration: none;
}
.menu_main a:after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 8px;
  height: 3px;
  background: #fff;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
.menu_main a:hover:after, .menu_main a[aria-current="page"]:after { opacity: 1; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 6px;
  font: 600 15px 'Ubuntu', sans-serif;
  padding: 8px 14px;
  cursor: pointer;
}

/* eroe con velo bianco e titolo corsivo */
.hero_wrap {
  position: relative;
  min-height: 640px;
  padding: 190px 20px 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero_wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero_wrap:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.72);
}
.hero-inner { position: relative; max-width: 900px; }
.hero-inner h1 {
  margin: 0 0 18px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  color: var(--blu);
  text-wrap: balance;
}
.hero-inner .lead { max-width: 640px; margin: 0 auto 26px; font-size: 18px; color: #222; font-weight: 400; }

.ghost-box {
  display: inline-block;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: var(--ombra);
  padding: 22px 46px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: all .3s ease-in-out;
}
.ghost-box:hover { border-color: var(--navy); }

/* piastrelle dei filari: metà sopra la foto, metà sul grigio */
.tiles_row {
  position: relative;
  z-index: 3;
  margin-top: -150px;
  padding-bottom: 40px;
}
.tiles_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 32px;
}
.tile {
  flex: 0 0 210px;
  min-height: 206px;
  border-radius: 15px;
  background: linear-gradient(180deg, #a3b4c8 0%, #3c4b76 100%);
  box-shadow: var(--ombra);
  padding: 30px 16px 22px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: transform .4s ease-out;
}
.tile:hover { transform: translateY(-4px); }
.tile svg { width: 70px; height: 70px; display: block; margin: 0 auto 18px; }
.tile h4 { color: #fff; margin: 0; font-weight: 600; font-size: 15px; line-height: 1.6; }
.tile p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #eef2f8; }
.tiles_grid .tile:nth-child(n+5) { margin-top: 10px; }
.tiles_grid .tile:nth-child(4) { min-height: 236px; }

/* riga marchio + testo */
.intro_row { padding: 70px 0 80px; }
.intro_row .section_wrapper:after { content: ''; display: table; clear: both; }
.intro_mark { float: left; width: 25%; padding: 8px 40px 0 0; }
.intro_mark img { width: 100%; max-width: 260px; height: auto; display: block; }
.intro_text { float: left; width: 75%; }
.intro_text p { margin: 0 0 20px; }
.intro_text strong { color: var(--blu); font-weight: 500; }

/* tre carte con foto: le parti dello strumento */
.tool_area { padding: 60px 0 70px; }
.title-center { text-align: center; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; font-weight: 700; margin: 0 0 14px; }
.sub-center { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.cards_3 { display: flex; gap: 22px; }
.photo_card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 380px;
  border-radius: 4px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.photo_card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo_card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60,64,72,0) 25%, rgba(32,40,66,.94) 100%);
}
.photo_card > * { position: relative; z-index: 1; }
.photo_card .meta { font-size: 14px; color: rgba(255,255,255,.8); display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-weight: 400; }
.photo_card h3 { color: #fff; font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
.photo_card p { margin: 0; font-size: 15px; color: #eef0f5; font-weight: 400; }
.center-btn { text-align: center; margin-top: 40px; }

/* calendario delle stagioni */
.seasons { padding: 70px 0 80px; background: #fff; }
.seasons .title-center { font-size: clamp(28px, 3.4vw, 44px); }
.season_line { display: flex; border-top: 1px solid #d7dbe3; margin-top: 30px; }
.season { flex: 1 1 0; min-width: 0; padding: 26px 22px 10px; border-right: 1px solid #d7dbe3; }
.season:last-child { border-right: 0; }
.season .months { font-family: 'Lora', Georgia, serif; font-style: italic; color: var(--blu); font-size: 15px; }
.season h3 { margin: 4px 0 10px; font-size: 22px; }
.season ul { margin: 0; padding-left: 18px; font-size: 15px; }
.season li { margin-bottom: 6px; }
.season.now { background: linear-gradient(180deg, #eef2f8 0%, #fff 100%); }

/* i cinque lunedì */
.mondays { padding: 70px 0 60px; }
.monday_list { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; }
.monday_list li { display: flex; gap: 28px; padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.monday_list .n {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 100%;
  background: linear-gradient(180deg, #a3b4c8, #3c4b76);
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.monday_list h3 { margin: 4px 0 4px; font-size: 21px; }
.monday_list p { margin: 0; }
.dates_note { max-width: 980px; margin: 26px auto 0; font-size: 15px; color: var(--muted); }

/* persone */
.people { padding: 60px 0 80px; background: linear-gradient(180deg, #f7ebe4 0%, #f4f4f4 100%); }
.people_grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.person { width: 240px; text-align: center; }
.person img, .person .round_cta { width: 200px; height: 200px; border-radius: 100%; object-fit: cover; display: block; margin: 0 auto 18px; }
.person h4 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.person p { margin: 0; color: var(--muted); font-size: 16px; }
.round_cta {
  background: linear-gradient(180deg, #a3b4c8, #3c4b76);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.round_cta svg { width: 70px; height: 70px; }

/* striscia con foto e frase bianca */
.photo_band {
  position: relative;
  padding: 100px 20px 110px;
  background: #bcbcbc;
  text-align: center;
  overflow: hidden;
}
.photo_band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo_band:before { content: ''; position: absolute; inset: 0; background: rgba(32,40,66,.55); z-index: 1; }
.photo_band h2 { position: relative; z-index: 2; color: #fff; font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin: 0 auto 8px; max-width: 820px; }
.photo_band p { position: relative; z-index: 2; color: #f1f1f1; margin: 0; font-size: 16px; }

/* cosa resta fuori */
.not_here { padding: 70px 0; }
.not_here .section_wrapper { display: flex; gap: 60px; }
.not_here .col { flex: 1 1 50%; min-width: 0; }
.not_here h2 { font-size: 34px; margin: 0 0 18px; }
.no_list { margin: 0; padding: 0; list-style: none; }
.no_list li { padding: 12px 0 12px 32px; border-bottom: 1px solid rgba(0,0,0,.08); position: relative; }
.no_list li:before { content: ''; position: absolute; left: 4px; top: 22px; width: 14px; height: 2px; background: var(--navy); }
.weak_spot { background: #fff; border-radius: 15px; box-shadow: var(--ombra); padding: 26px 28px; }
.weak_spot h3 { margin: 0 0 8px; font-size: 21px; }

/* la frase da completare */
.phrase_form { padding: 80px 0 90px; background: #fff; }
.phrase_box { max-width: 920px; margin: 0 auto; background: var(--fondo); border-radius: 15px; padding: 46px 48px 40px; box-shadow: var(--ombra); }
.phrase_box h2 { margin: 0 0 8px; font-size: 34px; }
.phrase_box > p { margin: 0 0 26px; }
.phrase {
  font-family: 'Lora', Georgia, serif;
  font-size: 24px;
  line-height: 2.3;
  color: #222;
  margin: 0 0 18px;
}
.blank { display: inline-block; position: relative; vertical-align: baseline; }
.blank input, .blank select {
  font: inherit;
  font-size: 21px;
  color: var(--blu);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--acciaio);
  padding: 0 26px 2px 4px;
  min-width: 170px;
  border-radius: 0;
}
.blank select { min-width: 200px; cursor: pointer; }
.blank input.long { min-width: 280px; }
.blank .tick { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0; transition: opacity .3s; }
.blank.ok .tick { opacity: 1; }
.blank.bad input, .blank.bad select { border-bottom-color: #a4161a; }
.field-msg { display: block; min-height: 20px; font-family: 'Ubuntu', sans-serif; font-size: 14px; line-height: 20px; color: #a4161a; }
.phrase_box .consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 22px; }
.phrase_box .consenso input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.form_status { min-height: 26px; margin-top: 14px; font-weight: 400; }
.form_done { background: #fff; border-radius: 15px; padding: 30px 32px; border-left: 6px solid var(--navy); }
.form_done h3 { margin: 0 0 8px; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* domande */
.faq_area { padding: 70px 0 80px; }
.faq_list { max-width: 980px; margin: 0 auto; }
.faq_list details { background: #fff; border-radius: 15px; margin-bottom: 14px; box-shadow: var(--ombra); }
.faq_list summary { cursor: pointer; padding: 20px 56px 20px 26px; font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 19px; color: var(--navy); list-style: none; position: relative; }
.faq_list summary::-webkit-details-marker { display: none; }
.faq_list summary:after { content: ''; position: absolute; right: 26px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .3s; }
.faq_list details[open] summary:after { transform: rotate(-135deg); top: 31px; }
.faq_list details p { margin: 0; padding: 0 26px 22px; }

/* piede navy in due metà */
#Footer { background: var(--navy); color: #fff; padding: 64px 0 0; }
#Footer .section_wrapper { display: flex; gap: 40px; }
#Footer .half { flex: 1 1 50%; min-width: 0; }
#Footer .foot_logo img { height: 42px; width: auto; display: block; margin-bottom: 18px; }
#Footer address { font-style: normal; line-height: 1.8; }
#Footer a { color: #fff !important; }
.footer_links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.footer_links a { font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 25px; text-decoration: none; display: inline-block; padding: 4px 0; border-bottom: 1px solid transparent; }
.footer_links a:hover { border-bottom-color: #fff; }
.footer_copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding: 26px 20px 30px; text-align: center; font-size: 15px; }
.footer_copy button { background: none; border: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* finestra cookie con categorie */
.cookie_modal { position: fixed; inset: 0; z-index: 60; background: rgba(32,40,66,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie_panel { background: #fff; border-radius: 15px; max-width: 520px; width: 100%; padding: 30px 30px 26px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.cookie_panel h2 { margin: 0 0 10px; font-size: 24px; }
.cookie_panel p { margin: 0 0 16px; font-size: 15px; }
.ck_cat { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #e3e6ec; font-size: 15px; }
.ck_cat strong { display: block; font-weight: 500; color: var(--navy); }
.ck_cat input { width: 20px; height: 20px; accent-color: var(--navy); flex: 0 0 auto; margin-top: 2px; }
.ck_buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ck_buttons button { flex: 1 1 140px; font: 500 15px 'Ubuntu', sans-serif; padding: 12px 14px; border-radius: 6px; cursor: pointer; border: 1px solid var(--navy); background: #fff; color: var(--navy); }
.ck_buttons .pieno { background: var(--navy); color: #fff; }

/* testata e corpo delle altre pagine del sito */
.page_head { position: relative; padding: 170px 0 50px; overflow: hidden; background: #e9edf3; }
.page_head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page_head .section_wrapper { position: relative; }
.page_head .crumbs { font-size: 14px; color: #555; margin-bottom: 10px; }
.page_head .crumbs a { color: #555; }
.page_head h1 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; font-weight: 700; }
.page_head .sub { max-width: 760px; margin: 16px 0 0; font-size: 18px; }
.page_body { padding: 60px 0 70px; }
.page_body h2 { font-size: 30px; line-height: 1.15; font-weight: 400; margin: 38px 0 12px; }
.page_body h2:first-child { margin-top: 0; }
.page_body h3 { font-size: 21px; margin: 24px 0 8px; }
.legal_body h2 { font-size: 24px; font-weight: 600; }
.prose_side { display: flex; gap: 48px; }
.prose_side .text { flex: 2 1 0; min-width: 0; }
.prose_side .side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.prose_side .side .tile { flex: 0 0 auto; min-height: 0; }
.side_photo { border-radius: 15px; overflow: hidden; box-shadow: var(--ombra); }
.side_photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote_box { border-left: 4px solid var(--acciaio); background: #fff; padding: 18px 24px; margin: 24px 0; font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 19px; color: #2a2a2a; }
.paper_sample { background: #fff; border-radius: 6px; box-shadow: var(--ombra); padding: 24px 28px; margin: 24px 0; font-size: 16px; }
.paper_sample p { margin: 0 0 10px; }
.bio_row { display: flex; gap: 36px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.bio_row img { width: 200px; height: 200px; border-radius: 100%; object-fit: cover; flex: 0 0 200px; }
.bio_row > div { min-width: 0; }

@media (max-width: 1239px) {
  .tile { flex-basis: 200px; }
}
@media (max-width: 959px) {
  .cards_3 { flex-wrap: wrap; }
  .photo_card { flex-basis: 45%; }
  .season_line { flex-wrap: wrap; }
  .season { flex-basis: 50%; border-bottom: 1px solid #d7dbe3; }
  .menu_main a { padding: 0 9px; font-size: 15px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section_wrapper { padding: 0 22px; }
  .top_bar .section_wrapper { min-height: 76px; }
  .menu-toggle { display: block; }
  .menu_main { position: absolute; top: 76px; left: 0; right: 0; background: var(--acciaio); padding: 8px 22px 16px; }
  .menu_main:not(.aperto) { display: none; }
  .menu_main ul { flex-direction: column; gap: 0; }
  .menu_main a { line-height: 46px; padding: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu_main a:after { display: none; }
  .hero_wrap { min-height: 0; padding: 130px 22px 170px; }
  .tiles_row { margin-top: -120px; }
  .tile { flex-basis: 100%; max-width: 300px; min-height: 0; }
  .tiles_grid .tile:nth-child(4) { min-height: 0; }
  .tiles_grid .tile:nth-child(n+5) { margin-top: 0; }
  .intro_mark, .intro_text { float: none; width: 100%; padding: 0; }
  .intro_mark { margin-bottom: 24px; }
  .intro_mark img { max-width: 160px; }
  .photo_card { flex-basis: 100%; min-height: 320px; }
  .season { flex-basis: 100%; border-right: 0; }
  .monday_list li { gap: 16px; }
  .monday_list .n { flex-basis: 48px; height: 48px; font-size: 20px; }
  .not_here .section_wrapper, .prose_side, #Footer .section_wrapper, .bio_row { flex-direction: column; gap: 30px; }
  .phrase_box { padding: 30px 20px 26px; }
  .phrase { font-size: 20px; line-height: 2.1; }
  .blank, .blank input, .blank select, .blank input.long { min-width: 0; width: 100%; }
  .footer_links { columns: 1; }
  .page_head { padding: 120px 0 40px; }
  .bio_row img { width: 160px; height: 160px; flex-basis: auto; }
}
@media (max-width: 479px) {
  .people_grid { gap: 36px; }
  .ghost-box { padding: 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* correzioni: contrasto delle piastrelle, striscia con foto di sfondo, misure in rem */
.tile { background: linear-gradient(180deg, #5d7194 0%, #3c4b76 100%); }
.tile p { color: #fff; }
.monday_list .n, .round_cta { background: linear-gradient(180deg, #5d7194, #3c4b76); }
.person p { color: #5a5a5a; }
.photo_band { background-color: #2b365a; background-size: cover; background-position: center 40%; }
.hero-inner h1, .hero-inner .lead { text-shadow: 0 1px 2px rgba(255,255,255,.7); }
.photo_card h3, .photo_card p, .photo_card .meta { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.title-center { margin-bottom: .3em; }
.sub-center { font-size: 1.06rem; }
.season ul, .faq_list details p { font-size: .94rem; }
.field-msg { font-size: .875rem; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { padding: 4px 0 4px 30px; position: relative; }
.ticks li::before { content: '\2713'; position: absolute; left: 4px; top: 3px; color: var(--navy); font-weight: 500; }

/* prima del primo lunedì: lista da spuntare con la barra */
.pronti_row { padding: 30px 0 80px; }
.pronti_box { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 15px; box-shadow: var(--ombra); padding: 30px 34px 26px; }
.pronti_bar { height: 10px; border-radius: 10px; background: #e3e7ef; overflow: hidden; }
.pronti_bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5d7194, #3c4b76); transition: width .4s ease-out; }
.pronti_conto { margin: 10px 0 14px; font-family: 'Lora', Georgia, serif; font-weight: 600; color: var(--navy); }
.pronti_lista { list-style: none; margin: 0; padding: 0; }
.pronti_lista li { border-top: 1px solid rgba(0,0,0,.08); }
.pronti_lista label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.pronti_lista input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: 0 0 auto; }
.pronti_lista input:checked + * { color: #555; }
.pronti_nota { margin: 16px 0 0; font-size: .94rem; color: #555; }
@media (max-width: 767px) {
  .pronti_box { padding: 22px 18px; }
}

/* terza categoria nel riquadro dei consensi */
.cookie_panel .ck_cat + .ck_cat + .ck_cat { border-bottom: 1px solid #e3e6ec; }
