/*
Theme Name: Avvocato Brevetti
Description: Tema editoriale italiano di horak Studio Legale per brevetti e proprietà industriale.
Version: 1.3.1
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: avvocato-brevetti
*/
:root {
  --paper: #fbf8f1;
  --white: #fffefa;
  --ink: #21342b;
  --pine: #193d31;
  --pine-dark: #142f27;
  --muted: #526057;
  --line: #dddcd0;
  --sand: #eee9de;
  --bronze: #7e512c;
  --gold: #e1bb8b;
  --heading: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 3px solid #ad743d; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
figure { max-width: 100%; margin-inline: 0; }
button, input, textarea, select { font: inherit; }
.shell { width: min(100% - 64px, 1280px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; padding: 10px 16px; color: white; background: var(--pine); }
.site-header { position: relative; z-index: 5; background: var(--white); color: var(--pine); }
.topbar { background: var(--pine-dark); color: #f3ebdc; font-size: .76rem; letter-spacing: .02em; }
.topbar-inner, .languages, .header-inner, .primary-navigation, .configured-menu { display: flex; align-items: center; }
.topbar-inner { justify-content: space-between; min-height: 34px; gap: 12px; }
.languages { gap: 12px; }
.languages a, .languages span { text-decoration: none; padding: 3px 1px; }
.languages a:hover, .languages [aria-current] { color: var(--gold); }
.header-inner { min-height: 87px; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; width: 46px; height: 46px; }
.brand strong, .brand small { display: block; line-height: 1.16; }
.brand strong { font-family: var(--heading); font-size: 1.3rem; font-weight: 600; }
.brand small { font-size: .72rem; margin-top: 4px; }
.primary-navigation, .configured-menu { gap: clamp(13px, 1.45vw, 24px); }
.primary-navigation { font-size: .82rem; font-weight: 650; }
.primary-navigation a:not(.button), .nav-group summary { text-decoration: none; }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; list-style: none; padding-block: .8rem; white-space: nowrap; }
.nav-group summary::-webkit-details-marker, .rate-details summary::-webkit-details-marker { display: none; }
.nav-group summary::after, .rate-details summary::after { content: ""; display: inline-block; width: .45em; height: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.17em) rotate(45deg); margin-left: .7em; }
.nav-group[open] summary::after, .rate-details[open] summary::after { transform: translateY(.08em) rotate(225deg); }
.nav-group[open] summary, .nav-group summary:hover { color: var(--bronze); }
.dropdown, .configured-menu ul { list-style: none; margin: 0; padding: 9px; min-width: 256px; background: var(--white); border: 1px solid var(--line); }
.dropdown { position: absolute; right: 0; top: 100%; box-shadow: 0 15px 34px #1c312b24; }
.dropdown a, .configured-menu ul a { display: block; padding: 8px 9px; line-height: 1.3; }
.dropdown a:hover, .dropdown a:focus-visible, .configured-menu ul a:hover { background: var(--sand); }
.configured-menu { padding: 0; margin: 0; list-style: none; }
.configured-menu li { position: relative; }
.configured-menu ul { position: absolute; right: 0; z-index: 1; display: none; }
.configured-menu li:hover > ul, .configured-menu li:focus-within > ul { display: block; }
.menu-toggle { display: none; color: var(--pine); background: transparent; border: 1px solid var(--line); padding: 8px 11px; border-radius: 4px; cursor: pointer; }
.button, .entry-content input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 18px; border: 1px solid var(--pine); border-radius: 3px;
  background: var(--pine); color: #fffaf0; font-size: .87rem; font-weight: 700;
  text-decoration: none; line-height: 1.3; cursor: pointer;
}
.button:hover, .entry-content input[type=submit]:hover { color: white; background: #255343; border-color: #255343; }
.button-secondary { color: var(--pine); border-color: #8b978a; background: transparent; }
.button-secondary:hover { color: var(--pine); background: var(--sand); border-color: var(--pine); }
.button-light { color: var(--pine-dark); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--pine-dark); background: var(--gold); border-color: var(--gold); }
.nav-cta { min-height: 40px; padding-inline: 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero { background: #eae5d8; border-block: 1px solid #ded9cb; }
.hero-grid { display: grid; grid-template-columns: 1fr .98fr; min-height: 510px; }
.hero-copy { align-self: center; padding: 58px clamp(25px, 5vw, 88px) 62px 0; }
.eyebrow { margin: 0 0 12px; color: var(--bronze); text-transform: uppercase; font-size: .71rem; font-weight: 760; letter-spacing: .105em; line-height: 1.4; }
.hero h1 { font-size: clamp(3.15rem, 5.15vw, 5.2rem); color: var(--pine-dark); letter-spacing: -.038em; margin: 0 0 23px; }
.hero-intro { color: #3b5044; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.67; max-width: 42ch; margin-bottom: 28px; }
.hero-photo { display: block; width: 100%; height: 100%; max-height: 600px; min-height: 0; object-fit: cover; object-position: center; }
.section { padding-block: clamp(55px, 7vw, 91px); }
.section-heading { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 16px 32px; margin-bottom: 30px; }
.section-heading h2, .home-contact h2 { font-size: clamp(2.25rem, 3.8vw, 3.55rem); letter-spacing: -.029em; }
.section-heading > p { max-width: 49ch; color: var(--muted); margin: 0; }
.section-heading > .text-link { justify-self: end; }
.service-grid, .team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.service-card, .rate-card, .team-card, .news-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.service-card { position: relative; min-height: 174px; padding: 24px 22px 34px; }
.service-card h3, .route-card h3, .news-card h2, .news-card h3 { font-size: clamp(1.32rem, 2.1vw, 1.7rem); }
.service-card h3 a, .route-card h3 a, .team-card h3 a, .news-card h2 a, .news-card h3 a, .rate-card h3 a { text-decoration: none; }
.service-card h3 a:hover, .route-card h3 a:hover, .team-card h3 a:hover, .news-card h2 a:hover, .news-card h3 a:hover, .rate-card h3 a:hover { text-decoration: underline; }
.service-card h3 a::after, .route-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card:focus-within, .service-card:hover { border-color: #a48869; }
.service-card p, .route-card p, .team-card p, .news-card p { color: var(--muted); margin: 10px 0 0; font-size: .91rem; }
.card-arrow { position: absolute; bottom: 9px; right: 15px; color: var(--bronze); }
.route-section, .home-contact { background: var(--pine-dark); color: var(--white); }
.route-section .eyebrow, .home-contact .eyebrow { color: var(--gold); }
.route-section .section-heading > p, .route-card p { color: #e4e5d9; }
.route-grid, .rates-feature, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-card { position: relative; padding: 25px; border: 1px solid #ffffff46; border-radius: 4px; }
.route-card:hover, .route-card:focus-within { border-color: var(--gold); }
.route-card a:hover { color: var(--gold); }
.route-code { display: inline-block; color: var(--gold); font-size: .76rem; letter-spacing: .09em; font-weight: 740; margin-bottom: 13px; }
.rate-card { padding: 20px; }
.rate-card h3 { font: 650 .94rem/1.4 var(--body); }
.rate-card p { margin: 12px 0 0; color: var(--pine); font: 500 1.75rem/1.2 var(--heading); }
.rate-details { margin-block: 14px 22px; border-bottom: 1px solid var(--line); }
.rate-details summary { color: var(--pine); cursor: pointer; padding: 9px 0; font-size: .92rem; font-weight: 700; list-style: none; }
.rate-list { margin: 0; }
.rate-list > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; border-top: 1px solid var(--line); padding: 9px 0; }
.rate-list dd { margin: 0; text-align: right; font-weight: 650; }
.text-link { color: var(--pine); font-weight: 700; font-size: .9rem; }
.team-section { background: var(--sand); }
.team-card { overflow: hidden; }
.portrait { aspect-ratio: 4 / 3; background: #d8d6cb; }
.portrait img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: center 35%; }
.team-copy { padding: 16px; }
.team-card h3 { font-size: 1.25rem; }
.team-card p { margin-top: 5px; }
.news-card { padding: 23px; overflow-wrap: anywhere; }
.news-card time, .page-header time { display: block; color: var(--bronze); font-weight: 650; font-size: .78rem; margin-bottom: 10px; }
.contact-inner { min-height: 235px; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-block: 46px; }
.contact-inner p:last-child { margin: 10px 0 0; color: #e4e5d9; }
.contact-inner .button-secondary { color: white; border-color: #ffffff83; }
.contact-inner .button-secondary:hover { color: var(--pine-dark); }
.site-footer { background: #11271f; color: #ece8dc; padding: 48px 0 18px; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.1fr .9fr .9fr; gap: 28px; padding-bottom: 30px; font-size: .87rem; overflow-wrap: anywhere; }
.footer-grid h2 { font: 700 .92rem/1.3 var(--body); color: #fffaf0; margin: 5px 0 10px; }
.footer-grid p { margin: 12px 0 0; max-width: 33ch; color: #e7dfd2; }
.footer-grid address { font-style: normal; }
.footer-link { display: block; margin: 4px 0; }
.footer-base { padding-top: 14px; border-top: 1px solid #ffffff2c; font-size: .79rem; }
.page-header { background: var(--sand); padding: 38px 0 44px; }
.page-header h1 { color: var(--pine-dark); font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; max-width: 25ch; overflow-wrap: anywhere; }
.page-header time { margin-top: 12px; margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: .79rem; margin-bottom: 15px; }
.article-shell, .listing { padding-block: clamp(34px, 6vw, 72px); }
.article-shell { max-width: 1050px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--pine); margin: 1.25em 0 .55em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1, .entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.entry-content h3 { font-size: 1.45rem; }
.entry-content a:not(.button) { color: #225443; }
.entry-content a:hover { color: var(--bronze); }
.entry-content a.ow-button-hover { color: white; }
.entry-content img, .entry-content iframe { max-width: 100%; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: .55em .65em; }
.entry-content pre { overflow: auto; max-width: 100%; white-space: pre-wrap; }
.entry-content .wpcf7 { max-width: 760px; margin: 16px 0; padding: clamp(14px, 3vw, 30px); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.entry-content .wpcf7 input:not([type=submit],[type=checkbox],[type=radio],[type=hidden]), .entry-content .wpcf7 textarea, .entry-content .wpcf7 select, .search-form input, .comments input:not([type=submit]), .comments textarea {
  width: 100%; max-width: 100%; color: var(--ink); border: 1px solid #98a197;
  border-radius: 3px; background: white; padding: 9px 11px; min-height: 42px;
}
.entry-content .wpcf7 input[type=file] { font-size: .86rem; }
.entry-content .wpcf7 textarea, .comments textarea { min-height: 120px; }
.entry-content .wpcf7 label { display: block; max-width: 100%; }
.entry-content .wpcf7 .wpcf7-list-item { margin-left: 0; margin-right: .9em; }
.entry-content .wpcf7 .wpcf7-list-item label { display: inline; }
.search-form { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.search-form label { width: min(100%, 380px); }
.pagination, .comments { margin-top: 34px; }
.page-numbers { display: inline-block; padding: 4px 8px; }
.alignleft { float: left; margin-right: 1.2em; }
.alignright { float: right; margin-left: 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
@media (max-width: 1120px) {
  .header-inner { min-height: 72px; flex-wrap: wrap; }
  .avb-enhanced .menu-toggle { display: inline-flex; gap: 7px; align-items: center; }
  .primary-navigation { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 15px; }
  .avb-enhanced .primary-navigation:not(.is-open) { display: none; }
  .nav-group, .nav-news { border-block-start: 1px solid var(--line); }
  .nav-news { display: block; padding-block: .8rem; }
  .dropdown, .configured-menu ul { position: static; min-width: 0; box-shadow: none; margin-bottom: 7px; }
  .nav-cta { align-self: flex-start; }
  .configured-menu { display: grid; gap: 11px; margin-bottom: 14px; }
  .configured-menu ul { display: block; }
}
@media (max-width: 880px) {
  .shell { width: calc(100% - 42px); }
  .service-grid, .team-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { min-height: 420px; }
  .hero h1 { font-size: clamp(2.55rem, 6.2vw, 3.6rem); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .topbar { font-size: .67rem; }
  .languages { gap: 8px; }
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 1.16rem; }
  .brand small { font-size: .64rem; }
  .menu-toggle { font-size: .81rem; }
  .hero-grid, .section-heading { grid-template-columns: 1fr; }
  .hero-copy { padding: 38px 0 27px; }
  .hero h1 { font-size: clamp(2.65rem, 10.5vw, 3.55rem); margin-bottom: 17px; }
  .hero-intro { margin-bottom: 20px; }
  .hero-photo { aspect-ratio: 1.63; height: auto; margin-bottom: 20px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading > .text-link { justify-self: start; }
  .route-grid, .news-grid, .rates-feature { grid-template-columns: 1fr; gap: 10px; }
  .service-grid, .team-grid { gap: 9px; }
  .service-card { padding: 15px 12px 30px; min-height: 0; }
  .service-card p { font-size: .82rem; }
  .team-copy { padding: 12px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 17px; }
  .footer-grid { gap: 18px 12px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
  .service-grid, .footer-grid { grid-template-columns: 1fr; }
}
.page-id-62 .entry-content > .su-row:has(h3) {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 36px);
  margin-bottom: 16px;
  padding: clamp(14px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.page-id-62 .entry-content > .su-row:has(h3)::before,
.page-id-62 .entry-content > .su-row:has(h3)::after { display: none; }
.page-id-62 .entry-content > .su-row:has(h3) > .su-column { float: none; width: auto; margin: 0; }
.page-id-62 .entry-content > .su-row:has(h3) img { display: block; width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 540px) {
  .page-id-62 .entry-content > .su-row:has(h3) { grid-template-columns: 1fr; }
}

.avb-service-price { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-bottom: 1.6rem; }
.rate-card .button { margin-top: 1rem; }
.entry-content .wpcf7 .avb-form-extra {
  margin-block: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line, #d9e0da);
  border-radius: 8px;
  min-width: 0;
}
.avb-form-extra legend { padding-inline: .35rem; font-weight: 650; }
.entry-content .avb-form-extra .wpcf7-list-item { display: block; margin-block: .3rem; }
#avb-service-selection { scroll-margin-top: 6rem; }

.avb-related { margin-block: 2.25rem 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line, #d9e0da); border-radius: .65rem; }
.avb-related h2 { margin-top: 0; }
.avb-related ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
.avb-related li + li { margin-top: .3rem; }
.avb-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.avb-guide-grid article { border-top: 1px solid var(--line, #d9e0da); padding-top: 1rem; }
.avb-guide-grid h3 { margin-top: 0; }
.avb-year-links { display: flex; gap: 1rem; margin-bottom: 1rem; }
.avb-year-links a { text-decoration: underline; text-underline-offset: .2em; }
