/* Art & Giardini Sagl – foglio di stile unico */
:root {
  --green: #008846;
  --green-dark: #006b37;
  --green-soft: #e8f4ed;
  --yellow: #f0e94d;
  --brown: #96806b;
  --ink: #2b2f2c;
  --muted: #5f6661;
  --line: #e3e6e3;
  --bg: #ffffff;
  --bg-alt: #f5f6f3;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo img { height: 48px; width: auto; }
@media (min-width: 992px) { .logo img { height: 56px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .sub-toggle {
  display: block; color: var(--ink); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; text-transform: uppercase;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); text-decoration: none; }
.main-nav .current > a, .main-nav a[aria-current="page"] { color: var(--green); }

/* mobile menu */
@media (max-width: 991.98px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    overflow-y: auto; padding: 8px 16px 32px; display: none;
  }
  .nav-open .main-nav { display: block; }
  .nav-open { overflow: hidden; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); position: relative; }
  .main-nav > ul > li > a { padding: 14px 52px 14px 4px; }
  .main-nav .sub-toggle {
    position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .main-nav .sub-toggle::after {
    content: ""; display: block; width: 9px; height: 9px; margin: auto;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
  }
  .main-nav li.open > .sub-toggle::after { transform: rotate(-135deg); }
  .main-nav .submenu { display: none; padding: 0 0 10px 12px; }
  .main-nav li.open > .submenu { display: block; }
  .main-nav .submenu a { text-transform: none; font-weight: 400; padding: 9px 4px; font-size: 1rem; }
}

/* desktop menu */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .main-nav > ul { display: flex; gap: 4px; }
  .main-nav > ul > li { position: relative; }
  .main-nav > ul > li > a { padding: 26px 14px; }
  .main-nav .sub-toggle { display: none; }
  .main-nav .submenu {
    position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
    border-top: 3px solid var(--green); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
  .main-nav .submenu a { text-transform: none; font-weight: 400; padding: 8px 18px; font-size: .95rem; }
  .main-nav .submenu a:hover { background: var(--green-soft); }
}

/* ---------- Page banner ---------- */
.banner {
  position: relative; min-height: 200px; display: flex; align-items: flex-end;
  background: var(--green-dark) center / cover no-repeat; color: #fff;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
.banner .wrap { position: relative; padding-top: 48px; padding-bottom: 28px; }
.banner .kicker { display: inline-block; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 3px; margin-bottom: 10px; }
.banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
@media (min-width: 768px) { .banner { min-height: 300px; } }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 14px 0 0; margin: 0; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b5bab6; }
.breadcrumb a { color: var(--muted); }

/* ---------- Layout pagine interne ---------- */
.page { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 992px) { .page { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 36px; } }
.page-full { padding-top: 28px; padding-bottom: 56px; }
.content > *:last-child { margin-bottom: 0; }
.content img.float { margin: 0 0 1rem; border-radius: var(--radius); }
@media (min-width: 600px) {
  .content img.float-left { float: left; margin: 4px 24px 12px 0; max-width: 45%; }
  .content img.float-right { float: right; margin: 4px 0 12px 24px; max-width: 45%; }
}
.content::after { content: ""; display: table; clear: both; }
.content .lead { font-size: 1.15rem; color: var(--green-dark); font-weight: 600; }
.content iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

.sidebar { display: grid; gap: 24px; align-content: start; }
.side-menu { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-menu h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0; padding: 12px 18px; background: var(--bg-alt); color: var(--muted); }
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: block; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--ink); }
.side-menu a:hover { background: var(--green-soft); text-decoration: none; }
.side-menu a[aria-current="page"] { color: var(--green); font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
@media (max-width: 991.98px) { .side-menu { order: 2; } }

.cta-box { background: var(--green); color: #fff; border-radius: var(--radius); padding: 26px 22px; }
.cta-box .quote { font-size: 1.25rem; line-height: 1.35; margin: 0 0 18px; }
.cta-box .quote b { color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  border-radius: 999px; font-weight: 700; background: var(--yellow); color: var(--ink); border: 0; cursor: pointer;
}
.btn:hover, .btn:focus-visible { text-decoration: none; background: #fff36a; }
.btn-outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Gallerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 1rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 11, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfd5d0; font-size: .9rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.team figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team figcaption { padding: 12px 14px 16px; }
.team strong { display: block; font-size: 1.05rem; }
.team span { color: var(--muted); font-size: .92rem; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 24px; }
.news-card { display: grid; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.news-card:last-child { border-bottom: 0; }
@media (min-width: 600px) { .news-card { grid-template-columns: 220px 1fr; align-items: start; } }
.news-card .thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card h2 { font-size: 1.25rem; margin-bottom: .35em; }
.news-card h2 a { color: var(--ink); }
.news-card .date, .news-date { color: var(--muted); font-size: .875rem; margin-bottom: .4em; }
.more { font-weight: 600; }
.news-figure { margin: 1.5rem 0; }
.news-figure img { border-radius: var(--radius); max-height: 640px; width: auto; }
.back-link { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.contact-card dt { font-weight: 600; color: var(--muted); }
.contact-card dd { margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 1rem; }
.logos img { max-height: 70px; width: auto; }
.map { margin-top: 32px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* ---------- Home ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--green-dark); }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 70%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); margin-bottom: .2em; }
.hero h1 span { color: var(--yellow); }
.hero-text { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); max-width: 34ch; min-height: 3.2em; margin-bottom: 1.4em; }
.hero-dots { position: absolute; z-index: 2; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.active { background: var(--yellow); border-color: var(--yellow); }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > img, .card > a > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--ink); }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; }

.feature { position: relative; background: var(--green-dark) center / cover no-repeat; padding: 64px 0; }
.feature::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.feature-box { position: relative; background: #fff; border-radius: var(--radius); padding: 26px; max-width: 460px; margin-left: auto; box-shadow: var(--shadow); display: grid; gap: 16px; }
.feature-box img { border-radius: var(--radius); width: 100%; }
.feature-box h4 { color: var(--muted); font-weight: 400; margin: 0; }
.feature-box h3 { font-size: 1.6rem; color: var(--green); margin: 0; }

.tiles { display: grid; gap: 16px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--radius); overflow: hidden; background: center / cover no-repeat; color: #fff; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); transition: background .2s; }
.tile:hover::before { background: linear-gradient(180deg, rgba(0,136,70,.2), rgba(0,0,0,.65)); }
.tile span { position: relative; padding: 18px 20px; font-size: 1.3rem; font-weight: 700; }
.tile:hover { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2621; color: #c9d0ca; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; padding: 48px 0 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.site-footer p { margin: 0 0 .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-social img { width: 30px; height: 30px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .85rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer-bottom nav a { margin-right: 14px; color: #c9d0ca; }

.sitemap ul { list-style: none; padding-left: 0; }
.sitemap ul ul { padding-left: 18px; margin: 4px 0 10px; border-left: 2px solid var(--green-soft); }
.sitemap li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
