/* NOV'ARTE ITALIA - stile del sito.
   Riprende colori, caratteri e misure del vecchio tema WordPress "The7" (skin ios7, testata blu, accento #3b8ced). */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
}

:root {
  --accent: #3b8ced;
  --accent-dark: #2a76d2;
  --header: #3b5377;
  --heading: #373a41;
  --text: #8d9095;
  --divider: #dadee1;
  --light: #f7f7f8;
  --stripe: #f6f6f7;
  --green: #008000;
  --red: #c62828;
  --radius: 6px;
  --head-font: 'Open Sans', Helvetica, Arial, Verdana, sans-serif;
  --body-font: Arial, Helvetica, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 14px/22px var(--body-font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
strong, b { color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-family: var(--head-font); font-weight: 400; margin: 0 0 10px; }
h1 { font-size: 48px; line-height: 52px; font-weight: 300; }
h2 { font-size: 36px; line-height: 40px; font-weight: 300; }
h3 { font-size: 22px; line-height: 26px; }
h4 { font-size: 18px; line-height: 22px; text-transform: uppercase; }
h5 { font-size: 16px; line-height: 22px; }
h6 { font-size: 14px; line-height: 16px; font-weight: 600; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }
blockquote { margin: 0 0 15px; padding: 5px 0 5px 20px; border-left: 3px solid var(--divider); font-style: italic; }
hr, .hr-thin { border: 0; border-top: 1px solid var(--divider); margin: 10px 0 15px; height: 0; clear: both; }
table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
td, th { border-top: 1px solid var(--divider); padding: 5px 10px 5px 5px; text-align: left; vertical-align: top; }
th { color: var(--heading); }
tr:nth-child(even) > td, td.kw-title { background: #edf0f2; }
td table { margin: 0; }
td td { border-top: 1px solid var(--divider); }
.table-wrap { overflow-x: auto; }
code { font-size: 13px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--heading); padding: 10px 15px; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.preview-bar { background: #ffe082; color: #5d4300; text-align: center; font-size: 12px; line-height: 24px; font-weight: bold; }

/* ------------------------------------------------------------------ barra superiore */
#top-bar { font-size: 12px; color: #686868; background: #fff; }
#top-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 10px; }
.mini-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.mini-contacts li { display: flex; align-items: center; gap: 6px; }
.mini-contacts a { color: #686868; text-decoration: none; }
.mini-contacts a:hover { color: var(--accent); }
.mini-contacts .green a, .mini-contacts .green .icon { color: var(--green); }
.mini-contacts img { margin-right: 4px; }

.soc-ico { display: flex; flex-wrap: wrap; gap: 5px; }
.soc-ico a {
  width: 27px; height: 27px; border-radius: 50%; border: 1px solid rgba(104, 104, 104, .8); color: #686868;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: all .2s;
}
.soc-ico a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ testata */
.header-holder { min-height: 110px; }
#header {
  background: var(--header) url('../img/header-bg.png') repeat;
  color: #fff;
  position: relative;
  z-index: 50;
}
#header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 20px; }
.branding { display: block; flex: 0 0 auto; }
.branding .logo-mini { display: none; }
#navigation { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.main-nav, .sub-nav { list-style: none; margin: 0; padding: 0; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 2px; }
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > .nav-label {
  display: block; color: #fff; font: 400 15px/23px var(--head-font); padding: 6px 11px 7px; border-radius: 4px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.main-nav > li:hover > a, .main-nav > li:hover > .nav-label, .main-nav > li:focus-within > a, .main-nav > li:focus-within > .nav-label {
  background: rgba(255, 255, 255, .12);
}
.main-nav > li.act > a, .main-nav > li.act > .nav-label { background: var(--accent); }
.sub-toggle { display: none; }
.sub-nav {
  position: absolute; top: 100%; left: 0; width: 240px; padding: 10px 0; margin-top: 2px;
  background: rgba(255, 255, 255, .97); box-shadow: 0 0 4px rgba(0, 0, 0, .2); border-radius: 0 0 4px 4px;
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.sub-nav .sub-nav { top: -10px; left: 100%; margin: 0 0 0 1px; border-radius: 4px; }
li:hover > .sub-nav, li:focus-within > .sub-nav, li.open > .sub-nav { visibility: visible; opacity: 1; transform: none; }
.main-nav > li:last-child > .sub-nav, .main-nav > li:nth-last-child(2) > .sub-nav { left: auto; right: 0; }
.sub-nav li { position: relative; }
.sub-nav a, .sub-nav .nav-label {
  display: block; padding: 7px 30px 7px 15px; font: 13px/18px var(--body-font); color: rgba(55, 58, 65, .75);
  text-decoration: none; cursor: pointer;
}
.sub-nav .has-sub > a::after, .sub-nav .has-sub > .nav-label::after { content: '›'; position: absolute; right: 15px; }
.sub-nav a:hover, .sub-nav .nav-label:hover, .sub-nav .act > a { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 4px; font-size: 20px; padding: 6px 10px; cursor: pointer; }

/* testata fissa dopo lo scorrimento (come il "floating menu" del vecchio tema) */
#header.is-fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, .3); animation: drop .25s ease-out; }
#header.is-fixed .wrap { min-height: 70px; }
#header.is-fixed .logo { display: none; }
#header.is-fixed .logo-mini { display: block; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

/* ------------------------------------------------------------------ slideshow della home */
.home-slider { position: relative; background: var(--light); overflow: hidden; }
.home-slider .slides { position: relative; aspect-ratio: 1583 / 594; width: 100%; } /* come il vecchio: proporzioni delle foto */
.home-slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; visibility: hidden; }
.home-slider .slide.is-active { opacity: 1; visibility: visible; }
.home-slider .slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-slider figcaption {
  position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 0 120px 0 20px;
}
.home-slider figcaption a {
  color: #fff; text-decoration: none; background: #790000; text-shadow: 0 1px 1px #050505;
  font: 300 clamp(16px, 2.5vw, 36px)/1.25 var(--head-font); padding: 2px 10px;
}
.home-slider figcaption a:hover { background: #9b0000; }
.slider-thumbs { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.slider-thumbs button {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .7);
  cursor: pointer; background: #fff; transition: all .3s; opacity: .8;
}
.slider-thumbs button.is-active { width: 76px; height: 76px; border-color: var(--accent); opacity: 1; }
.slider-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.slider-pause {
  position: absolute; left: 15px; bottom: 15px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .35); color: #fff; font: bold 11px/30px var(--body-font); cursor: pointer;
}
.home-slider::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

/* ------------------------------------------------------------------ titolo pagina */
.page-title { background: var(--stripe); padding: 28px 0 20px; text-align: center; }
.page-title h1 { margin: 0 0 6px; }
.breadcrumbs { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--heading); display: flex; flex-wrap: wrap; justify-content: center; }
.breadcrumbs li + li::before { content: '›'; margin: 0 8px; color: var(--accent); }
.breadcrumbs a { color: var(--heading); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ contenuti */
#main { padding: 30px 0 40px; }
.is-home #main { padding-top: 10px; }
.entry::after { content: ''; display: block; clear: both; }
.row { display: flex; flex-wrap: wrap; margin-left: -20px; margin-right: -20px; }
.col { padding: 0 20px; width: 100%; min-width: 0; }
.col::after { content: ''; display: block; clear: both; }
@media (min-width: 768px) {
  .c1 { width: 8.333%; } .c2 { width: 16.666%; } .c3 { width: 25%; } .c4 { width: 33.333%; }
  .c5 { width: 41.666%; } .c6 { width: 50%; } .c7 { width: 58.333%; } .c8 { width: 66.666%; }
  .c9 { width: 75%; } .c10 { width: 83.333%; } .c11 { width: 91.666%; } .c12 { width: 100%; }
}
.gap { clear: both; }
.accent { color: var(--accent); }
.alignleft { float: left; margin: 0 15px 10px 0; }
.alignright { float: right; margin: 0 0 10px 15px; }
.aligncenter { display: block; margin: 0 auto 10px; text-align: center; }
figure { margin: 0 0 10px; }
.single-img img { display: block; }
.single-img.aligncenter img { margin: 0 auto; }
.single-img.framed { padding: 10px; background: #fff; border: 1px solid var(--divider); }
.single-img.media-box { width: 100%; }
.single-img a.lb, .gallery a, .carousel a, .teaser-img a { display: block; position: relative; overflow: hidden; }
a.lb::after, .teaser-img a::after {
  content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .25s;
}
a.lb:hover::after, .teaser-img a:hover::after { opacity: 1; }

/* fasce a tutta larghezza (stripe del vecchio tema) */
.stripe { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: var(--stripe) center / auto; clear: both; }
.stripe > .wrap { padding-top: 0; }

/* pulsanti */
.btn {
  display: inline-block; background: var(--accent) linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, .1));
  color: #fff !important; border: 0; border-radius: 7px; font: 400 13px/32px var(--head-font); padding: 0 12px 2px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); text-decoration: none; cursor: pointer; transition: background-color .2s;
  vertical-align: middle; margin: 2px 0;
}
.btn:hover { background-color: var(--accent-dark); }
.btn-s { font-size: 12px; line-height: 26px; padding: 0 10px 1px; }
.btn-l { font-size: 16px; line-height: 44px; padding: 0 20px 2px; margin: 4px 6px; }
.btn-ghost { background: #fff; color: var(--heading) !important; box-shadow: inset 0 0 0 1px var(--divider); }
.btn-ghost:hover { background: var(--light); }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* titolo su separatore */
.fancy-sep { display: flex; align-items: center; gap: 0; margin: 10px 0 20px; font-size: 15px; }
.fancy-sep::before, .fancy-sep::after { content: ''; flex: 1; border-top: 1px solid var(--sep, var(--divider)); }
.fancy-title { padding: 2px 15px; border-radius: 4px; color: var(--heading); font-family: var(--head-font); }

/* teaser (immagine + testo) */
.teaser { margin-bottom: 20px; }
.teaser.framed {
  background: rgba(55, 58, 65, .04); box-shadow: inset 0 0 0 1px rgba(218, 222, 225, .7); border-radius: var(--radius); padding-top: 20px;
}
.teaser-img img { width: 100%; display: block; }
.teaser-content { padding: 15px 0 5px; }
.teaser.framed .teaser-img { padding: 0 20px 20px; }
.teaser.framed .teaser-content { padding: 0 20px 15px; margin-top: -5px; }
.teaser.framed.img-full { padding-top: 0; border-radius: 0; overflow: hidden; }
.teaser.framed.img-full .teaser-img { padding: 0 0 20px; }

/* fisarmonica */
.accordion details { border-bottom: 1px solid var(--divider); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 10px 28px 10px 0; position: relative; color: var(--heading); font-size: 13px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
  border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 13px/13px var(--body-font); text-align: center;
}
.accordion details[open] > summary::after { content: '−'; }
.acc-body { padding: 0 0 12px; }

/* testimonianza */
.testimonial { border: 1px solid var(--divider); border-radius: var(--radius); padding: 20px; background: #fff; }
.t-content { margin-bottom: 15px; }
.t-vcard { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.t-vcard img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.t-vcard small { color: var(--accent); }

/* gallerie */
.gallery { display: grid; gap: 6px; margin-bottom: 20px; clear: both; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery.cols-6 { grid-template-columns: repeat(6, 1fr); }
.gallery a.big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.carousel { position: relative; margin: 10px calc(50% - 50vw); clear: both; }
.carousel-track { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track a { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-track img { height: 210px; width: auto; max-width: none; display: block; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 60px; border: 0;
  background: var(--accent); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; opacity: .85;
}
.carousel-prev { left: 0; border-radius: 0 4px 4px 0; }
.carousel-next { right: 0; border-radius: 4px 0 0 4px; }
.carousel-prev:hover, .carousel-next:hover { opacity: 1; }

/* contenuti esterni (YouTube, Google Maps) caricati solo con il consenso */
.ext-media { position: relative; background: #2b2f36; color: #e8e8e8; aspect-ratio: 16 / 9; margin-bottom: 15px; }
.ext-map { aspect-ratio: 3 / 2; max-height: 400px; width: 100%; }
.ext-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ext-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 15px; font-size: 13px; line-height: 18px; }
.ext-ph a { color: #9cc7ff; }
.ext-ph p { margin: 0 0 8px; }
.ext-video .ext-ph::before { content: '▶'; font-size: 34px; color: #ff4b4b; margin-bottom: 8px; }

/* scheda opera (portfolio) */
.project-nav { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 13px; }
.project-nav a, .project-nav span { padding: 2px 10px; border: 1px solid var(--divider); border-radius: 4px; text-decoration: none; }
.project-nav a::before { content: '‹ '; }
.project-nav .next::before { content: none; }
.project-nav .next::after { content: ' ›'; }
.project-nav .disabled { color: #c5c7ca; }

/* elenchi di news e opere */
.post-item { display: flex; gap: 30px; padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--divider); }
.post-media { flex: 0 0 270px; }
.post-media img { width: 270px; display: block; }
.post-body { flex: 1; min-width: 0; }
.post-body .entry-title { font-size: 22px; line-height: 28px; }
.post-date { font-size: 12px; color: #a9acb0; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.album-card { display: block; text-decoration: none; color: var(--heading); }
.album-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 10px; border-radius: 4px; }
.album-title { display: block; font: 18px/24px var(--head-font); }
.album-count { display: block; font-size: 12px; color: var(--text); }
.back-link { margin-top: 20px; }
.error-page { text-align: center; padding: 30px 0; font-size: 15px; }
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 24px; line-height: 30px; margin-top: 30px; }
.legal h3 { font-size: 17px; line-height: 22px; margin-top: 20px; }
.legal-updated { font-size: 12px; color: #a9acb0; }

/* widget comuni (contenuti e piè di pagina) */
.widget-title { font-size: 18px; line-height: 24px; color: var(--heading); margin: 0 0 20px; }
.recent-posts { list-style: none; margin: 0 0 15px; padding: 0; }
.recent-posts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 12px; line-height: 17px; }
.recent-posts li:first-child { padding-top: 0; }
.recent-posts .rp-thumb { flex: 0 0 60px; }
.recent-posts .rp-thumb img { border-radius: 50%; }
.recent-posts a { color: var(--heading); text-decoration: none; }
.recent-posts a:hover { color: var(--accent); }
.recent-posts time { display: block; color: var(--heading); font-weight: bold; font-size: 11px; margin-top: 3px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 15px; }
.contact-info li { padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 12px; line-height: 18px; }
.contact-info .label { color: var(--heading); font-weight: bold; }
.contact-info .green { color: var(--green); }

/* ------------------------------------------------------------------ moduli */
.contact-form { max-width: 600px; margin-bottom: 20px; }
.form-breve { max-width: none; }
.form-grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.field { width: 100%; padding: 0 8px 12px; }
@media (min-width: 560px) { .field.half { width: 50%; } }
.field label { display: block; font-size: 13px; color: var(--heading); margin-bottom: 3px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 3px; font: 13px/18px var(--body-font); color: #333; background: #fff;
}
.form-breve input[type=text], .form-breve input[type=email], .form-breve input[type=tel], .form-breve textarea { background: #fdfdfd; }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form .is-invalid { border-color: var(--red) !important; }
.field-error { display: block; color: var(--red); font-size: 12px; line-height: 16px; margin-top: 3px; }
.field-check { display: flex; align-items: flex-start; gap: 8px; }
.field-check input { margin-top: 4px; flex: 0 0 auto; }
.field-check label { font-size: 12px; line-height: 17px; margin: 0; flex: 1; min-width: 0; }
.field-check .field-error { flex-basis: 100%; }
.field-check { flex-wrap: wrap; }
.form-submit { display: flex; align-items: center; gap: 12px; }
.form-spinner { width: 18px; height: 18px; border: 2px solid var(--divider); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .form-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-response { margin-top: 12px; font-size: 13px; }
.form-response:empty { display: none; }
.form-response.is-ok { background: #59a80f; color: #fff; padding: 8px 12px; border-radius: 3px; }
.form-response.is-error { background: #fdecea; color: var(--red); padding: 8px 12px; border-radius: 3px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ piè di pagina (misure dei widget del vecchio tema) */
#footer { background: var(--light); border-top: 1px solid rgba(218, 222, 225, .75); padding: 50px 0 20px; }
#footer .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
#footer .widget { margin-bottom: 30px; }
#footer .widget-title { font-size: 18px; line-height: 22px; text-transform: uppercase; margin: 0 0 20px; }
#footer a { color: var(--text); text-decoration: none; }
#footer a:hover { color: var(--accent); }
#footer .btn { color: #fff; }
#footer .accordion details, #footer .recent-posts li, #footer .contact-info li { border: 0; padding: 0; }
#footer .accordion details + details, #footer .contact-info li + li {
  border-top: 1px solid rgba(218, 222, 225, .75); margin-top: 10px; padding-top: 9px;
}
#footer .accordion summary { padding: 0 25px 0 0; font-size: 14px; line-height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Ccircle cx='6.5' cy='6.5' r='5.96' fill='none' stroke='%233b8ced' stroke-width='1.08'/%3E%3Cpath fill='%233b8ced' d='M5.84 3.04h1.32v6.92H5.84zM3.04 5.84h6.92v1.32H3.04z'/%3E%3C/svg%3E") right center no-repeat; }
#footer .accordion details[open] > summary { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Ccircle cx='6.5' cy='6.5' r='5.96' fill='none' stroke='%233b8ced' stroke-width='1.08'/%3E%3Cpath fill='%233b8ced' d='M9.98 5.58 6.11 9.14 3.66 6.68l1.02-1.07 1.55 1.59 2.76-2.66z'/%3E%3C/svg%3E"); }
#footer .accordion summary::after { content: none; }
#footer .acc-body { padding: 10px 0 5px; }
#footer .acc-body p { margin: 0; }
#footer .recent-posts { margin: 0; padding-bottom: 5px; }
#footer .recent-posts li { align-items: center; gap: 20px; padding-bottom: 5px; font-size: 14px; line-height: 22px; }
#footer .recent-posts li + li { border-top: 1px solid rgba(218, 222, 225, .75); margin-top: 9px; padding-top: 15px; }
#footer .recent-posts a { color: var(--text); }
#footer .recent-posts a:hover { color: var(--accent); }
#footer .recent-posts time { font-size: 12px; line-height: 22px; font-weight: 400; margin: 0; }
#footer .contact-info { margin: 0; padding-bottom: 10px; }
#footer .contact-info li { font-size: 14px; line-height: 22px; }
#footer .contact-info .label { font-weight: 400; }
#footer .contact-info .green { color: var(--green); }
#footer .soc-ico { gap: 0; padding-top: 5px; }
#footer .soc-ico a { margin: 0 4px 4px 0; border-color: rgba(59, 140, 237, .8); color: var(--accent); }
#footer .soc-ico a:hover { color: #fff; }
.form-newsletter { margin: 0; }
.form-newsletter .form-grid { margin: 0; }
.form-newsletter .field { padding: 0 0 10px; }
.contact-form.form-newsletter input[type=email] {
  padding: 9px 10px 8px; border-color: #e0e0e0; border-radius: 6px; font: 14px/22px var(--body-font); color: #7a7a7a;
}
#bottom-bar { background: var(--light); border-top: 1px solid rgba(71, 73, 80, .12); font-size: 12px; line-height: 22px; color: var(--text); }
#bottom-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 75px; }
.bottom-logo { margin: 10px 0; }
#bottom-bar a, #bottom-bar .link-button { color: var(--text); text-decoration: none; }
#bottom-bar a:hover, #bottom-bar .link-button:hover { color: var(--accent); }
.copyright { flex: 1; }
.bottom-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; margin-left: 10px; }
.sitemap-menu { position: relative; }
.sitemap-toggle { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 4px 0; }
.sitemap-toggle .icon-chevron { font-size: 9px; }
.sitemap-menu ul {
  position: absolute; bottom: 100%; right: 0; width: 260px; list-style: none; margin: 0 0 6px; padding: 10px 0;
  background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .2); border-radius: 4px; z-index: 40;
}
.sitemap-menu li a { display: block; padding: 5px 15px; text-decoration: none; color: rgba(55, 58, 65, .75) !important; }
.sitemap-menu li a:hover { color: var(--accent) !important; }
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(59, 140, 237, .85);
  color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; z-index: 30;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ visualizzatore foto */
.lightbox { position: fixed; inset: 0; background: rgba(11, 11, 11, .9); z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; font-size: 40px; line-height: 1; padding: 10px; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 15px; font-size: 26px !important; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 15px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 12px; }

/* ------------------------------------------------------------------ cookie */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; width: 400px; max-width: calc(100% - 40px); background: #fff;
  color: #555; border-radius: 8px; box-shadow: 0 4px 24px rgba(0, 0, 0, .2); padding: 16px 18px 14px; font-size: 13px; line-height: 19px;
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-title { font: 600 15px/20px var(--head-font); color: var(--heading); margin: 0 0 6px; padding-right: 20px; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cookie-actions .btn { margin: 0; }
.cookie-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: #888; cursor: pointer; padding: 4px; font-size: 14px; }
.cookie-modal { position: fixed; inset: 0; z-index: 160; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-box { position: relative; background: #fff; border-radius: 8px; width: 540px; max-width: 100%; max-height: 90vh; overflow: auto; padding: 22px 24px; font-size: 13px; line-height: 19px; color: #555; }
.cookie-modal h2 { font-size: 20px; line-height: 26px; margin-bottom: 15px; }
.cookie-cat { border: 1px solid var(--divider); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; }
.cookie-cat p { margin: 6px 0 0; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; color: var(--heading); }
.cookie-always { font-size: 12px; color: var(--green); }
.cookie-note { font-size: 12px; }
.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: #ccc; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { left: 19px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .branding .logo { width: 260px; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 20px; }
  .header-holder { min-height: 0; }
  #header.is-fixed { position: relative; animation: none; box-shadow: none; }
  #header.is-fixed .logo { display: block; }
  #header.is-fixed .logo-mini { display: none; }
  #header .wrap { min-height: 80px; flex-wrap: wrap; }
  .branding .logo { width: 220px; }
  .nav-toggle { display: block; }
  #navigation { display: none; width: 100%; flex-basis: 100%; padding-bottom: 15px; }
  #navigation.is-open { display: block; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav li { position: relative; }
  .main-nav > li > a, .main-nav > li > .nav-label { padding: 9px 44px 9px 10px; }
  .sub-nav, .sub-nav .sub-nav {
    position: static; width: auto; visibility: visible; opacity: 1; transform: none; display: none; box-shadow: none;
    background: rgba(255, 255, 255, .08); margin: 0; border-radius: 4px; padding: 4px 0;
  }
  li:hover > .sub-nav, li:focus-within > .sub-nav { display: none; }
  li.open > .sub-nav { display: block; }
  .sub-nav a, .sub-nav .nav-label { color: #fff; padding-left: 20px; }
  .sub-nav .sub-nav a { padding-left: 34px; }
  .sub-nav .has-sub > a::after, .sub-nav .has-sub > .nav-label::after { content: none; }
  .sub-toggle {
    display: block; position: absolute; right: 0; top: 2px; width: 40px; height: 36px; background: none; border: 0;
    color: #fff; cursor: pointer; font-size: 12px;
  }
  li.open > .sub-toggle .icon { transform: rotate(180deg); }
  .home-slider figcaption { padding: 0 20px; bottom: 12%; }
  .slider-thumbs { right: 50%; top: auto; bottom: 10px; transform: translateX(50%); flex-direction: row; }
  .slider-thumbs button, .slider-thumbs button.is-active { width: 12px; height: 12px; border-width: 2px; }
  .slider-thumbs img { display: none; }
  #footer .wrap { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 36px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 34px; }
}
@media (max-width: 767px) {
  #top-bar .wrap { flex-direction: column; padding-top: 6px; padding-bottom: 6px; }
  .mini-contacts { justify-content: center; }
  .page-title h1 { font-size: 30px; line-height: 36px; }
  .alignleft, .alignright { float: none; margin: 0 auto 10px; display: block; }
  .single-img { max-width: 100% !important; }
  .gallery.cols-4, .gallery.cols-5, .gallery.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .post-item { flex-direction: column; gap: 15px; }
  .post-media, .post-media img { width: 100%; flex-basis: auto; }
  #bottom-bar .wrap { flex-direction: column; text-align: center; padding-bottom: 12px; }
  .bottom-nav { justify-content: center; margin-left: 0; }
  .sitemap-menu ul { right: 50%; transform: translateX(50%); }
  .carousel-track img { height: 160px; }
  table { font-size: 12px; }
  td, th { padding: 4px; }
}
@media (max-width: 560px) {
  #footer .wrap { grid-template-columns: 1fr; }
  .gallery.cols-3, .gallery.cols-4, .gallery.cols-5, .gallery.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .home-slider .slides { aspect-ratio: 4 / 3; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
  .btn-l { margin: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
