/* Ufficio Accorto */
:root {
    --zaffiro: #154481;
    --zaffiro-chiaro: #3c6fb3;
    --notte: #072142;
    --ardesia: #364b66;
    --oro: #f9ce3f;
    --cremisi: #cd0e2d;
    --nebbia: #f5f6f7;
    --celeste: #deeafc;
    --panna: #fffdf5;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-family: 'Nunito Sans', Arial, sans-serif; font-size: 1rem; line-height: 1.5; color: var(--notte); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zaffiro); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.vai { position: absolute; left: -9999px; }
.vai:focus { left: 10px; top: 10px; background: #fff; padding: 6px 10px; z-index: 99; }
.contenitore { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* striscia blu e testata */
.top-strip { background: var(--zaffiro); color: #fff; font-size: .875rem; }
.top-strip .contenitore { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 12px; }
.top-strip a { color: #fff; text-decoration: none; }
.header-main { border-bottom: 1px solid #b1b1b0; }
.header-main .contenitore { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.header-main__brand img { height: 46px; width: auto; }
.header-main__brand p { margin: 4px 0 0; font-size: .85rem; font-style: italic; color: var(--ardesia); }
.header-main__nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.header-main__nav a { font-weight: 600; text-decoration: none; color: var(--zaffiro); padding: 6px 0; display: inline-block; border-bottom: 3px solid transparent; transition: all .3s ease; }
.header-main__nav a:hover, .header-main__nav a[aria-current="page"] { border-bottom-color: var(--oro); }
.burger-btn { display: none; background: var(--zaffiro); color: #fff; border: 0; border-radius: 6px; padding: 9px 14px; font: 600 .95rem 'Nunito Sans', Arial, sans-serif; cursor: pointer; }

.title-two { font-size: 1.75rem; line-height: 1.3; font-weight: 700; margin: 0 0 24px; color: var(--notte); }
.title-two span { color: var(--zaffiro-chiaro); }
.title-two::after { content: ""; display: block; width: 80px; height: 4px; background: var(--zaffiro); margin-top: 18px; }
.title-two--white { color: #fff; }
.title-two--white span { color: var(--oro); }
.title-two--white::after { background: var(--oro); }

.cta-red { display: inline-flex; align-items: center; gap: 14px; background: var(--cremisi); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font: 500 1rem 'Nunito Sans', Arial, sans-serif; text-decoration: none; cursor: pointer; transition: all .3s ease; }
.cta-red::after { content: ""; width: 40px; height: 2px; background: currentColor; box-shadow: 34px 0 0 -1px transparent; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.cta-red:hover { background: #a80b25; }
.cta-red--navy { background: var(--zaffiro); }
.cta-red--navy:hover { background: var(--notte); }

/* scorrimento dell'eroe */
.hero-slider { position: relative; }
.hero-slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.hero-slide > * { min-width: 0; }
.hero-slide__text { background: var(--zaffiro); color: #fff; padding: 60px 60px 70px 110px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.hero-slide__text::before { content: ""; position: absolute; left: -60px; top: -10%; bottom: -10%; width: 120px; border: 22px solid var(--oro); border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.hero-slide__text h1, .hero-slide__text h2 { color: var(--oro); font-size: 1.75rem; line-height: 1.3; font-weight: 700; margin: 0 0 16px; }
.hero-slide__text p { margin: 0 0 22px; }
.hero-slide__text .cta-red { align-self: flex-end; }
.hero-slide__photo { position: relative; overflow: hidden; }
.hero-slide__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__photo::after { content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 80px; border-right: 16px solid var(--oro); border-radius: 0 50% 50% 0; }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.slider-controls button.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #364b66; background: #fff; padding: 0; cursor: pointer; }
.slider-controls button.dot[aria-current="true"] { background: var(--oro); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: rgba(7,33,66,.35); color: #fff; font-size: 1.3rem; cursor: pointer; }
.slider-arrow--prev { left: 14px; }
.slider-arrow--next { right: 14px; }

/* le quattro parole */
.intro-words { padding: 80px 0 70px; }
.intro-words p.lead { max-width: 848px; margin: 0 0 40px; }
.words-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.words-row > div { min-width: 0; }
.words-row svg { width: 90px; height: 90px; margin: 0 auto 12px; }
.words-row b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--zaffiro); }
.words-row span { font-weight: 500; }

/* la pianta dell'ufficio */
.office-plan { background: var(--zaffiro); color: #fff; padding: 70px 0 80px; }
.office-plan .plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.folder-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 18px 20px 20px; min-width: 0; position: relative; }
.folder-card::before { content: ""; position: absolute; left: 20px; top: -10px; width: 70px; height: 10px; background: var(--oro); border-radius: 6px 6px 0 0; }
.folder-card h3 { margin: 0 0 6px; font-size: 1.25rem; color: #fff; }
.folder-card h3 i { font-style: normal; color: var(--oro); }
.folder-card p { margin: 0; font-size: .95rem; color: #dfe7f3; }

/* mosaico di foto */
.mosaic { padding: 80px 0; }
.mosaic .sub { color: var(--ardesia); margin: -10px 0 24px; }
.mosaic-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; }
.mosaic-tile { position: relative; overflow: hidden; border-radius: 6px; min-width: 0; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: all .3s ease; }
.mosaic-tile:hover img { transform: scale(1.04); }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,33,66,0) 40%, rgba(7,33,66,.85)); }
.mosaic-tile span { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-size: 1.1rem; font-weight: 600; z-index: 1; }
.mosaic-tile span::after { content: ""; display: block; width: 40px; height: 2px; background: #fff; margin: 6px auto 0; }
.mosaic-tile:nth-child(1) { grid-row: 1 / 3; }
.mosaic-tile:nth-child(2) { grid-column: 2 / 4; }
.mosaic-tile:nth-child(6) { grid-column: 4; grid-row: 1 / 3; }
.mosaic .more { text-align: right; margin-top: 20px; }

/* carte del fine settimana */
.feature-tiles { background: var(--nebbia); padding: 80px 0; }
.tiles-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tiles-wrap > * { min-width: 0; }
.tile-big { background: var(--zaffiro); color: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tile-big img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.tile-big__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-big h3 { margin: 0; font-size: 1.375rem; color: #fff; }
.tile-big .cta-red { align-self: flex-end; margin-top: auto; }
.tiles-small { display: flex; flex-direction: column; gap: 20px; }
.tile-row { display: grid; grid-template-columns: 290px 1fr; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: rgba(0,0,0,.1) 0 2px 8px; }
.tile-row > * { min-width: 0; }
.tile-row img { width: 100%; height: 100%; object-fit: cover; }
.tile-row__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.tile-row h3 { margin: 0; font-size: 1.25rem; }
.tile-row--slate { background: var(--ardesia); color: #fff; }
.tile-row--slate h3 { color: #fff; }
.tile-row .cta-red { align-self: flex-end; margin-top: auto; }
mark { background: var(--oro); color: var(--notte); padding: 0 4px; }

/* da Parma */
.city-band { position: relative; padding: 100px 0; color: #fff; overflow: hidden; }
.city-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-band::before { content: ""; position: absolute; inset: 0; background: rgba(7,33,66,.72); z-index: 1; }
.city-band .contenitore { position: relative; z-index: 2; }
.city-boxes { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 24px; }
.city-box { background: rgba(255,255,255,.16); border-radius: 6px; padding: 18px 20px; min-width: 230px; flex: 1 1 230px; }
.city-box small { display: block; font-size: 1rem; }
.city-box strong { display: block; font-size: 1.4rem; font-weight: 700; }
.city-band p { max-width: 760px; }
.arrow-yellow { color: #fff; font-weight: 600; text-decoration: none; }
.arrow-yellow::after { content: " \2192"; color: var(--oro); }

/* nomi dei file: tre colonne */
.name-lists { padding: 80px 0; }
.lists-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.list-col { box-shadow: 0 0 6px rgba(0,0,0,.16); border-radius: 6px; overflow: hidden; min-width: 0; background: #fff; }
.list-col h3 { margin: 0; background: var(--celeste); padding: 14px 18px; font-size: 1.1rem; }
.list-col--cream { background: var(--panna); border: 3px solid var(--oro); }
.list-col--cream h3 { background: #faebd7; }
.list-col ul { list-style: none; margin: 0; padding: 0; }
.list-col li { padding: 12px 18px; border-top: 1px solid #b1b1b0; }
.list-col li code { font-family: 'Nunito Sans', Arial, sans-serif; font-weight: 700; color: var(--zaffiro); }
.list-col li em { display: block; color: #5a6676; font-size: .9rem; }

/* le domande, divise a metà */
.faq-two { background: var(--nebbia); padding: 80px 0; }
.faq-two .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
.faq-two .cols > div { min-width: 0; }
.faq-two h3 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--zaffiro); }
.faq-two p { margin: 0; }

/* fuori dall'ufficio */
.leave-out { padding: 80px 0; }
.leave-out .contenitore { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.leave-out .contenitore > div { min-width: 0; }
.leave-out ul { margin: 0; padding: 0; list-style: none; }
.leave-out li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid #e3e6ea; }
.leave-out li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--cremisi); }
.honest-box { background: var(--panna); border: 3px solid var(--oro); border-radius: 6px; padding: 24px; }

/* modulo diviso */
.form-split { display: grid; grid-template-columns: 1fr 1fr; }
.form-split > * { min-width: 0; }
.form-split__photo { position: relative; overflow: hidden; min-height: 420px; }
.form-split__photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.form-split__photo::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 80px; border-left: 16px solid var(--cremisi); border-radius: 50% 0 0 50%; }
.form-split__panel { background: var(--zaffiro); color: #fff; padding: 50px 50px 56px; }
.form-split__panel a { color: #fff; }
.errors-top { background: #fff; color: var(--notte); border-left: 6px solid var(--cremisi); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.errors-top ul { margin: 6px 0 0; padding-left: 18px; }
.errors-top a { color: var(--cremisi); }
.f-row { margin-bottom: 16px; }
.f-row label, .f-legend { display: block; font-weight: 600; margin-bottom: 6px; }
.f-row input[type="email"] { width: 100%; height: 46px; border: 0; border-radius: 6px; padding: 0 12px; font: inherit; }
.f-row input[type="range"] { width: 100%; accent-color: var(--oro); }
.range-out { display: inline-block; background: var(--oro); color: var(--notte); font-weight: 700; border-radius: 6px; padding: 2px 10px; margin-left: 8px; }
.checks { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.checks input, .consent-line input { width: 18px; height: 18px; accent-color: var(--oro); }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 20px; }
.consent-line input { margin-top: 3px; }
.honey-hp { display: none; }

/* piede */
.footer-night { background: var(--notte); color: #fff; padding: 60px 0 40px; }
.footer-night .contenitore { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-night .contenitore > div { min-width: 0; }
.footer-night h2 { font-size: 1.125rem; margin: 0 0 16px; color: #fff; }
.footer-night h2::after { content: ""; display: block; width: 80px; height: 3px; background: var(--oro); margin-top: 10px; }
.footer-night ul { list-style: none; margin: 0; padding: 0; }
.footer-night li { padding: 3px 0 3px 22px; position: relative; }
.footer-night li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--oro); }
.footer-night a { color: #fff; text-decoration: none; }
.footer-night a:hover { text-decoration: underline; }
.footer-night button { background: none; border: 0; color: #fff; font: inherit; padding: 0; text-decoration: underline; cursor: pointer; }
.logo-strip { padding: 34px 0; text-align: center; }
.logo-strip img { height: 46px; width: auto; margin: 0 auto; }

/* consenso in basso */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.16); border-top: 4px solid var(--oro); padding: 16px 0; font-size: .95rem; }
.cookie-bar .contenitore { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cookie-bar p { margin: 0; flex: 1 1 420px; }
.cookie-bar button { border-radius: 6px; padding: 9px 16px; font: 600 .9rem 'Nunito Sans', Arial, sans-serif; cursor: pointer; border: 2px solid var(--zaffiro); background: #fff; color: var(--zaffiro); }
.cookie-bar button.si { background: var(--zaffiro); color: #fff; }
.cookie-bar .scelte { flex-basis: 100%; display: flex; gap: 20px; flex-wrap: wrap; }

/* fascia blu e testo delle altre pagine */
.page-band { background: var(--zaffiro); color: #fff; padding: 56px 0 50px; }
.page-band .crumbs { font-size: .875rem; color: #d6e2f3; margin-bottom: 8px; }
.page-band .crumbs a { color: #d6e2f3; }
.page-band h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.page-band h1 span { color: var(--oro); }
.page-band p { max-width: 760px; margin: 0; }
.page-text { padding: 60px 0 80px; }
.page-text h2 { font-size: 1.4rem; margin: 34px 0 10px; color: var(--notte); }
.page-text h2:first-child { margin-top: 0; }
.page-text p { margin: 0 0 14px; }
.page-text.legal h2 { font-size: 1.2rem; }
.page-photo { border-radius: 6px; overflow: hidden; margin: 24px 0; }
.page-photo img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.cream-note { background: var(--panna); border: 3px solid var(--oro); border-radius: 6px; padding: 18px 22px; margin: 22px 0; }

@media (max-width: 62rem) {
    .header-main__nav { display: none; }
    .header-main__nav.aperto { display: block; position: absolute; left: 0; right: 0; top: 150px; background: #fff; z-index: 30; padding: 16px; box-shadow: 0 3px 6px rgba(0,0,0,.16); }
    .header-main__nav.aperto ul { flex-direction: column; gap: 6px; }
    .burger-btn { display: block; }
    .hero-slide, .tiles-wrap, .form-split, .leave-out .contenitore, .faq-two .cols, .footer-night .contenitore { grid-template-columns: 1fr; }
    .hero-slide__photo { order: -1; height: 300px; }
    .hero-slide__text { padding: 40px 24px 70px; }
    .hero-slide__text::before, .hero-slide__photo::after, .form-split__photo::after { display: none; }
    .office-plan .plan, .lists-3 { grid-template-columns: 1fr 1fr; }
    .words-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
    .mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
    .mosaic-tile:nth-child(n) { grid-row: auto; grid-column: auto; }
    .mosaic-tile:nth-child(6) { grid-column: 1 / 3; }
    .tile-row { grid-template-columns: 1fr; }
    .tile-row img { aspect-ratio: 1.8; height: auto; }
    .form-split__panel { padding: 34px 20px 40px; }
    .checks { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
    .office-plan .plan, .lists-3, .words-row { grid-template-columns: 1fr; }
    .top-strip .contenitore { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* aggiustamenti dopo la prova sul telefono */
.title-two, .page-band h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); text-wrap: balance; }
.hero-slide__text h1, .hero-slide__text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.city-band h2, .city-band p, .city-box { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.mosaic-tile span { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
#u-edizione { font-size: 1rem; }
.footer-night a, .footer-night button { display: inline-block; padding: 4px 0; }
.top-strip a { display: inline-block; padding: 6px 0; }
/* mosaico su tre file, così la sesta foto non scende sotto */
.mosaic-grid { grid-template-rows: 170px 170px 170px; }
.mosaic-tile:nth-child(1) { grid-column: 1; grid-row: 1 / 4; }
.mosaic-tile:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.mosaic-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
.mosaic-tile:nth-child(4) { grid-column: 3; grid-row: 2; }
.mosaic-tile:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }
.mosaic-tile:nth-child(6) { grid-column: 4; grid-row: 1 / 4; }
@media (max-width: 48rem) {
    .mosaic-grid { grid-template-rows: none; }
    .mosaic-tile:nth-child(n) { grid-row: auto; grid-column: auto; }
    .mosaic-tile:nth-child(6) { grid-column: 1 / 3; }
}

/* prova a dare un nome: quattro scelte e il nome del file */
.name-try { padding: 70px 0 30px; }
.name-try__intro { max-width: 848px; margin: 0 0 24px; }
.name-try__fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.name-try__fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--zaffiro); min-width: 0; }
.name-try__fields select { height: 46px; border: 1px solid #b1b1b0; border-radius: 6px; padding: 0 10px; font: 400 1rem 'Nunito Sans', Arial, sans-serif; background: #fff; }
.name-try__out { margin: 22px 0 0; background: var(--panna); border: 3px solid var(--oro); border-radius: 6px; padding: 18px 22px; }
.name-try__out code { font-family: 'Nunito Sans', Arial, sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--notte); margin-right: 14px; }
.name-try__out span { color: var(--ardesia); }
@media (max-width: 48rem) {
    .name-try__fields { grid-template-columns: 1fr 1fr; }
}

/* lo sportello dei cookie come finestra al centro */
.cookie-bar--finestra { top: 0; background: rgba(7,33,66,.55); display: flex; align-items: center; justify-content: center; padding: 20px; border-top: 0; box-shadow: none; }
.cookie-bar--finestra .contenitore { background: #fff; border-radius: 6px; border-top: 4px solid var(--oro); padding: 26px; max-width: 560px; }
