/* ALC Arte legno composito */
@font-face { font-family: Lato; font-weight: 300; font-style: normal; font-display: swap; src: url(../Fonts/lato-300.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url(../Fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-style: italic; font-display: swap; src: url(../Fonts/lato-400i.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url(../Fonts/lato-700.woff2) format("woff2"); }

:root {
  --blue: #005daa;
  --blue-dark: #004a88;
  --orange: #ff9446;
  --orange-text: #c8590e;
  --grey-page: #dcdcdc;
  --grey-line: #d2d2d2;
  --text: #4a4a4a;
  --white: #fff;
  --gutter: 16px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 Lato, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--grey-page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 400; }
h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); color: var(--orange-text); padding-bottom: .3em; border-bottom: 1px solid var(--blue); font-weight: 300; }
h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); color: var(--orange-text); }
h3 { font-size: 1.25rem; color: var(--blue); }
h4 { font-size: 1.08rem; color: var(--blue); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
table { border-collapse: collapse; }
blockquote { margin: 0 0 1em; padding: .2em 0 .2em 1.2em; border-left: 6px solid #e4e4e4; }
blockquote p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue); color: var(--white); padding: 8px 14px; }
.skip-link:focus { top: 8px; color: var(--white); }

.btn { display: inline-block; padding: .75em 1.8em; text-decoration: none; text-align: center; font-size: 1.05rem; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn--accent { background: var(--orange); color: #2a1a0c; }
.btn--accent:hover { background: var(--white); color: var(--blue); }
.btn--light { background: var(--white); color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
.btn--light:hover { color: var(--blue-dark); box-shadow: 0 6px 16px rgb(0 0 0 / .22); }

/* Testata */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--blue); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo img { width: 92px; height: auto; }

.nav-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; background: none; color: var(--blue); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 3px; background: currentColor; transition: transform .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); background: var(--blue); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); background: var(--blue); }

.main-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav a { display: block; color: var(--blue); text-decoration: none; }
.main-nav__item > a { padding: 10px 10px; border-bottom: 2px solid transparent; }
.main-nav__item > a:hover, .main-nav__item.is-active > a { color: var(--orange-text); border-bottom-color: var(--orange); }
.main-nav__expand { display: none; }
.main-nav__sub { list-style: none; margin: 0; padding: 0; background: var(--white); }
.main-nav__sub a { padding: 9px 16px; white-space: nowrap; }
.main-nav__sub a:hover, .main-nav__sub .is-active > a { background: var(--blue); color: var(--white); }

