@charset "UTF-8";
/* I font sono ospitati localmente in assets/css/fonts.css (nessun @import da Google) */

/* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; overflow-x: hidden; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
body { -webkit-text-size-adjust: none; }
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

/* Containers */
.container { margin-left: auto; margin-right: auto; width: 80rem; }

/* Grid */
.row { border-bottom: solid 1px transparent; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
.row > * { float: left; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
.row:after, .row:before { content: ''; display: block; clear: both; height: 0; }
.row > * { padding: 0 0 0 2rem; }
.row { margin: 0 0 -1px -2rem; }
.row.uniform > * { padding: 2rem 0 0 2rem; }
.row.uniform { margin: -2rem 0 -1px -2rem; }
.\31 2u, .\31 2u\24 { width: 100%; clear: none; margin-left: 0; }
.\31 1u, .\31 1u\24 { width: 91.6666666667%; clear: none; margin-left: 0; }
.\31 0u, .\31 0u\24 { width: 83.3333333333%; clear: none; margin-left: 0; }
.\39 u, .\39 u\24 { width: 75%; clear: none; margin-left: 0; }
.\38 u, .\38 u\24 { width: 66.6666666667%; clear: none; margin-left: 0; }
.\37 u, .\37 u\24 { width: 58.3333333333%; clear: none; margin-left: 0; }
.\36 u, .\36 u\24 { width: 50%; clear: none; margin-left: 0; }
.\35 u, .\35 u\24 { width: 41.6666666667%; clear: none; margin-left: 0; }
.\34 u, .\34 u\24 { width: 33.3333333333%; clear: none; margin-left: 0; }
.\33 u, .\33 u\24 { width: 25%; clear: none; margin-left: 0; }
.\32 u, .\32 u\24 { width: 16.6666666667%; clear: none; margin-left: 0; }
.\31 u, .\31 u\24 { width: 8.3333333333%; clear: none; margin-left: 0; }

/* Offset */
.-2u { margin-left: 16.66667%; }
.-4u { margin-left: 33.33333%; }

/* Basic */
@-ms-viewport { width: device-width; }
body { -ms-overflow-style: scrollbar; background: #fff; }
body.is-loading *, body.is-loading *:before, body.is-loading *:after {
    -moz-animation: none !important; -webkit-animation: none !important;
    -ms-animation: none !important; animation: none !important;
    -moz-transition: none !important; -webkit-transition: none !important;
    -ms-transition: none !important; transition: none !important;
}

/* Type */
html { font-size: 13pt; }
body { background-color: #fff; color: #444; }
body, input, select, textarea { font-family: "Poppins", sans-serif; font-weight: 300; font-size: 1rem; line-height: 1.65; }
a { text-decoration: underline; color: #97181d; }
a:hover { text-decoration: none; }
strong, b { font-weight: 600; color: #555; }
em, i { font-style: italic; }
p { margin: 0 0 2rem 0; }
p.special {
    text-transform: uppercase; font-size: .75rem; font-weight: 300;
    margin: 0 0 .5rem 0; padding: 0 0 1rem 0; letter-spacing: .25rem;
    position: relative;
}
p.special:after {
    content: ''; position: absolute; margin: auto; right: 0; bottom: 0;
    left: 0; width: 50%; height: 1px; background-color: rgba(0, 0, 0, 0.125);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif; font-weight: 300;
    line-height: 1.5; margin: 0 0 1rem 0; font-variant: small-caps; color: #555;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
header p { position: relative; margin: 0 0 1.5rem 0; color: #bbb; }
ul { list-style: disc; margin: 0 0 2rem 0; padding-left: 1rem; }
ul li { padding-left: 0.5rem; }
ul.contact-list { list-style: none; padding-left: 0; }
ul.contact-list li { padding-left: 0; padding: 0.3rem 0; font-size: 0.95rem; }
ul.contact-list li i { width: 20px; text-align: center; margin-right: 0.5rem; color: #97181d; }

/* Box */
.box { margin-bottom: 2rem; background: #FFF; border-radius: 2px; }
.box .content { padding: 3rem; }
.box header p {
    text-transform: uppercase; font-size: .75rem; font-weight: 300;
    margin: 0 0 .25rem 0; padding: 0 0 .75rem 0; letter-spacing: .25rem; position: relative;
}
.box header p:after {
    content: ''; position: absolute; margin: auto; right: 0; bottom: 0;
    left: 0; width: 50%; height: 1px; background-color: rgba(0, 0, 0, 0.125);
}
.box > :last-child, .box > :last-child > :last-child, .box > :last-child > :last-child > :last-child { margin-bottom: 0; }

/* Button */
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
    -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
    -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-radius: 2px; border: 0; cursor: pointer; display: inline-block;
    font-weight: 300; height: 2.85rem; line-height: 2.95rem; padding: 0 1.5rem;
    text-align: center; text-decoration: none; white-space: nowrap; text-transform: uppercase;
    background-color: #97181d; color: #ffffff !important;
}
input[type="submit"]:hover, .button:hover { background-color: #b71c23; }

/* Button light variant */
.button.light {
    background-color: #ffffff;
    color: #97181d !important;
}
.button.light:hover {
    background-color: #f2f2f2;
}

/* Image */
.image { border-radius: 2px; border: 0; display: inline-block; position: relative; }
.image img { border-radius: 2px; display: block; }
.image.fit { display: block; margin: 0 0 2rem 0; width: 100%; }
.image.fit img { width: 100%; }

/* Align */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* Narrow centered container */
.narrow-center {
    max-width: 66.667%;
    margin: 0 auto;
    text-align: center;
}
@media screen and (max-width: 980px) {
    .narrow-center { max-width: 80%; }
}
@media screen and (max-width: 736px) {
    .narrow-center { max-width: 100%; }
}

/* Wrapper */
.wrapper { padding: 6rem 0 4rem 0; position: relative; margin: 0; }
.wrapper > .inner { margin: 0 auto; width: 80rem; }

/* Wrapper Style1 — Viola */
.wrapper.style1 { background-color: #8a4680; color: #e2d1df; }
.wrapper.style1 a { color: #ffffff; }
.wrapper.style1 strong, .wrapper.style1 b { color: #ffffff; }
.wrapper.style1 h1, .wrapper.style1 h2, .wrapper.style1 h3,
.wrapper.style1 h4, .wrapper.style1 h5, .wrapper.style1 h6 { color: #ffffff; }
.wrapper.style1 p { color: rgba(255,255,255,0.85); }
.wrapper.style1 header p { color: rgba(255,255,255,0.5); }
.wrapper.style1 p.special:after { background-color: rgba(255, 255, 255, 0.25); }
.wrapper.style1 ul { list-style: none; padding-left: 0; }
.wrapper.style1 ul li { padding-left: 0; padding: 0.4rem 0; position: relative; padding-left: 1.2rem; }
.wrapper.style1 ul li:before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.wrapper.style1 .box { background: rgba(255,255,255,0.08); border-radius: 4px; }
.wrapper.style1 .box header p:after { background-color: rgba(255,255,255,0.15); }

/* Wrapper Style2 — Grigio */
.wrapper.style2 { background-color: #f2f2f2; color: #444; }
.wrapper.style2 a { color: #97181d; }
.wrapper.style2 strong, .wrapper.style2 b { color: #444; }
.wrapper.style2 h1, .wrapper.style2 h2, .wrapper.style2 h3,
.wrapper.style2 h4, .wrapper.style2 h5, .wrapper.style2 h6 { color: #555; }
.wrapper.style2 header p { color: #999; }
.wrapper.style2 p.special:after { background-color: rgba(0,0,0,0.08); }

/* Wrapper Style9 — Bordeaux istituzionale */
.wrapper.style9 { background-color: #97181d; color: #e8c8ca; }
.wrapper.style9 input, .wrapper.style9 select, .wrapper.style9 textarea { color: #ffffff; }
.wrapper.style9 a { color: #ffffff; }
.wrapper.style9 strong, .wrapper.style9 b { color: #ffffff; }
.wrapper.style9 h1, .wrapper.style9 h2, .wrapper.style9 h3,
.wrapper.style9 h4, .wrapper.style9 h5, .wrapper.style9 h6 { color: #ffffff; }
.wrapper.style9 p { color: rgba(255,255,255,0.85); }
.wrapper.style9 header p { color: rgba(255,255,255,0.5); }
.wrapper.style9 p.special:after { background-color: rgba(255, 255, 255, 0.25); }
.wrapper.style9 ul { list-style: none; padding-left: 0; }
.wrapper.style9 ul li { padding-left: 0; padding: 0.4rem 0; position: relative; padding-left: 1.2rem; }
.wrapper.style9 ul li:before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.wrapper.style9 .box { background: rgba(255,255,255,0.1); border-radius: 4px; }
.wrapper.style9 .box header p:after { background-color: rgba(255,255,255,0.15); }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 3rem auto 0; padding-left: 40px; }
.timeline:before {
    content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
    width: 2px; background: rgba(0,0,0,0.12);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute; left: -40px; top: 5px; width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid #fff;
}
.timeline-marker.official { background: #8a4680; border-color: #f2f2f2; }
.timeline-marker.autobiographic { background: #bbb; border-color: #f2f2f2; }
.timeline-content {
    background: #fff; padding: 1.5rem 2rem; border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.timeline-date {
    font-family: "Poppins", sans-serif; font-size: 0.75rem; font-weight: 600;
    color: #8a4680; text-transform: uppercase; letter-spacing: 0.05rem;
}
.timeline-content h3 {
    margin: 0.3rem 0 0.5rem 0; font-size: 1.1rem; color: #555;
}
.timeline-content p {
    font-size: 0.9rem; margin: 0; color: #666; line-height: 1.6;
}
.timeline-badge {
    display: inline-block; font-family: "Poppins", sans-serif;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05rem;
    padding: 0.15rem 0.5rem; border-radius: 2px; margin-top: 0.5rem;
}
.timeline-badge.official { background: rgba(138,70,128,0.1); color: #8a4680; }
.timeline-badge.autobiographic { background: rgba(0,0,0,0.06); color: #888; }

/* Tiles */
.tiles {
    display: -moz-flex; display: -webkit-flex; display: -ms-flex; display: flex;
    -moz-flex-wrap: wrap; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap;
    position: relative; margin: -2.0em 0 0 -2.0em;
}
.tiles article {
    -moz-transition: -moz-transform 0.5s ease, opacity 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease, opacity 0.5s ease;
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: relative; width: calc(33.333% - 2.5em); margin: 2.0em 0 0 2.0em;
}
.tiles article > .image {
    -moz-transition: -moz-transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease;
    transition: transform 0.5s ease;
    position: relative; display: block; width: 100%; border-radius: 5px; overflow: hidden;
}
.tiles article > .image img { display: block; width: 100%; }
.tiles article > .image:before {
    -moz-pointer-events: none; -webkit-pointer-events: none; -ms-pointer-events: none;
    pointer-events: none;
    -moz-transition: background-color 0.5s ease, opacity 0.5s ease;
    -webkit-transition: background-color 0.5s ease, opacity 0.5s ease;
    -ms-transition: background-color 0.5s ease, opacity 0.5s ease;
    transition: background-color 0.5s ease, opacity 0.5s ease;
    content: ''; display: block; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; opacity: 0.8; z-index: 1;
}
.tiles article > .image:after {
    -moz-pointer-events: none; -webkit-pointer-events: none; -ms-pointer-events: none;
    pointer-events: none;
    -moz-transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    -ms-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
    content: ''; display: block; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 0.25px%3B stroke: %23ffffff%3B %7D%3C/style%3E%3Cline x1='0' y1='0' x2='100' y2='100' /%3E%3Cline x1='100' y1='0' x2='0' y2='100' /%3E%3C/svg%3E");
    background-position: center; background-repeat: no-repeat;
    background-size: 100% 100%; opacity: 0.25; z-index: 2;
}
.tiles article > a {
    display: -moz-flex; display: -webkit-flex; display: -ms-flex; display: flex;
    -moz-flex-direction: column; -webkit-flex-direction: column; -ms-flex-direction: column;
    flex-direction: column;
    -moz-align-items: center; -webkit-align-items: center; -ms-align-items: center; align-items: center;
    -moz-justify-content: center; -webkit-justify-content: center; -ms-justify-content: center; justify-content: center;
    -moz-transition: background-color 0.5s ease, -moz-transform 0.5s ease;
    -webkit-transition: background-color 0.5s ease, -webkit-transform 0.5s ease;
    -ms-transition: background-color 0.5s ease, -ms-transform 0.5s ease;
    transition: background-color 0.5s ease, transform 0.5s ease;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 1em; border-radius: 4px; border-bottom: 0;
    color: #ffffff; text-align: center; text-decoration: none; z-index: 3;
}
.tiles article > a:hover { color: #ffffff !important; }
.tiles article > a h2 {
    font-size: 12pt; color: #fff; margin: 0; text-decoration: none;
}
.tiles article > a .content {
    -moz-transition: max-height 0.5s ease, opacity 0.5s ease;
    -webkit-transition: max-height 0.5s ease, opacity 0.5s ease;
    -ms-transition: max-height 0.5s ease, opacity 0.5s ease;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    width: 100%; max-height: 0; line-height: 1.5; margin-top: 0.35em; opacity: 0;
}
.tiles article > a .content > :last-child { margin-bottom: 0; }
.tiles article > a .content p { font-size: 10pt; text-align: center; margin: 0; }

/* Tile color overlays */
.tiles article.style1 > .image:before { background-color: #97181d; }
.tiles article.style2 > .image:before { background-color: #4e7281; }
.tiles article.style3 > .image:before { background-color: #124e1f; }
.tiles article.style4 > .image:before { background-color: #5d4b49; }
.tiles article.style5 > .image:before { background-color: #0c509f; }
.tiles article.style6 > .image:before { background-color: #d51e29; }
.tiles article.style7 > .image:before { background-color: #166f57; }
.tiles article.style8 > .image:before { background-color: #e3602d; }

/* Tile hover effects */
body:not(.is-touch) .tiles article:hover > .image {
    -moz-transform: scale(1.1); -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1); transform: scale(1.1);
}
body:not(.is-touch) .tiles article:hover > .image:before {
    background-color: #333333; opacity: 0.35;
}
body:not(.is-touch) .tiles article:hover > .image:after { opacity: 0; }
body:not(.is-touch) .tiles article:hover .content { max-height: 15em; opacity: 1; }
body.is-loading .tiles article {
    -moz-transform: scale(0.9); -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9); transform: scale(0.9); opacity: 0;
}
body.is-touch .tiles article .content { max-height: 15em; opacity: 1; }

/* Tiles responsive */
@media screen and (max-width: 1280px) {
    .tiles { margin: -1.25em 0 0 -1.25em; }
    .tiles article { width: calc(33.333% - 1.25em); margin: 1.25em 0 0 1.25em; }
}
@media screen and (max-width: 980px) {
    .tiles { margin: -2.5em 0 0 -2.5em; }
    .tiles article { width: calc(50% - 2.5em); margin: 2.5em 0 0 2.5em; }
}
@media screen and (max-width: 736px) {
    .tiles { margin: -1.25em 0 0 -1.25em; }
    .tiles article { width: calc(50% - 1.25em); margin: 1.25em 0 0 1.25em; }
    .tiles article:hover > .image {
        -moz-transform: scale(1.0); -webkit-transform: scale(1.0);
        -ms-transform: scale(1.0); transform: scale(1.0);
    }
}
@media screen and (max-width: 480px) {
    .tiles { margin: 0; }
    .tiles article { width: 100%; margin: 1.25em 0 0 0; }
}

/* Header */
body.subpage { padding-top: 3.25em; }
@-moz-keyframes reveal-header { 0% { top: -4em; opacity: 0; } 100% { top: 0; opacity: 1; } }
@-webkit-keyframes reveal-header { 0% { top: -4em; opacity: 0; } 100% { top: 0; opacity: 1; } }
@-ms-keyframes reveal-header { 0% { top: -4em; opacity: 0; } 100% { top: 0; opacity: 1; } }
@keyframes reveal-header { 0% { top: -4em; opacity: 0; } 100% { top: 0; opacity: 1; } }

#header {
    background: rgba(151, 24, 29, 0.975); color: #a6a6a6; cursor: default;
    height: 3.25em; left: 0; line-height: 3.25em; position: fixed;
    text-align: right; top: 0; width: 100%; z-index: 10001;
}
#header > .logo {
    display: inline-block; height: inherit; left: 1.0em; line-height: inherit;
    margin: 0; padding: 0; position: absolute; top: 0;
}
#header > .logo a {
    font-family: 'Libre Baskerville', Georgia, serif; color: #fff;
    font-size: .75em; text-decoration: none; text-transform: uppercase;
}
#header > .logo a:hover { color: rgba(255, 255, 255, 0.65); }
#header > a {
    -moz-transition: color 0.2s ease-in-out; -webkit-transition: color 0.2s ease-in-out;
    -ms-transition: color 0.2s ease-in-out; transition: color 0.2s ease-in-out;
    display: inline-block; padding: 0 0.75em; color: inherit; text-decoration: none; color: #FFF;
}
#header > a:hover { color: #f2f2f2; }
#header > a[href="#menu"] { text-decoration: none; -webkit-tap-highlight-color: transparent; }
#header > a[href="#menu"]:before {
    content: "\f0c9"; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
    font-family: FontAwesome; font-style: normal; font-weight: normal; text-transform: none !important;
    margin: 0 0.5em 0 0;
}
#header > a + a[href="#menu"]:last-child {
    border-left: solid 1px rgba(0, 0, 0, 0.15); padding-left: 1.25em; margin-left: 0.5em;
}
#header > a:last-child { padding-right: 1.25em; }
#header.reveal {
    -moz-animation: reveal-header 0.5s ease; -webkit-animation: reveal-header 0.5s ease;
    -ms-animation: reveal-header 0.5s ease; animation: reveal-header 0.5s ease;
}
#header.alt {
    -moz-animation: none; -webkit-animation: none; -ms-animation: none; animation: none;
    background-color: transparent; box-shadow: none; overflow: hidden; position: absolute; top: 1.5em;
}

/* Menu Sidebar */
#menu {
    -moz-transform: translateX(20rem); -webkit-transform: translateX(20rem);
    -ms-transform: translateX(20rem); transform: translateX(20rem);
    -moz-transition: -moz-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
    -webkit-transition: -webkit-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
    -ms-transition: -ms-transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
    transition: transform 0.5s ease, box-shadow 0.5s ease, visibility 0.5s;
    -webkit-overflow-scrolling: touch; background: rgba(151, 24, 29, 0.95);
    box-shadow: none; color: #000; height: 100%; max-width: 80%;
    overflow-y: auto; padding: 3rem 2rem; position: fixed; right: 0; top: 0;
    visibility: hidden; width: 20rem; z-index: 10002;
}
#menu > ul { margin: 0 0 1rem 0; }
#menu > ul.links { list-style: none; padding: 0; }
#menu > ul.links > li { padding: 0; }
#menu > ul.links > li > a:not(.button) {
    border: 0; border-top: solid 1px rgba(255, 255, 255, 0.125);
    color: rgba(255, 255, 255, 0.5); display: block; line-height: 3.5rem;
    text-decoration: none; text-transform: uppercase;
}
#menu > ul.links > li > a:not(.button):hover { color: #FFF; }
#menu > ul.links > li:first-child > a:not(.button) { border-top: 0 !important; }
#menu .close {
    text-decoration: none; -moz-transition: color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out; -ms-transition: color 0.2s ease-in-out;
    transition: color 0.2s ease-in-out; -webkit-tap-highlight-color: transparent;
    background: transparent !important; box-shadow: none; border: 0; color: rgba(255,255,255,0.78);
    cursor: pointer; display: block; height: 3.25rem;
    line-height: 3.25rem; padding-right: 1.25rem; position: absolute; right: 0;
    text-align: right; top: 0; vertical-align: middle; width: 7rem;
}
#menu .close:before {
    -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
    font-family: FontAwesome; font-style: normal; font-weight: normal;
    text-transform: none !important; content: '\f00d'; font-size: 1.25rem;
}
#menu .close:hover { color: #fff; transform: none; }
#menu.visible {
    -moz-transform: translateX(0); -webkit-transform: translateX(0);
    -ms-transform: translateX(0); transform: translateX(0);
    box-shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.2); visibility: visible;
}

/* Banner */
.banner { background-color: #7c273b; color: #dfcacb; padding: 4em 0; position: relative; }
.banner a { color: #ffffff; }
.banner strong, .banner b { color: #ffffff; }
.banner h1, .banner h2, .banner h3, .banner h4, .banner h5, .banner h6 { color: #ffffff; }
.banner.full { padding: 0; min-height: 100vh; height: 100vh !important; }
.banner > article {
    -moz-transition: opacity 1.5s ease, visibility 1.5s;
    -webkit-transition: opacity 1.5s ease, visibility 1.5s;
    -ms-transition: opacity 1.5s ease, visibility 1.5s;
    transition: opacity 1.5s ease, visibility 1.5s;
    background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover;
    height: 100%; left: 0; opacity: 0; position: absolute;
    text-align: right; padding-right: 1.8em; top: 0; visibility: hidden;
    width: 100%; z-index: 0;
}
.banner > article:before { content: ''; display: inline-block; height: 100%; vertical-align: bottom; }
.banner > article:after {
    content: ''; display: block; width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; background: #000; opacity: 0.45;
}
.banner > article .inner {
    position: relative; display: inline-block; vertical-align: bottom; z-index: 1;
}
.banner > article .inner > :last-child { margin-bottom: 10px; }
.banner > article h2 {
    font-size: 0.7rem; margin-bottom: 0; color: #fff; font-weight: 300;
}
.banner > article h2:after { display: none; }
.banner > article p {
    color: rgba(255, 255, 255, 0.65); text-transform: uppercase;
    font-size: 1rem; font-weight: 300; margin: 0; padding-bottom: 1.5rem;
    letter-spacing: .25rem;
}
.banner > article a { color: #FFF; text-decoration: none; }
.banner > article img { display: none; }
.banner > article.visible { opacity: 1; visibility: visible; }
body.is-loading .banner:after { opacity: 1.0; visibility: visible; }

/* Main */
#main { padding: 4rem 0 2rem 0; }

/* Footer */
#footer {
    padding: 4rem 0 2rem 0; background: rgba(151, 24, 29, 0.95);
    text-align: center;
}
#footer a { color: rgba(255, 255, 255, 0.5); }
#footer a:hover { color: #FFF; }
#footer .copyright { color: #bbb; font-size: 0.9rem; margin: 0 0 2rem 0; padding: 0; text-align: center; }
#footer .copyright p { color: #ccc; }

/* Responsive */

@media screen and (max-width: 1680px) {
    html { font-size: 11pt; }
    .container { width: 80rem; }
    .wrapper > .inner { width: 80rem; }
}

@media screen and (max-width: 1280px) {
    html { font-size: 11pt; }
    .wrapper > .inner { width: 75rem; }
    .row > * { padding: 0 0 0 1.5rem; }
    .row { margin: 0 0 -1px -1.5rem; }
    .row.uniform > * { padding: 1.5rem 0 0 1.5rem; }
    .row.uniform { margin: -1.5rem 0 -1px -1.5rem; }
}

@media screen and (max-width: 980px) {
    html { font-size: 12pt; }
    .wrapper > .inner { width: 90%; }
    .row > * { padding: 0 0 0 1.5rem; }
    .row { margin: 0 0 -1px -1.5rem; }
    /* Stack 3-column grids on tablets */
    #competenze .row { display: flex; flex-direction: column; margin: 0; }
    #competenze .row > * { width: 100%; float: none; padding: 0 0 1.5rem 0; margin-left: 0; }
    .row.uniform > * { padding: 1.5rem 0 0 1.5rem; }
    .row.uniform { margin: -1.5rem 0 -1px -1.5rem; }
    .\31 2u\28medium\29, .\31 2u\24\28medium\29 { width: 100%; }
    .\36 u\28medium\29, .\36 u\24\28medium\29 { width: 50%; }
    .\34 u\28medium\29, .\34 u\24\28medium\29 { width: 33.3333%; }
    .\38 u\28medium\29, .\38 u\24\28medium\29 { width: 66.6667%; }
    .\35 u\28medium\29, .\35 u\24\28medium\29 { width: 41.6667%; }
    .-2u\28medium\29 { margin-left: 16.66667%; }
    .-4u\28medium\29 { margin-left: 33.33333%; }
    .banner > article { background-attachment: scroll; }
    .banner.full { min-height: 70vh; height: 70vh !important; }
}

@media screen and (max-width: 736px) {
    html { font-size: 12pt; }
    .wrapper { padding: 3rem 0 1.5rem 0; }
    .wrapper > .inner { width: 90%; }
    .row > * { padding: 0 0 0 1rem; }
    .row { margin: 0 0 -1px -1rem; }
    .row.uniform > * { padding: 1rem 0 0 1rem; }
    .row.uniform { margin: -1rem 0 -1px -1rem; }
    .\31 2u\28small\29, .\31 2u\24\28small\29,
    .\36 u\28small\29, .\36 u\24\28small\29,
    .\34 u\28small\29, .\34 u\24\28small\29,
    .\38 u\28small\29, .\38 u\24\28small\29,
    .\35 u\28small\29, .\35 u\24\28small\29 { width: 100%; clear: both; float: none; }
    .-2u\28small\29, .-4u\28small\29 { margin-left: 0; }
    /* Stack all grid rows via flexbox — replaces fragile escaped selectors */
    .row { display: flex; flex-direction: column; margin: 0; }
    .row > * { width: 100%; float: none; padding: 0 0 1rem 0; margin-left: 0; box-sizing: border-box; }
    .row > .-2u, .row > .-4u { margin-left: 0; }
    /* Header */
    #header > a { padding: 0 0.5em; }
    #header > a + a[href="#menu"]:last-child { padding-left: 1em; margin-left: 0.25em; }
    #header > a:last-child { padding-right: 1em; }
    #header > .logo { left: .5em; top: 0; }
    #header > .logo a { font-size: .65em; }
    /* Menu */
    #menu { padding: 2.5rem 1.75rem; width: 16rem; }
    #menu .close { height: 4rem; line-height: 4rem; }
    /* Banner */
    .banner.full { min-height: 60vh; height: 60vh !important; }
    .banner > article { text-align: center; padding-right: 0; }
    .banner > article:before { vertical-align: middle; }
    .banner > article .inner { width: 90%; vertical-align: middle; }
    .banner > article h2 { font-size: 1.6rem; }
    .banner > article p { font-size: 0.75rem; letter-spacing: 0.12rem; margin-bottom: 0; }
    /* Box */
    .box .content { padding: 1.5rem; }
    /* Timeline */
    .timeline { padding-left: 28px; margin-top: 2rem; }
    .timeline-marker { left: -28px; width: 12px; height: 12px; }
    .timeline-content { padding: 1rem 1.25rem; }
    .timeline-content p { font-size: 0.85rem; }
}

@media screen and (max-width: 480px) {
    html { font-size: 11pt; }
    .wrapper > .inner { width: 92% !important; }
    .container { width: 92% !important; }
    .wrapper { padding: 2.5rem 0 1rem 0; }
    .row > * { padding: 0; }
    .row { margin: 0; }
    /* Banner */
    .banner.full { min-height: 55vh; height: 55vh !important; }
    .banner > article h2 { font-size: 1.3rem; }
    .banner > article p { font-size: 0.65rem; letter-spacing: 0.06rem; }
    /* Box */
    .box .content { padding: 1.25rem; }
    /* Timeline */
    .timeline { padding-left: 22px; }
    .timeline-marker { left: -22px; width: 10px; height: 10px; }
    .timeline-content { padding: 0.85rem 1rem; }
    .timeline-date { font-size: 0.7rem; }
    .timeline-content h3 { font-size: 1rem; }
    .timeline-content p { font-size: 0.8rem; }
    /* Header */
    #header > .logo a { font-size: .55em; }
    /* Footer */
    #footer .copyright { font-size: 0.8rem; }
    #footer .copyright p { font-size: 0.8rem; }
}

@media screen and (max-width: 360px) {
    html { font-size: 10pt; }
    .wrapper > .inner { width: 94% !important; }
    .banner.full { min-height: 50vh; height: 50vh !important; }
    .banner > article h2 { font-size: 1.1rem; }
    .banner > article p { font-size: 0.6rem; letter-spacing: 0.04rem; }
    .box .content { padding: 1rem; }
    #menu { width: 14rem; padding: 2rem 1.25rem; }
    .timeline { padding-left: 18px; }
    .timeline-marker { left: -18px; width: 8px; height: 8px; }
    .timeline-content { padding: 0.75rem; }
}

/* ============================================================
   COMPONENTI AGGIUNTIVI — sito Lorenzo Pernetti
   ============================================================ */

/* --- Hero --- */
#banner.full > article {
    display: flex; align-items: flex-end; justify-content: center;
    text-align: center; padding: 0;
    background-attachment: fixed; background-position: center; background-size: cover;
}
#banner.full > article:before { display: none; }
#banner.full > article:after {
    background: linear-gradient(180deg, rgba(20,16,18,0.45) 0%, rgba(20,16,18,0.62) 100%);
    opacity: 1;
}
#banner.full > article .inner {
    display: block; vertical-align: initial; width: min(100%, 62rem);
    max-width: 62rem; margin: 0 auto; padding: 0 2rem clamp(5rem, 11vh, 7rem) 2rem;
    text-align: center;
}
.banner .inner p.eyebrow {
    color: rgba(255,255,255,0.82); text-transform: uppercase; letter-spacing: 0.3rem;
    font-size: 0.7rem; font-weight: 400; margin: 0 0 1.4rem 0; padding: 0;
}
.banner .inner h1 {
    font-family: 'Libre Baskerville', Georgia, serif; color: #fff; font-weight: 700;
    font-size: 4rem; line-height: 1.05; margin: 0 0 1.1rem 0; font-variant: small-caps;
    letter-spacing: 0.02em; text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.banner .inner p.tagline {
    font-family: 'Libre Baskerville', Georgia, serif; font-style: italic;
    font-size: 1.45rem; color: rgba(255,255,255,0.94); text-transform: none;
    letter-spacing: normal; margin: 0; padding: 0;
}
.scroll-cue {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    z-index: 3; color: #fff; font-family: FontAwesome; font-size: 1.7rem;
    text-decoration: none; opacity: 0.8;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    animation: cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; opacity: 1; }
@keyframes cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(9px); }
}

/* --- Tiles: foto piu' leggibili sotto l'overlay colore --- */
.tiles article > .image:before { opacity: 0.6; }

/* --- Chi sono --- */
.bio-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem;
    align-items: center; max-width: 72rem; margin: 0 auto;
}
.bio-text .lead {
    font-family: 'Libre Baskerville', Georgia, serif; font-style: italic;
    font-size: 1.25rem; line-height: 1.6; color: #555; margin-bottom: 1.5rem;
}
.bio-portrait img {
    width: 100%; display: block; border-radius: 4px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.22);
}

/* --- Pull quote --- */
.quote-wrapper { padding: 4.5rem 0; }
.pullquote {
    font-family: 'Libre Baskerville', Georgia, serif; font-style: italic;
    font-size: 1.6rem; line-height: 1.55; text-align: center; color: #fff;
    max-width: 58rem; margin: 0 auto; position: relative; padding-top: 2.2rem;
}
.pullquote:before {
    content: '\201C'; font-family: 'Libre Baskerville', Georgia, serif;
    position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%);
    font-size: 4rem; color: rgba(255,255,255,0.35); line-height: 1;
}

/* --- Associazioni --- */
.assoc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    align-items: stretch;
}
.assoc-card {
    background: #fff; border-radius: 4px; padding: 2.5rem;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06); border-top: 3px solid #97181d;
    display: flex; flex-direction: column;
}
.assoc-card h3 { margin-bottom: 0.15rem; }
.assoc-card .assoc-role {
    text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.15rem;
    color: #a9803f; margin-bottom: 1.1rem; font-weight: 500;
}
.assoc-card p { color: #666; }
.assoc-actions {
    margin-top: auto; padding-top: 1.4rem; display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.assoc-actions .button { height: 2.5rem; line-height: 2.6rem; font-size: 0.8rem; padding: 0 1.2rem; }
.assoc-actions .button.light { border: 1px solid rgba(151,24,29,0.3); }

/* --- Media / Video --- */
.media-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.video-card { margin: 0; }
.video-card video {
    width: 100%; display: block; border-radius: 6px; background: #000;
    aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
.video-card figcaption {
    font-size: 0.85rem; color: #888; margin-top: 0.8rem; text-align: center;
}

/* --- Galleria --- */
.gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem; margin-top: 1rem;
}
.gallery-item {
    display: block; overflow: hidden; border-radius: 4px; border-bottom: 0;
    aspect-ratio: 1 / 1; background: #ddd; cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.09); filter: brightness(0.82); }

/* --- Lightbox --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,8,9,0.93); z-index: 10010;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-image {
    max-width: 90vw; max-height: 86vh; border-radius: 4px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.6);
}
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: none; border: 0; color: #fff;
    font-family: FontAwesome; cursor: pointer; opacity: 0.75;
    transition: opacity 0.2s ease; -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 1.1rem; right: 1.5rem; font-size: 1.9rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

/* --- Footer --- */
.footer-tagline { font-family: 'Libre Baskerville', Georgia, serif; font-style: italic; }

/* --- Reveal on scroll (aggiunto via JS, nessun rischio se JS disattivo) --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive componenti --- */
@media screen and (max-width: 980px) {
    .banner .inner h1 { font-size: 3.2rem; }
    .assoc-grid { grid-template-columns: 1fr; max-width: 38rem; margin: 0 auto; }
    .media-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 736px) {
    .banner .inner h1 { font-size: 2.4rem; }
    .banner .inner p.tagline { font-size: 1.15rem; }
    .banner .inner p.eyebrow { letter-spacing: 0.2rem; font-size: 0.62rem; }
    .bio-grid { grid-template-columns: 1fr; gap: 2rem; max-width: 34rem; }
    .bio-portrait { order: -1; max-width: 22rem; margin: 0 auto; }
    .pullquote { font-size: 1.25rem; }
    .media-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.4rem; }
    .lb-prev, .lb-next { font-size: 2.2rem; }
}
@media screen and (max-width: 480px) {
    .banner .inner h1 { font-size: 2rem; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   UI / UX — rifiniture, micro-interazioni, accessibilità
   ============================================================ */

/* --- Barra di progresso scroll --- */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #97181d 0%, #c9a227 100%);
    z-index: 10003; transition: width 0.1s linear;
}

/* --- Hero: pulsanti di chiamata all'azione --- */
.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta .button { box-shadow: 0 10px 26px rgba(0,0,0,0.28); }
.button.ghost {
    background-color: transparent; color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}
.button.ghost:hover { background-color: rgba(255,255,255,0.14); }

/* --- Pulsanti: lieve sollevamento --- */
.button { transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.button:hover { transform: translateY(-2px); }

/* --- Torna su --- */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 2.85rem; height: 2.85rem;
    line-height: 2.85rem; text-align: center; border-radius: 50%;
    background: rgba(151,24,29,0.95); color: #fff !important; text-decoration: none;
    font-family: FontAwesome; font-size: 1.15rem; z-index: 10000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease, background-color 0.2s ease;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #b71c23; color: #fff !important; }

/* --- Lightbox: contatore --- */
.lb-counter {
    position: absolute; top: 1.3rem; left: 0; right: 0; text-align: center;
    color: rgba(255,255,255,0.85); font-family: 'Poppins', sans-serif;
    font-size: 0.85rem; letter-spacing: 0.1rem; pointer-events: none;
}

/* --- Header: ombra alla comparsa --- */
#header.reveal { box-shadow: 0 2px 14px rgba(0,0,0,0.18); }

/* --- Navigazione attiva (scrollspy) --- */
#menu > ul.links > li > a.active:not(.button) {
    color: #fff; border-left: 2px solid #c9a227; padding-left: 0.85rem;
}

/* --- Micro-interazioni: schede e contenuti --- */
.box { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.box:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.assoc-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.assoc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); }
.timeline-content { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-item:hover .timeline-content { transform: translateX(5px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.video-card video { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.video-card:hover video { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,0.22); }

/* --- Accessibilità: focus visibile da tastiera --- */
a:focus-visible, button:focus-visible, .button:focus-visible,
.gallery-item:focus-visible, video:focus-visible {
    outline: 2px solid #c9a227; outline-offset: 3px; border-radius: 2px;
}

/* --- Rispetto delle preferenze di movimento ridotto --- */
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important; scroll-behavior: auto !important;
    }
    .scroll-cue { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .tiles article { opacity: 1 !important; transform: none !important; }
    .hero-bg { animation: none !important; transform: none !important; }
}

@media screen and (max-width: 736px) {
    .back-to-top { bottom: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; line-height: 2.6rem; }
    .hero-cta { margin-top: 1.6rem; }
}

/* ============================================================
   Hero immersivo (Ken Burns) + Galleria espandibile
   ============================================================ */

/* --- Hero: livello immagine animato dietro il contenuto --- */
#banner.full > article { overflow: hidden; }
#banner.full > article .inner { z-index: 2; }
#banner.full > article:after { z-index: 1; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background-size: cover; background-position: center 28%; background-repeat: no-repeat;
    transform: scale(1.06); will-change: transform; backface-visibility: hidden;
    animation: heroKenBurns 14s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.30) translate3d(-2%, -3.5%, 0); }
}

/* --- Galleria espandibile su mobile --- */
.gallery-toggle { display: none; }
@media screen and (max-width: 736px) {
    #galleria .inner { text-align: center; }
    .gallery-toggle { display: inline-block; margin: 1.6rem auto 0; }
    .gallery:not(.expanded) .gallery-item:nth-child(n+9) { display: none; }
}

/* --- Tiles: dimensioni UNIFORMI, immagine ritagliata (object-fit) --- */
.tiles article > .image { aspect-ratio: 4 / 3; height: auto; }
.tiles article > .image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}

/* ============================================================
   Audit UX/UI — responsive, accessibilita', galleria progressiva
   ============================================================ */

/* Galleria: mostra una selezione curata, poi lascia espandere l'archivio */
.gallery-toggle { display: inline-block; margin: 1.8rem auto 0; }
.gallery.gallery-ready:not(.expanded) .gallery-item:nth-child(n+19) { display: none; }

/* Lightbox realmente usabile da tastiera e meno invadente su mobile */
body.lb-open { overflow: hidden; }
.lightbox:focus { outline: none; }
.lb-close, .lb-prev, .lb-next {
    min-width: 3rem; min-height: 3rem; line-height: 3rem;
    background: rgba(0,0,0,0.16) !important; border-radius: 999px;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover,
.lb-close:focus-visible, .lb-prev:focus-visible, .lb-next:focus-visible {
    background: rgba(255,255,255,0.14) !important;
}
.lb-image { object-fit: contain; }

@media screen and (max-width: 736px) {
    #header > .logo a { font-size: .72em; letter-spacing: 0.02em; }

    #banner.banner.full {
        min-height: clamp(31rem, 68svh, 38rem);
        height: clamp(31rem, 68svh, 38rem) !important;
    }
    #banner.full > article { align-items: flex-end; }
    #banner.full > article .inner {
        width: 100%; padding: 0 1.35rem 5.2rem 1.35rem;
    }
    .banner .inner p.eyebrow {
        max-width: 18rem; margin-left: auto; margin-right: auto;
        line-height: 1.45; letter-spacing: 0.13rem;
    }
    .banner .inner h1 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
    .banner .inner p.tagline { font-size: clamp(1.05rem, 4.5vw, 1.25rem); }
    .hero-cta { gap: 0.7rem; margin-top: 1.35rem; }
    .hero-cta .button {
        min-width: 8.7rem; height: 2.75rem; line-height: 2.8rem;
        padding: 0 1rem;
    }

    /* Mobile: le tiles diventano una navigazione rapida, non un muro fotografico */
    #tiles.wrapper { padding-top: 2rem !important; padding-bottom: 0.5rem !important; }
    #tiles .tiles {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem; margin: 0;
    }
    #tiles .tiles article { width: auto; margin: 0; }
    #tiles .tiles article > .image { display: none; }
    #tiles .tiles article > a {
        position: relative; inset: auto; min-height: 5.25rem; height: 100%;
        align-items: flex-start; justify-content: center; text-align: left;
        padding: 0.85rem 0.9rem; border-radius: 4px; background: #fff;
        color: #97181d !important; box-shadow: 0 8px 22px rgba(0,0,0,0.07);
        border-left: 3px solid #97181d;
    }
    #tiles .tiles article:nth-child(even) > a {
        border-left: 0;
        border-right: 3px solid #97181d;
        box-shadow: -8px 8px 22px rgba(0,0,0,0.065);
    }
    #tiles .tiles article > a h2 {
        color: #97181d; font-size: 0.88rem; line-height: 1.2; margin: 0 0 0.25rem 0;
    }
    #tiles .tiles article > a .content {
        max-height: none; opacity: 1; margin-top: 0; line-height: 1.35;
    }
    #tiles .tiles article > a .content p {
        color: #666; font-size: 0.72rem; text-align: left;
    }

    .gallery.gallery-ready:not(.expanded) .gallery-item:nth-child(n+9) { display: none; }
    .lb-image { max-width: 92vw; max-height: 76vh; }
    .lb-counter { top: 1rem; }
    .lb-close { top: 0.75rem; right: 0.75rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; font-size: 1.7rem; }
}

@media screen and (max-width: 480px) {
    #header > .logo a { font-size: .68em; }
    #tiles .tiles { grid-template-columns: 1fr; }
    #tiles .tiles article > a { min-height: 4.6rem; }
    .back-to-top {
        width: 2.35rem; height: 2.35rem; line-height: 2.35rem;
        bottom: 0.85rem; right: 0.85rem; font-size: 1rem;
    }
}

/* ============================================================
   Pagine legali (privacy / cookie) + link footer
   ============================================================ */
.legal { max-width: 52rem; margin: 0 auto; text-align: left; }
.legal > header.align-center { text-align: center; margin-bottom: 2.5rem; }
.legal h1 { font-size: 2rem; }
.legal h2 {
    font-size: 1.25rem; margin: 2.4rem 0 0.8rem; color: #97181d;
    padding-bottom: 0.4rem; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.legal h3 { font-size: 1.02rem; margin: 1.4rem 0 0.4rem; color: #555; }
.legal p, .legal li { color: #555; font-size: 0.98rem; line-height: 1.75; }
.legal .lead { font-size: 1.12rem; color: #444; font-style: italic; font-family: 'Libre Baskerville', Georgia, serif; }
.legal ul { list-style: disc; margin: 0 0 1.5rem 0; padding-left: 1.4rem; }
.legal ul li { padding: 0.2rem 0 0.2rem 0.3rem; }
.legal a { color: #97181d; }
.legal .note {
    background: #f7f3f0; border-left: 3px solid #a9803f; border-radius: 3px;
    padding: 1rem 1.3rem; margin: 1.5rem 0; font-size: 0.92rem; color: #6b6b6b;
}
.legal .meta-updated { font-size: 0.85rem; color: #999; margin-top: 2.8rem; font-style: italic; }

/* Footer: link legali */
.footer-links { margin: 0 0 1.4rem 0; line-height: 1.8; }
.footer-links a {
    color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.82rem;
    margin: 0 0.55rem; text-transform: uppercase; letter-spacing: 0.08rem;
}
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   Fasce immagine a tutta larghezza (spezza-testo, parallasse)
   ============================================================ */
.image-band {
    position: relative; margin: 0; padding: 7rem 0; overflow: hidden;
    background-size: cover; background-position: center 32%; background-repeat: no-repeat;
    background-attachment: fixed; text-align: center;
}
.image-band:before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background: linear-gradient(rgba(110,20,26,0.45) 0%, rgba(18,14,16,0.72) 100%);
}
.image-band > .inner { position: relative; z-index: 1; width: 80rem; max-width: 88%; margin: 0 auto; }
.image-band .pullquote { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.55); }
.image-band .pullquote:before { color: rgba(255,255,255,0.4); }
@media screen and (max-width: 980px) {
    .image-band { background-attachment: scroll; padding: 5rem 0; }
}
@media screen and (max-width: 736px) {
    .image-band { padding: 4rem 0; }
}
