:root {
    --blue: #3298b9;
    --link: #277791;
    --ink: #737373;
    --shade: #f2f2f2;
    --dark: #424242;
    --paper: #fff;
    --max-width: 1070px;
    --header-inset: 59.5px;
    --gutter: 40px;
    --band-inset: 56.1px;
    --split-inset: 56.1px;
    --flow-gap: 17px;
    --grid-gap: 25.5px;
    --scale: 1.0625;
    --heading-scale: 1.28415622;
    --type-copy: 1.0625rem;
    --type-small: calc(var(--type-copy) / 1.2);
    --type-kicker: calc(var(--type-copy) * var(--heading-scale));
    --type-column: calc(var(--type-kicker) * var(--heading-scale));
    --type-section: calc(var(--type-column) * var(--heading-scale));
    --type-large: calc(var(--type-section) * var(--heading-scale));
    --type-display: calc(var(--type-large) * var(--heading-scale));
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--ink);
    background-color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: var(--type-copy); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #134e61;
    outline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 8px 12px;
    background: #fff;
    transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 3; background: #fff; }
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42.5px;
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--header-inset));
    margin-inline: auto;
    padding: var(--header-inset);
}
.brand {
    display: block;
    text-align: center;
    color: #134e61;
    text-decoration: none;
    font-size: 3.375rem;
    font-weight: 400;
    line-height: 1;
    max-width: 100%;
}
.brand-surname { font-size: 2em; }
.brand-years { color: #c84848; }
.site-navigation { width: 100%; }
.site-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4.25px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 1rem;
    line-height: 1.5;
}
.site-navigation a {
    display: block;
    padding: 4px 16px;
    border-radius: 4px;
    color: var(--ink);
    text-decoration: none;
    text-align: center;
    transition: color 200ms, background-color 200ms;
}
.site-navigation a:hover { color: var(--link); }
.site-navigation a[aria-current="page"] { color: #fff; background: var(--link); }
.menu-toggle {
    color: var(--link);
    background: transparent;
    border: 0;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}
.menu-close-icon, .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }

.site-footer { background: var(--dark); color: #cecece; }
.footer-inner { width: min(100% - var(--gutter) * 2, var(--max-width)); margin-inline: auto; padding-block: var(--band-inset); }
.site-footer p { margin: 0; }

.band {
    --band-color: #fff;
    --band-text: var(--ink);
    --band-heading: var(--blue);
    --button-color: var(--link);
    --button-hover: #1c5669;
    --button-text: #fff;
    position: relative;
    background: var(--band-color);
    color: var(--band-text);
}
.band.shaded { --band-color: var(--shade); --band-text: #6d6d6d; --band-heading: var(--link); }
.band.accent {
    --band-color: var(--blue);
    --band-text: #fff;
    --band-heading: #fff;
    --button-color: #fff;
    --button-hover: #f2f2f2;
    --button-text: var(--ink);
}
.band-wrapper { position: relative; padding: var(--band-inset) var(--gutter); }
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; }
.narrow .container { max-width: 535px; }
.wide .container { max-width: 1391px; }
.curved::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: calc(var(--band-inset) / -2) 0 auto;
    height: var(--band-inset);
    pointer-events: none;
    background: center / 100% 100% no-repeat url("../icons/band-arch.svg");
}

.featured-left, .featured-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-left .band-wrapper { padding-left: var(--split-inset); }
.featured-right .band-wrapper { grid-area: 1 / 1; padding-right: var(--split-inset); }
.featured-right .band-photo { grid-area: 1 / 2; }
.featured-left .container, .featured-right .container { max-width: calc(var(--max-width) / 2 - var(--split-inset)); }
.featured-left .container { margin-left: 0; }
.featured-right .container { margin-right: 0; }
.band-photo { position: relative; min-width: 0; overflow: hidden; }
.band-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.photo-section { --band-color: #303030; }
.photo-section .band-photo { position: absolute; inset: 0; }
.photo-section .band-photo::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 30%); }
.article-photo { display: block; height: auto; width: 100%; aspect-ratio: 800 / 591; object-fit: cover; }