@media (min-width: 1101px) {
  .main-nav__item.has-children > a::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
  .main-nav__sub { position: absolute; left: 0; top: 100%; min-width: 210px; box-shadow: 0 8px 18px rgb(0 0 0 / .18); border-top: 3px solid var(--blue); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s; }
  .main-nav__item:hover > .main-nav__sub, .main-nav__item:focus-within > .main-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .main-nav__item:last-child > .main-nav__sub { left: auto; right: 0; }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .site-logo img { width: 76px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--white); border-bottom: 3px solid var(--blue); box-shadow: 0 10px 20px rgb(0 0 0 / .18); }
  .main-nav.is-open { display: block; }
  .main-nav__list { display: block; padding: 4px 0; }
  .main-nav__item { border-bottom: 1px solid #eee; }
  .main-nav__item > a { padding: 13px 64px 13px var(--gutter); border-bottom: 0; }
  .main-nav__expand { display: block; position: absolute; right: 0; top: 0; width: 56px; height: 50px; border: 0; background: none; color: var(--blue); cursor: pointer; }
  .main-nav__expand::before { content: ""; position: absolute; left: 22px; top: 18px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .main-nav__expand[aria-expanded="true"]::before { transform: translateY(5px) rotate(225deg); }
  .main-nav__sub { display: none; background: #f4f6f8; }
  .main-nav__sub.is-open { display: block; }
  .main-nav__sub a { padding: 12px var(--gutter) 12px 32px; white-space: normal; }
}

/* Slider */
.slider { position: relative; overflow: hidden; background: #222; aspect-ratio: 1920 / 820; min-height: 340px; width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__caption { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); width: min(92%, 560px); text-align: center; color: var(--white); padding: 18px 20px; background: rgb(0 0 0 / .5); }
.slide__caption h2 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 700; margin-bottom: .2em; }
.slide__caption p { font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 300; margin-bottom: .8em; }
.slider__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; background: rgb(0 0 0 / .4); cursor: pointer; }
.slider__nav::before { content: ""; position: absolute; left: 16px; top: 14px; width: 14px; height: 14px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.slider__nav:hover { background: var(--blue); }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider__nav--next::before { left: 12px; transform: rotate(225deg); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.slider__dots button { width: 28px; height: 28px; padding: 9px; background: none; border: 0; cursor: pointer; }
.slider__dots button::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .6); }
.slider__dots button[aria-current="true"]::before { background: var(--orange); }
@media (max-width: 700px) {
  .slider { aspect-ratio: 1 / 1; }
  .slider__nav { display: none; }
  .slide__caption { bottom: 40px; }
}

/* Home */
.home-boxes { padding: 40px 0; }
.home-boxes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.home-box { display: flex; flex-direction: column; background: var(--white); box-shadow: 0 2px 8px rgb(0 0 0 / .1); transition: transform .2s, box-shadow .2s; }
.home-box:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgb(0 0 0 / .2); }
.home-box__text { flex: 1; padding: 18px 20px 12px; }
.home-box h2 { margin-bottom: .4em; }
.home-box p { font-style: italic; margin-bottom: .8em; }
.home-box__link { font-size: 1.25rem; font-style: italic; text-decoration: none; }
.home-box img { width: 100%; }
.home-cta { background: var(--orange); color: #2a1a0c; text-align: center; padding: 36px 0; }
.home-cta h3 { color: #2a1a0c; font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 400; max-width: 860px; margin-inline: auto; }
.home-strip { height: clamp(120px, 20vw, 240px); background: url(../Images/bg-wide.jpg) center / cover no-repeat; }

/* Pagine interne */
.page-banner img { width: 100%; height: clamp(120px, 20vw, 240px); object-fit: cover; }
.page-body { padding-top: 20px; padding-bottom: 44px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 16px; padding: 0; font-size: .92rem; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin: 0 .5em; }
.breadcrumb a { color: inherit; }
.page-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.page-grid--wide { grid-template-columns: minmax(0, 1fr); }
.page-main, .page-side { background: var(--white); border-top: 3px solid var(--blue); padding: 24px; }
.page-main { min-width: 0; overflow-wrap: anywhere; }
.page-main > .frame { margin-bottom: 1.4em; }
.page-side > .frame { margin-bottom: 1.2em; }
.page-side img { margin-inline: auto; }
@media (max-width: 860px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-main, .page-side { padding: 18px var(--gutter); }
}

.side-menu { margin-bottom: 1.2em; }
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: block; padding: 9px 2px; text-decoration: none; border-bottom: 1px solid var(--grey-line); }
.side-menu .is-active a { color: var(--orange-text); font-weight: 700; }

.frame-layout-1 { background: var(--blue); color: var(--white); padding: 18px; }
.frame-layout-1 a { color: var(--white); }
.frame-layout-1 p:last-child { margin: 0; }
.frame-layout-1 .btn-contact, .frame-layout-1 p:last-child a { display: block; background: var(--orange); color: #2a1a0c; text-align: center; padding: .6em; text-decoration: none; }
.frame-layout-1 p:last-child a:hover { background: var(--white); color: var(--blue); }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery__item { display: block; overflow: hidden; background: #eee; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery__item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .9); padding: 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; background: rgb(255 255 255 / .15); color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--blue); }
.lightbox__close { right: 10px; top: 10px; }
.lightbox__prev { left: 10px; top: calc(50% - 24px); }
.lightbox__next { right: 10px; top: calc(50% - 24px); }

/* Mappa */
.map-frame { width: 100%; height: 450px; border: 0; display: block; }
.map-link { margin-top: .6em; }
@media (max-width: 700px) { .map-frame { height: 320px; } }

/* Footer */
.site-footer { background: var(--blue); color: var(--white); font-size: .95rem; border-top: 3px solid var(--blue-dark); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffd0ad; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-top: 32px; padding-bottom: 28px; }
.site-footer p { margin-bottom: .6em; }
.site-footer td { padding: 1px 14px 1px 0; vertical-align: top; }
.site-footer .frame { margin: 0; }
.site-footer__legal { background: var(--blue-dark); padding: 12px 0 76px; }
@media (min-width: 1300px) { .site-footer__legal { padding-bottom: 12px; } }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; background: var(--orange); color: #2a1a0c; border: 0; cursor: pointer; box-shadow: 0 3px 10px rgb(0 0 0 / .3); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--blue); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .to-top, .slider__nav, .page-side { display: none; }
  body { background: #fff; }
}
