@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Urbanist:wght@400;500;600;700&display=swap');

:root {
  --paper: #f7f5f0;
  --surface: #fffefa;
  --ink: #282a24;
  --muted: #72766d;
  --olive: #3b4b3d;
  --olive-light: #e9ece5;
  --line: #e2e1d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Urbanist', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #b49061; outline-offset: 4px; }
.container { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 24px; color: #8d977f; font-size: 11px; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }

.site-header { min-height: 94px; padding: 0 max(48px, calc((100% - 1320px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); }
.wordmark { font: 500 34px/1 'Quicksand', Georgia, serif; letter-spacing: -.055em; text-decoration: none; }
.wordmark span { color: #8a6b48; }
.wordmark small { margin-left: 3px; font: 600 11px/1 'Urbanist', Arial, sans-serif; letter-spacing: 0; }
.site-header nav { display: flex; align-items: center; gap: 38px; }
.site-header nav a { color: #42473f; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.site-header nav a:hover { color: #a68054; }

.hero { position: relative; min-height: min(760px, calc(100svh - 94px)); color: #fff; background: #40392f url('/catalogo/atelier-hero.png') center / cover no-repeat; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,25,22,.68) 0%, rgba(32,32,27,.43) 35%, rgba(20,20,17,.09) 78%), linear-gradient(0deg, rgba(25,25,20,.27), transparent 24%); }
.hero-content { position: relative; padding-top: 86px; padding-bottom: 116px; }
.hero .eyebrow { color: #e4d8c6; }
.hero h1 { max-width: 780px; margin: 0; font: 400 clamp(68px, 8vw, 136px)/.96 'Quicksand', Georgia, serif; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 em { font-weight: 400; color: #e5d7be; }
.hero-copy { max-width: 470px; margin: 33px 0 38px; color: #f1eee6; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.hero-cta { width: fit-content; display: flex; align-items: center; gap: 36px; padding: 17px 21px; border: 1px solid rgba(255,255,255,.7); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; transition: background .2s, color .2s; }
.hero-cta:hover { background: #fff; color: var(--ink); }
.hero-cta span { font-size: 18px; line-height: 1; }
.hero-bottom { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.38); color: #ebe6dc; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.listing { padding-top: 134px; padding-bottom: 150px; scroll-margin-top: 20px; }
.listing-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.listing h2, .profile-section h2, .products-cta h2 { margin: 0; font: 400 clamp(42px, 5vw, 69px)/1.12 'Quicksand', Georgia, serif; letter-spacing: -.04em; }
.section-intro { margin: 23px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.search { position: relative; flex: 0 0 340px; }
.search::after { content: '⌕'; position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: #798071; font-size: 28px; pointer-events: none; }
.search input { width: 100%; padding: 18px 45px 18px 19px; border: 1px solid #d5d5ca; border-radius: 0; outline-color: #8b917e; background: transparent; color: var(--ink); font-size: 14px; }
.search input::placeholder { color: #93968d; }
.result-count { margin: 55px 0 24px; color: #777c70; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 38px; }
.card { min-width: 0; }
.card.is-pending { content-visibility: auto; contain-intrinsic-size: auto 360px; }
.site-header { position: relative; z-index: 30; }
.primary-nav { flex: 1; justify-content: center; }
.categories-menu summary { color: #42473f; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.categories-menu summary::-webkit-details-marker { display: none; }
.categories-menu summary::after { content: '⌄'; margin-left: 6px; font-size: 15px; }
.categories-panel { position: absolute; top: calc(100% - 1px); left: max(24px, calc((100% - 1320px)/2)); right: max(24px, calc((100% - 1320px)/2)); z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 30px; max-height: min(70vh, 620px); overflow: auto; padding: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.categories-panel section { min-width: 0; }
.categories-panel .sector-link { display: block; margin-bottom: 10px; color: var(--olive); font-size: 13px; letter-spacing: .02em; line-height: 1.35; }
.categories-panel ul { margin: 0; padding: 0; list-style: none; }
.categories-panel li a { display: block; padding: 5px 0; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.categories-panel li a:hover { color: var(--olive); text-decoration: underline; }
.language-nav { display: flex; flex: none; align-items: center; gap: 3px; max-width: 380px; overflow-x: auto; scrollbar-width: thin; }
.language-nav a { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 25px; padding: 5px 2px; border-radius: 4px; text-decoration: none; color: var(--muted); font: 700 8px/1 'Urbanist', Arial, sans-serif; }
.language-nav a:hover, .language-nav a[aria-current="page"] { background: var(--olive-light); color: var(--olive); }
.language-nav img { display: block; width: 20px; height: 14px; object-fit: cover; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; }
.active-filter { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.active-filter h2 { font-size: clamp(27px, 3vw, 40px); }
.active-filter a { color: var(--olive); font-size: 12px; }
.listing-directory { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 24px; }
.listing-directory .active-filter { grid-column: 1 / -1; }
.listing-results { min-width: 0; }
.directory-sidebar { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; padding: 10px 5px 10px 0; }
.directory-letters { display: grid; grid-template-columns: 1fr; gap: 2px; }
.directory-letters a { padding: 4px; color: var(--olive); text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.directory-letters a:hover { background: var(--olive-light); }
.listing-directory .card[id] { scroll-margin-top: 20px; }
.profile-page .categories-menu summary { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.profile-page .site-header .categories-panel a { color: #111; text-shadow: none; }
.profile-page .site-header .categories-panel a:hover { color: var(--olive); }
.profile-page .language-nav a { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.profile-page .language-nav a[aria-current="page"], .profile-page .language-nav a:hover { color: var(--olive); text-shadow: none; }
@media (max-width: 850px) {
  .listing-directory { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .directory-sidebar { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 0; }
  .directory-letters { display: grid; grid-template-columns: 1fr; gap: 1px; }
}
@media (max-width: 850px) {
  .site-header { flex-wrap: wrap; gap: 8px 12px; padding-block: 9px; }
  .primary-nav { justify-content: flex-end; gap: 12px !important; }
  .language-nav { order: 3; width: 100%; max-width: none; justify-content: center; }
  .categories-panel { left: 12px; right: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
}
@media (max-width: 620px) {
  .categories-menu summary, .primary-nav a { font-size: 9px; }
  .language-nav { justify-content: flex-start; }
  .language-nav a { width: 24px; }
  .categories-panel { grid-template-columns: 1fr; max-height: 65vh; }
  .profile-page .profile-heading { padding-top: 150px; }
  .profile-page .back-link { top: 145px; }
}
.card-image { display: block; position: relative; height: clamp(300px, 31vw, 430px); overflow: hidden; background: #e2e4dd; }
.card-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-image:hover img { transform: scale(1.045); }
.image-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #b4bcb0; font: italic 78px 'Quicksand', Georgia, serif; }
.card-body { padding: 28px 4px 0; }
.place { margin: 0 0 13px; color: #858a7f; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.card h3 { margin: 0; font: 400 clamp(28px, 2.7vw, 39px)/1.16 'Quicksand', Georgia, serif; letter-spacing: -.035em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: #8a6b48; }
.summary { max-width: 530px; min-height: 58px; margin: 19px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-link { display: flex; width: fit-content; align-items: center; gap: 30px; padding-bottom: 6px; border-bottom: 1px solid #a8a99f; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.card-link:hover { color: #8a6b48; }
.card-products { display: block; width: fit-content; margin-top: 20px; color: var(--olive); text-decoration: none; font-size: 12px; font-weight: 600; }
.card-products:hover { text-decoration: underline; }
.empty { margin: 70px 0; color: var(--muted); }
.more-wrap { display: flex; justify-content: center; margin-top: 90px; }
.load-more { min-width: 250px; padding: 20px 28px; border: 1px solid var(--olive); background: transparent; color: var(--olive); cursor: pointer; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; transition: background .2s,color .2s; }
.load-more span { margin-left: 28px; font-size: 17px; }
.load-more:hover { background: var(--olive); color: #fff; }

.profile-hero { position: relative; min-height: 560px; overflow: hidden; background: #3c493d; color: #fff; }
.profile-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-heading { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: end; padding-bottom: 70px; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.back-link { position: absolute; top: 44px; left: 0; color: #f4f4ee; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.profile-heading .eyebrow { color: #d5dcca; }
.profile-heading h1 { max-width: 920px; margin: 0; font: 400 clamp(55px, 7vw, 108px)/1 'Quicksand', Georgia, serif; letter-spacing: -.05em; text-wrap: balance; }
.profile-place { margin: 26px 0 0; color: #eceee9; font-size: 14px; letter-spacing: .07em; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(60px, 8vw, 150px); padding-top: 115px; padding-bottom: 150px; }
.profile-main { min-width: 0; }
.profile-logo { max-width: 240px; max-height: 120px; margin-bottom: 60px; }
.profile-logo img { max-height: 120px; object-fit: contain; }
.profile-lead { max-width: 790px; margin: 0 0 80px; font: 400 clamp(29px, 3vw, 42px)/1.4 'Quicksand', Georgia, serif; letter-spacing: -.025em; }
.profile-section { padding-top: 48px; margin-top: 75px; border-top: 1px solid var(--line); }
.profile-section h2 { margin-bottom: 35px; font-size: clamp(39px, 4vw, 59px); }
.prose { max-width: 740px; color: #535b53; font-size: 17px; line-height: 1.95; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.photo-grid a { display: block; aspect-ratio: 1.15; overflow: hidden; background: #e5e8e2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-grid a:hover img { transform: scale(1.045); }
.profile-aside { align-self: start; padding: 35px; border: 1px solid var(--line); background: var(--surface); }
.profile-aside h2 { margin: 0 0 26px; font: 400 31px 'Quicksand', Georgia, serif; }
.info-item { padding: 23px 0; border-top: 1px solid var(--line); }
.info-item span { color: #848a7e; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; font-weight: 700; }
.info-item p { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.info-item a { color: var(--olive); }
.button, .aside-button { display: inline-block; padding: 19px 22px; background: var(--olive); color: #fff; text-decoration: none; text-align: center; font-size: 12px; font-weight: 700; }
.button:hover, .aside-button:hover { background: #253628; }
.aside-button { display: block; margin-top: 28px; }
.products-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 100px; padding: 48px; background: var(--olive-light); }
.products-cta h2 { max-width: 480px; font-size: 38px; }
.products-cta p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.products-cta .button { flex: none; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 40px max(48px, calc((100% - 1320px)/2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--olive); text-decoration: none; }

@media (max-width: 950px) {
  .container { width: min(100% - 56px, 1320px); }
  .site-header { padding-inline: 28px; }
  .hero { min-height: 690px; }
  .profile-grid { grid-template-columns: 1fr; gap: 65px; }
  .profile-aside { order: -1; width: min(100%, 560px); }
  .products-cta { flex-direction: column; align-items: start; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .site-header { min-height: 75px; padding-inline: 18px; }
  .wordmark { font-size: 29px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 9px; letter-spacing: .07em; }
  .hero { min-height: 690px; background-position: 59% center; }
  .hero::before { background: linear-gradient(90deg, rgba(25,25,22,.78), rgba(25,25,22,.35)), linear-gradient(0deg, rgba(25,25,22,.4), transparent 35%); }
  .hero-content { padding-top: 30px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(62px, 13vw, 84px); }
  .hero-copy { font-size: 16px; }
  .hero-bottom { font-size: 9px; letter-spacing: .08em; }
  .listing { padding-top: 90px; padding-bottom: 100px; }
  .listing-head { flex-direction: column; align-items: stretch; gap: 38px; }
  .listing h2 { font-size: 48px; }
  .search { flex: auto; }
  .result-count { margin-top: 40px; }
  .cards { grid-template-columns: 1fr; gap: 65px; }
  .card-image { height: auto; aspect-ratio: 1.15; }
  .card-body { padding-top: 24px; }
  .summary { min-height: 0; }
  .more-wrap { margin-top: 70px; }
  .profile-hero, .profile-heading { min-height: 490px; }
  .profile-heading { padding-bottom: 50px; }
  .profile-heading h1 { font-size: clamp(48px, 12vw, 72px); }
  .profile-grid { padding-top: 60px; padding-bottom: 100px; }
  .profile-logo { margin-bottom: 40px; }
  .profile-lead { margin-bottom: 50px; }
  .profile-section { margin-top: 55px; }
  .photo-grid { gap: 10px; }
  .products-cta { padding: 30px; margin-top: 70px; }
  .products-cta h2 { font-size: 32px; }
  .products-cta .button { width: 100%; }
  .site-footer { padding: 30px 18px; font-size: 11px; }
}

/* Catalogo compatto: l'elenco inizia già nella prima schermata. */
.site-header { min-height: 66px; padding-inline: max(24px, calc((100% - 1320px)/2)); }
.wordmark { font-size: 29px; }
.site-header nav { gap: 25px; }
.hero { min-height: 268px; max-height: none; background-position: center 56%; }
.hero::before { background: linear-gradient(90deg, rgba(25,25,22,.78), rgba(25,25,22,.40) 52%, rgba(25,25,22,.08)); }
.hero-content { padding-top: 38px; padding-bottom: 49px; }
.hero .eyebrow { margin-bottom: 12px; }
.hero h1 { max-width: none; font-size: clamp(43px, 5vw, 68px); line-height: 1.05; }
.hero-copy { max-width: none; margin: 12px 0 0; font-size: 15px; }
.hero-bottom { padding: 8px 0; font-size: 10px; }
.listing { padding-top: 27px; padding-bottom: 70px; }
.listing-head { gap: 24px; align-items: center; }
.listing h2 { font-size: 33px; }
.section-intro { margin: 4px 0 0; font-size: 12px; }
.search { flex-basis: 290px; }
.search input { padding: 11px 38px 11px 13px; font-size: 12px; background: var(--surface); }
.search::after { right: 12px; font-size: 23px; }
.result-count { margin: 13px 0 12px; font-size: 10px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
.card { background: var(--surface); border: 1px solid var(--line); }
.card-image { height: 153px; }
.card-body { padding: 11px 12px 13px; }
.place { margin-bottom: 5px; font-size: 9px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 { min-height: 43px; font-size: 19px; line-height: 1.13; }
.card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-link { gap: 7px; margin-top: 11px; padding-bottom: 3px; font-size: 9px; letter-spacing: .06em; }
.card-products { width: 100%; margin-top: 10px; padding: 9px 7px; background: var(--olive-light); text-align: center; font-size: 10px; }
.card-products:hover { background: #dce4d8; text-decoration: none; }

/* Home: rinnovi e nuove certificazioni in una prima fascia bronzo, senza titolo. */
.cards-standard {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid rgba(40, 42, 36, .13);
}
.card-featured {
  border-color: #8b542d;
  background: #fffdf9;
  box-shadow: 0 7px 20px rgba(139, 84, 45, .20);
}
.card-featured h3 a,
.card-featured .card-link {
  color: #80502e;
}
.profile-hero, .profile-heading { min-height: 350px; }
.profile-heading { padding-bottom: 36px; }
.profile-heading h1 { font-size: clamp(48px, 5vw, 75px); }
.profile-grid { gap: 55px; padding-top: 50px; padding-bottom: 75px; }
.profile-logo { margin-bottom: 28px; }
.profile-lead { margin-bottom: 36px; font-size: 30px; }
.profile-section { margin-top: 35px; padding-top: 28px; }
.profile-section h2 { margin-bottom: 18px; font-size: 39px; }
.prose { font-size: 15px; line-height: 1.7; }
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-aside { padding: 22px; }
.info-item { padding: 13px 0; }
.products-cta { margin-top: 42px; padding: 28px; }

@media (max-width: 1150px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-image { height: 145px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 24px); }
  .site-header { min-height: 58px; padding-inline: 12px; }
  .wordmark { font-size: 25px; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: 9px; }
  .hero { min-height: 207px; background-position: 60% center; }
  .hero-content { padding-top: 26px; padding-bottom: 42px; }
  .hero .eyebrow { margin-bottom: 9px; font-size: 9px; }
  .hero h1 { font-size: clamp(35px, 8.4vw, 50px); }
  .hero-copy { max-width: 240px; margin-top: 9px; font-size: 12px; line-height: 1.35; }
  .hero-bottom { font-size: 8px; letter-spacing: 0; }
  .listing { padding-top: 19px; }
  .listing-head { flex-direction: row; align-items: end; flex-wrap: wrap; gap: 9px; }
  .listing h2 { font-size: 28px; }
  .section-intro { font-size: 11px; }
  .search { flex: 1 0 100%; }
  .search input { padding-block: 9px; }
  .result-count { margin: 10px 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-image { height: 115px; aspect-ratio: auto; }
  .card-body { padding: 9px; }
  .place { font-size: 8px; }
  .card h3 { min-height: 37px; font-size: 16px; }
  .card-link { margin-top: 7px; font-size: 9px; }
  .card-products { margin-top: 7px; padding: 7px 3px; font-size: 9px; }
  .cards-standard { margin-top: 34px; padding-top: 34px; }
  .profile-hero, .profile-heading { min-height: 305px; }
  .profile-heading h1 { font-size: clamp(40px, 9vw, 60px); }
  .profile-grid { padding-top: 30px; }
  .profile-lead { font-size: 25px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Scheda: fotografia a pieno viewport con marchio nell'angolo inferiore sinistro. */
.profile-page .site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; background: linear-gradient(180deg, rgba(16,21,17,.13) 0%, rgba(16,21,17,.03) 72%, rgba(16,21,17,0) 100%); color: #fff; }
.profile-page .site-header nav a { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.profile-page .wordmark { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.profile-page .wordmark span { color: #f1dfc3; }
.profile-page .profile-hero { height: 100svh; min-height: 0; width: 100%; }
.profile-page .profile-cover { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-page .profile-heading { height: 100%; min-height: 0; padding-top: 110px; padding-bottom: clamp(28px, 6vh, 72px); justify-content: end; }
.profile-page .back-link { top: 108px; }
.profile-brand { width: fit-content; max-width: min(740px, 80vw); }
.profile-brand-logo { display: flex; align-items: center; justify-content: flex-start; width: fit-content; max-width: 240px; min-height: 60px; margin-top: 20px; padding: 18px 22px; border-radius: 18px; background: transparent; }
.profile-brand-logo.needs-dark-bg { background: #111; }
.profile-brand-logo img { display: block; max-width: 180px; max-height: 72px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.profile-brand .eyebrow { margin-bottom: 10px; }
.profile-page .profile-heading h1 { font-size: clamp(48px, 6.2vw, 92px); }
.profile-page .profile-place { margin-top: 16px; }

.company-map-block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 12px; }
.company-map-block h3 { margin: 0 0 12px; font: 400 23px/1.2 'Quicksand', Georgia, serif; }
#company-map { width: 100%; height: 205px; background: #e7e9e2; cursor: pointer; }
.map-open { display: block; width: 100%; padding: 10px 0; border: 0; background: none; color: var(--olive); text-align: left; cursor: pointer; font-size: 12px; font-weight: 700; }
.map-dialog { width: min(1100px, 95vw); height: min(850px, 94vh); max-width: none; max-height: none; padding: 0; border: 0; background: var(--surface); }
.map-dialog::backdrop { background: rgba(12,19,14,.78); }
.map-dialog-head { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 20px; }
.map-dialog-head strong { font: 400 23px 'Quicksand', Georgia, serif; }
.map-dialog-head button { border: 0; background: none; font-size: 30px; cursor: pointer; }
#company-map-full { width: 100%; height: calc(100% - 58px); }

@media (max-width: 620px) {
  .profile-page .site-header { min-height: 58px; }
  .profile-page .profile-heading { padding-top: 90px; padding-bottom: 30px; }
  .profile-page .back-link { top: 86px; }
  .profile-brand { max-width: 100%; }
  .profile-brand-logo { max-width: 150px; min-height: 50px; margin-top: 14px; }
  .profile-brand-logo img { max-width: 128px; max-height: 50px; }
  .profile-page .profile-heading h1 { font-size: clamp(42px, 9vw, 68px); }
  .profile-page .profile-place { font-size: 12px; }
}

/* Modulo di interessamento, adattato da modulocustom di madeinitaly.org. */
.interest-section { margin-top: 42px; padding: 34px; border: 1px solid var(--line); background: var(--olive-light); }
.interest-intro h2 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/1.15 'Quicksand', Georgia, serif; letter-spacing: -.03em; }
.interest-intro > p:last-child { margin: 13px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.interest-intro .eyebrow { margin-bottom: 10px; }
.interest-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.interest-fields label { display: block; color: var(--ink); font-size: 12px; font-weight: 700; }
.interest-fields input, .interest-fields textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #d3d7cd; border-radius: 0; background: #fff; color: var(--ink); font: 400 14px/1.4 'Urbanist', Arial, sans-serif; }
.interest-fields input:focus, .interest-fields textarea:focus { outline: 2px solid #9ea891; outline-offset: 1px; }
.interest-fields textarea { resize: vertical; min-height: 112px; }
.interest-full { grid-column: 1 / -1; }
.interest-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.interest-actions { display: flex; align-items: center; gap: 16px; margin-top: 21px; }
.interest-disclosure { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.recaptcha-attribution { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.recaptcha-attribution a { color: inherit; }
.grecaptcha-badge { visibility: hidden !important; }
.interest-actions button { padding: 14px 22px; border: 0; background: var(--olive); color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.interest-actions button:hover { background: #283a2d; }
.interest-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.interest-notice { margin: 0 0 22px; padding: 12px 15px; font-size: 13px; line-height: 1.5; }
.interest-notice.is-success { background: #e6eee4; color: #294b2c; }
.interest-notice.is-error { background: #f9e8e4; color: #8b3226; }
.certificate-mark { display: block; width: 100%; margin-top: 10px; }
.certificate-mark img { display: block; width: 100%; height: auto; max-width: none; }
.certificate-item p { margin-top: 10px; }
.registered-badge { display: inline-flex; width: .49em; height: .49em; align-items: center; justify-content: center; margin-left: .13em; vertical-align: top; transform: translateY(.11em); border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.14); }
.registered-mark { display: block; width: 72%; height: 72%; object-fit: contain; }
.location-item .company-map-block { margin-top: 14px; padding-top: 0; border-top: 0; }
.photo-grid { display: flex; height: clamp(150px, 20vw, 240px); gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.photo-grid a { display: block; flex: 0 0 auto; width: clamp(160px, 22vw, 280px); height: 100%; aspect-ratio: auto; scroll-snap-align: start; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-dialog { width: min(1100px, 96vw); height: min(850px, 94vh); max-width: none; max-height: none; padding: 0; border: 0; background: #151815; color: #fff; }
.photo-dialog[open] { display: flex; align-items: center; justify-content: space-between; }
.photo-dialog::backdrop { background: rgba(8,12,9,.88); }
.photo-dialog figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-width: calc(100% - 100px); height: 100%; margin: 0; }
.photo-dialog figure img { display: block; max-width: 100%; max-height: calc(100% - 65px); object-fit: contain; }
.photo-dialog figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .12em; }
.photo-dialog button { flex: none; width: 48px; height: 60px; border: 0; background: transparent; color: #fff; font-size: 38px; cursor: pointer; }
.photo-dialog .photo-dialog-close { position: absolute; top: 5px; right: 6px; z-index: 1; font-size: 30px; }
.photo-dialog .photo-dialog-prev, .photo-dialog .photo-dialog-next { align-self: center; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.hero-intro { min-width: 0; }
.hero-search { flex: 0 0 min(330px, 32%); }
.hero-search input { width: 100%; background: rgba(255,255,255,.96); }

@media (max-width: 620px) {
  .hero-content { display: block; }
  .hero-search { display: block; margin-top: 16px; }
  .hero-search input { width: 100%; }
  .profile-brand-logo { padding: 12px 16px; border-radius: 14px; }
}

@media (max-width: 620px) {
  .interest-section { padding: 20px; }
  .interest-fields { grid-template-columns: 1fr; gap: 13px; }
  .interest-full { grid-column: auto; }
  .interest-actions { flex-direction: column; align-items: stretch; }
  .interest-actions button { width: 100%; }
  .certificate-mark img { width: 50%; }
}