.flow > * + * { margin-block-start: var(--flow-gap); }
.copy > :first-child { margin-block-start: 0; }
.copy > :last-child { margin-block-end: 0; }
.copy :is(p, h1, h2, h3, h4) { margin: 0 0 var(--flow-gap); }
h1, h2, h3, h4, .kicker { font-weight: 400; line-height: 1.25; color: var(--band-heading, var(--link)); overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0 0 0.45em; }
h1, .large-title { font-size: var(--type-large); }
h2, .section-title { font-size: var(--type-section); }
h3, .column-title { font-size: var(--type-column); }
h4, .kicker { font-size: var(--type-kicker); }
.display-title { font-size: var(--type-display); }
.small-text { font-size: var(--type-small); }
.center { text-align: center; }
.wordmark-blue { color: var(--blue); }
.wordmark-red { color: #c42727; }
.wordmark-wine { color: #9a1e1e; }
.masterplan-title { color: #fff; }
.kicker { margin: 0; }
.kicker strong { font-weight: 700; }
.card {
    --band-text: var(--ink);
    --band-heading: var(--blue);
    --button-color: var(--link);
    --button-hover: #1c5669;
    --button-text: #fff;
    color: var(--band-text);
    background-color: #fff;
    padding: calc(16px * var(--scale) - 1px);
    border: 1px solid transparent;
}
.quote-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-inline: auto;
    border-radius: 50%;
    background-color: var(--blue);
}
.quote-icon img { display: block; width: 30px; height: 30px; }

.grid { display: grid; gap: var(--grid-gap); align-items: start; }
.column { min-width: 0; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-masterplan { grid-template-columns: minmax(0, 92.4fr) minmax(0, 7.6fr); }
.grid-contacts { grid-template-columns: minmax(0, 467fr) minmax(0, 68fr) minmax(0, 484fr); }
.equal-height { align-items: stretch; }
.equal-height .column > .card { height: 100%; }

.space-5 { height: 5px; }
.space-10 { height: 10px; }
.space-20 { height: 20px; }
.space-25 { height: 25px; }
.space-34 { height: 34px; }
.space-43 { height: 43px; }
.space-50 { height: 50px; }
.space-150 { height: 150px; }
.space-200 { height: 200px; }

.actions { display: flex; flex-wrap: wrap; gap: calc(8px * var(--scale)); align-items: flex-start; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    line-height: 1.2;
    background-color: var(--button-color);
    color: var(--button-text);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms;
}
.button:hover { color: var(--button-text); background-color: var(--button-hover); }
.button:disabled { opacity: 0.7; cursor: default; }
.button-small { font-size: calc(0.875rem * var(--scale)); min-height: calc(36px * var(--scale)); padding: calc(6px * var(--scale)) calc(12px * var(--scale)); }
.button-medium { font-size: calc(1rem * var(--scale)); min-height: calc(42px * var(--scale)); padding: calc(8px * var(--scale)) calc(16px * var(--scale)); }
.button-large { font-size: calc(1.25rem * var(--scale)); min-height: calc(50px * var(--scale)); padding: calc(10px * var(--scale)) calc(20px * var(--scale)); }

.download { display: flex; align-items: center; gap: calc(32px * var(--scale)); }
.download-icon { display: grid; place-items: center; flex: 0 0 auto; align-self: stretch; }
.download-icon img { display: block; width: auto; height: calc(var(--type-kicker) * 1.2 + 50px * var(--scale)); }
.download-title { color: var(--band-heading); margin: 0 0 calc(8px * var(--scale)); font-weight: 700; font-size: var(--type-kicker); line-height: 1.2; overflow-wrap: anywhere; }

.photo-section .download-title { color: #fff; }

.form-group { margin: 0 0 1em; padding-bottom: 0.25em; }
.form-group label { display: block; margin-bottom: 0.75em; }
.required-mark, .form-error { color: #aa3029; }
.form-group input, .form-group textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: calc(42px * var(--scale));
    margin: 0;
    padding: calc(8px * var(--scale)) calc(15px * var(--scale));
    border: 1px solid #909090;
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.form-group textarea { height: 6em; resize: vertical; }
.form-group :is(input, textarea)[aria-invalid="true"] { border-color: #aa3029; }
.form-feedback { margin: 0 0 1em; }
#modulo-contatto, #main-content { scroll-margin-top: 12px; }

.committee-map { position: relative; isolation: isolate; height: 200px; background: #e7e7e7; color: #303030; }
.map-message {
    position: absolute;
    z-index: 501;
    top: 50%;
    left: 50%;
    width: max-content;
    max-width: 82%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 10px 12px;
    border-radius: 2px;
    background: #fff;
    text-align: center;
    font-size: 0.875rem;
}
.map-fullscreen {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: #fff center / 16px no-repeat url("../icons/fullscreen.svg");
    cursor: pointer;
}
.map-fullscreen:hover { background-color: #f4f4f4; }
.map-fullscreen[aria-pressed="true"] { background-image: url("../icons/fullscreen-exit.svg"); }
.committee-map:fullscreen, .committee-map.map-expanded { width: 100%; height: 100%; }
.committee-map.map-expanded { position: fixed; inset: 0; z-index: 100; }
body.map-is-expanded { overflow: hidden; }

@media (max-width: 1130px) {
    :root { --gutter: 30px; --band-inset: 34px; --split-inset: 30px; --heading-scale: 1.18943748; }
    :root { --header-inset: 25.5px; }
    .header-inner { gap: 17px; }
}
@media (max-width: 959px) { .narrow .container { max-width: var(--max-width); } }
@media (max-width: 768px) {
    :root { --type-copy: 1.020833rem; --band-inset: 32.6667px; --flow-gap: 16.333px; --grid-gap: 24.5px; --scale: 1.020833; --heading-scale: 1.14207811; }
}
@media (max-width: 640px) {
    .grid { grid-template-columns: minmax(0, 1fr); row-gap: 3em; }
    .spacer { height: min(10px, var(--flow-gap)); }
    .space-5 { height: 5px; }
    .featured-left, .featured-right { display: flex; flex-direction: column; }
    .featured-left .container, .featured-right .container { max-width: var(--max-width); }
    .featured-left .band-photo, .featured-right .band-photo { height: 40vh; }
    .featured-left .band-wrapper, .featured-right .band-wrapper { padding-inline: var(--gutter); }
}
@media (max-width: 520px) {
    .header-inner { position: relative; padding: 24px 44px; gap: 0; }
    .brand { display: flex; align-items: baseline; justify-content: center; gap: 0.2em; font-size: clamp(0.8125rem, 3.9vw, 1.5rem); min-height: 53px; align-content: center; }
    .brand-surname { white-space: nowrap; }
    .menu-toggle { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
    .site-navigation { width: 100%; }
    .menu-toggle:not([hidden]) + .site-navigation {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        min-height: calc(100dvh - 101px);
        background: #fff;
        box-shadow: 0 2px 6px rgb(0 0 0 / 15%);
        animation: menu-open 180ms ease-out;
    }
    .site-navigation ul { display: block; }
    .site-navigation a { padding: 12.5px 16px; border-radius: 0; }
}
@keyframes menu-open { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .site-navigation, .site-navigation a, .button { animation: none !important; transition: none; }
}
