/* iBlend design system for Elementor. Ported from site/assets/css/site.css (the approved static site).
   Colours and type live in the Elementor kit (global colours and fonts) and stay editable there; this file only does
   what Elementor cannot, hooked with ib- classes (Advanced > CSS classes). Recipes: wp/DESIGN.md.
   Specificity rule: class rules here reach (0,3,0) at most, so they beat Elementor's per-widget-type defaults (0,2,0)
   and lose to anything set in the editor panel (0,4,0). */

/* ── Fonts (served by this plugin, preloaded in <head>) ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arial with Inter Tight's metrics: text does not jump while the font loads (kit "default generic fonts" uses it). */
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial");
  size-adjust: 96%;
  ascent-override: 101%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ── Tokens and base ─────────────────────────────────────────────────────────────────────────────────────────────── */
:root { color-scheme: light; interpolate-size: allow-keywords; }
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  /* aliases of the kit's global colours (body carries .elementor-kit-N, where the --e-global-* vars live) */
  --ib-crimson: var(--e-global-color-accent, #BB2649);
  --ib-crimson-deep: var(--e-global-color-crimson_deep, #8E1A35);
  --ib-gray: var(--e-global-color-gray, #C6C4C5);
  --ib-mist: var(--e-global-color-mist, #F4F3F3);
  --ib-line: var(--e-global-color-line, #E2E0E1);
  --ib-ink: var(--e-global-color-text, #2B292A);
  --ib-ink-soft: var(--e-global-color-secondary, #6A6768);
  --ib-blush: #FBEDF0; /* hover of the inverted button only, as in the static site */
  --ib-gutter: clamp(20px, 4.4vw, 76px);
  --ib-radius: clamp(16px, 2vw, 30px);
  --ib-ease: cubic-bezier(.65, 0, .15, 1);
  --ib-rise: cubic-bezier(.2, .8, .2, 1);
  --ib-scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='100,50 99.7,52.6 98.7,55.1 96.9,57.4 94.2,59.4 89.1,60.5 92.9,64 94.3,67 94.7,69.9 94.3,72.6 93.3,75 91.7,77.1 89.6,78.8 86.9,79.9 83.6,80.2 78.6,78.6 80.2,83.6 79.9,86.9 78.8,89.6 77.1,91.7 75,93.3 72.6,94.3 69.9,94.7 67,94.3 64,92.9 60.5,89.1 59.4,94.2 57.4,96.9 55.1,98.7 52.6,99.7 50,100 47.4,99.7 44.9,98.7 42.6,96.9 40.6,94.2 39.5,89.1 36,92.9 33,94.3 30.1,94.7 27.4,94.3 25,93.3 22.9,91.7 21.2,89.6 20.1,86.9 19.8,83.6 21.4,78.6 16.4,80.2 13.1,79.9 10.4,78.8 8.3,77.1 6.7,75 5.7,72.6 5.3,69.9 5.7,67 7.1,64 10.9,60.5 5.8,59.4 3.1,57.4 1.3,55.1 0.3,52.6 0,50 0.3,47.4 1.3,44.9 3.1,42.6 5.8,40.6 10.9,39.5 7.1,36 5.7,33 5.3,30.1 5.7,27.4 6.7,25 8.3,22.9 10.4,21.2 13.1,20.1 16.4,19.8 21.4,21.4 19.8,16.4 20.1,13.1 21.2,10.4 22.9,8.3 25,6.7 27.4,5.7 30.1,5.3 33,5.7 36,7.1 39.5,10.9 40.6,5.8 42.6,3.1 44.9,1.3 47.4,0.3 50,0 52.6,0.3 55.1,1.3 57.4,3.1 59.4,5.8 60.5,10.9 64,7.1 67,5.7 69.9,5.3 72.6,5.7 75,6.7 77.1,8.3 78.8,10.4 79.9,13.1 80.2,16.4 78.6,21.4 83.6,19.8 86.9,20.1 89.6,21.2 91.7,22.9 93.3,25 94.3,27.4 94.7,30.1 94.3,33 92.9,36 89.1,39.5 94.2,40.6 96.9,42.6 98.7,44.9 99.7,47.4'/%3E%3C/svg%3E");
  --ib-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Hello's reset colours links #c36: links take the text colour, components decide their hover. */
a, a:hover, a:active { color: inherit; }
::selection { background: var(--ib-crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--ib-crimson); outline-offset: 3px; }
:where(:focus-visible) { border-radius: 4px; }

/* Hello's skip link ("Vai al contenuto"), styled like the static one */
.skip-link.screen-reader-text:focus {
  top: 16px; left: 16px; padding: 12px 18px; border-radius: 999px;
  background: var(--ib-ink); color: #fff; font-size: 1rem; text-decoration: none;
}

/* ── Elementor normalisation (all Elementor content) ─────────────────────────────────────────────────────────────── */
.elementor-widget-text-editor p { margin-block: 0; }
.elementor-widget-text-editor p + p { margin-block-start: 1em; }
.elementor-widget-text-editor :is(strong, b) { font-weight: 600; }
/* Every link typed in a Text Editor is the static ".link": ink text, crimson 2px underline, crimson on hover. */
.elementor-widget-text-editor a {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--ib-crimson);
  text-decoration-thickness: 2px; text-underline-offset: .3em; transition: color .2s;
}
.elementor-widget-text-editor a:hover { color: var(--ib-crimson); }
/* Bold inside any heading = keyword: crimson, no faux bold (Anton has one weight). */
.elementor-heading-title :is(b, strong) { font-weight: inherit; color: var(--ib-crimson); }
.elementor-widget-image figcaption { font-style: normal; }

/* ── Type helpers ────────────────────────────────────────────────────────────────────────────────────────────────── */
.ib-balance .elementor-heading-title { text-wrap: balance; }
.ib-pretty { text-wrap: pretty; }
.e-con.ib-baseline { --align-items: baseline; } /* Elementor's alignment control has no "baseline" */
.ib-wide .elementor-heading-title { max-width: 17em; }

/* Label: lowercase crimson with the hexagon dot (the "identity · web · design" voice of the logo).
   Heading widget (tag p) with class ib-label, or <small>…</small> typed at the start of a heading (label inside an h1). */
.ib-label .elementor-heading-title,
.elementor-heading-title small {
  display: flex; align-items: center; gap: .6em;
  margin: 0 0 clamp(16px, 1.8vw, 28px);
}
.elementor-widget.ib-label .elementor-heading-title { color: var(--ib-crimson); }
.ib-label .elementor-heading-title::before,
.elementor-heading-title small::before {
  content: ""; flex: none; width: .72em; height: .8em; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.elementor-heading-title small {
  font-family: var(--e-global-typography-label-font-family), "Inter Tight Fallback", sans-serif;
  font-size: var(--e-global-typography-label-font-size);
  font-weight: var(--e-global-typography-label-font-weight);
  line-height: var(--e-global-typography-label-line-height);
  letter-spacing: var(--e-global-typography-label-letter-spacing);
  text-transform: var(--e-global-typography-label-text-transform);
  color: var(--ib-crimson);
}

/* Headlines that rise word by word: .ib-rise on load (page titles), .ib-reveal when scrolled into view.
   iblend.js splits the heading into .ib-w > span (style --i = word index) and keywords (<b>) into .ib-k. */
.ib-w, .ib-w > span { display: inline-block; }
.ib-k { transition: color .45s ease; }
.ib-k.ib-lit { color: var(--ib-crimson); }
@keyframes ib-word-in { from { transform: translateY(118%) rotate(4deg); } }
@keyframes ib-failsafe { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .ib-w { overflow: hidden; vertical-align: top; padding: .16em .04em .1em; margin: -.16em -.04em -.1em; }
  .ib-w > span { transform-origin: left top; }
  .ib-rise .ib-w > span { animation: ib-word-in 1s var(--ib-rise) calc(var(--i) * 80ms + 60ms) backwards; }
  .ib-reveal .ib-w > span { transform: translateY(118%) rotate(4deg); transition: transform 1s var(--ib-rise) calc(var(--i) * 70ms), color .45s ease; }
  .ib-reveal.ib-in .ib-w > span { transform: none; }
  /* Until the words are split: hidden (no flash of the unsplit text), shown anyway after 2.5 s if the script never runs. */
  .js body:not(.elementor-editor-active) :is(.ib-rise, .ib-reveal) .elementor-heading-title:not(.ib-split) {
    opacity: 0; animation: ib-failsafe 0s 2.5s forwards;
  }
}

/* ── Buttons: pill + rotating scalloped seal with an arrow ───────────────────────────────────────────────────────── */
/* Button widget + ib-btn (crimson) or ib-btn ib-btn--inv (white, for the crimson card). Also the submit of ib-form.
   The seal and the arrow are pseudo-elements of the link, so the whole thing is one click target. */
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button {
  position: relative; display: inline-block; margin: 1px 60px 1px 0; padding: 16px 30px;
  border: 0; border-radius: 999px; background-color: var(--ib-crimson); color: #fff;
  line-height: 1.25; white-space: nowrap; text-decoration: none; transition: background-color .25s;
}
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button:hover { background-color: var(--ib-crimson-deep); color: #fff; }
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button::after {
  content: ""; position: absolute; top: 50%; left: calc(100% + 6px); width: 54px; height: 54px; margin-top: -27px;
  background-color: inherit;
  -webkit-mask: var(--ib-scallop) center / contain no-repeat; mask: var(--ib-scallop) center / contain no-repeat;
  transition: rotate .6s var(--ib-ease), background-color .25s;
}
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button::before {
  content: ""; position: absolute; z-index: 1; top: 50%; left: calc(100% + 23px); width: 20px; height: 20px; margin-top: -10px;
  background-color: currentColor;
  -webkit-mask: var(--ib-arrow) center / contain no-repeat; mask: var(--ib-arrow) center / contain no-repeat;
  transition: translate .3s var(--ib-ease);
}
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button:hover::after { rotate: 45deg; }
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button:hover::before { translate: 3px 0; }
/* Text that rolls on hover: the copy is a text-shadow one line below (no duplicated text for screen readers). */
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button-content-wrapper { display: block; height: 1.25em; overflow: hidden; }
:is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button-text {
  display: block; line-height: 1.25; text-shadow: 0 1.25em 0 currentColor; transition: translate .45s var(--ib-ease);
}
@media (hover: hover) {
  :is(.elementor-widget.ib-btn, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button:hover .elementor-button-text { translate: 0 -1.25em; }
}
:is(.elementor-widget.ib-btn--inv, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button { background-color: #fff; color: var(--ib-crimson); }
:is(.elementor-widget.ib-btn--inv, .elementor-widget.ib-form .elementor-field-type-submit) .elementor-button:hover { background-color: var(--ib-blush); color: var(--ib-crimson); }

/* ── Photos that take form: arch = wine, leaf = oil, circle = food, rounded window = hospitality ─────────────────── */
:is(.ib-arch, .ib-leaf, .ib-round, .ib-window) img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--ib-mist); }
.ib-arch img { aspect-ratio: 3 / 4; border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
.ib-leaf img { aspect-ratio: 1; border-radius: 0 100% 0 100%; }
.ib-round img { aspect-ratio: 1; border-radius: 50%; }
.ib-window img { aspect-ratio: 1; border-radius: 14%; }
@keyframes ib-take-form { from { border-radius: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .ib-take img { animation: ib-take-form 1.3s var(--ib-ease) .45s backwards; }
  .ib-take:nth-child(2) img { animation-delay: .6s; }
  .ib-take:nth-child(3) img { animation-delay: .75s; }
}

/* Media card: 4:3, rounded, cover (Image or JetEngine Dynamic Image widget) */
.ib-media { aspect-ratio: 4 / 3; border-radius: var(--ib-radius); overflow: hidden; background: var(--ib-mist); }
.ib-media :is(a, img, .jet-listing-dynamic-image, .jet-listing-dynamic-image__link) { display: block; width: 100%; height: 100%; }
.ib-media img { object-fit: cover; }
/* Card link (container with a link): the photo zooms a little on hover */
.ib-card img { transition: scale .7s var(--ib-ease); }
.ib-card:hover img { scale: 1.035; }

/* Photo band that opens to full width while scrolling (Image widget in a full-width container without padding) */
.ib-band { overflow: hidden; }
.ib-band img { display: block; width: 100%; height: auto; aspect-ratio: 32 / 15; object-fit: cover; }
@keyframes ib-band-open { from { clip-path: inset(6% 7% 8% 7% round 40px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes ib-band-zoom { from { scale: 1.14; } to { scale: 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ib-band { animation: ib-band-open linear both; animation-timeline: view(); animation-range: entry 20% cover 46%; }
    .ib-band img { animation: ib-band-zoom linear both; animation-timeline: view(); animation-range: entry 20% cover 46%; }
  }
}

/* Teasers: every second item starts lower (two-column grid) */
@media (min-width: 640px) {
  :is(.ib-stagger > :nth-child(even), .ib-stagger .jet-listing-grid__item:nth-child(even)) { margin-top: clamp(40px, 9vw, 150px); }
}

/* ── Crimson card (closing card, contact page): white text on crimson ────────────────────────────────────────────── */
.ib-crimson-card { color: #fff; }
.e-con.ib-crimson-card :is(.elementor-heading-title, .elementor-widget-text-editor, .elementor-field-label) { color: #fff; }
.ib-crimson-card .elementor-heading-title small { color: #fff; }
.ib-crimson-card > .ib-label .elementor-heading-title { margin: 0; } /* a label that is a grid item of the card: the gap spaces it */
.ib-crimson-card .elementor-widget-text-editor p + p { margin-block-start: .8em; }
.ib-crimson-card .elementor-widget-text-editor a { text-decoration-color: currentColor; text-decoration-thickness: auto; }
.ib-crimson-card .elementor-widget-text-editor a:hover { color: inherit; }
.ib-crimson-card :focus-visible { outline-color: #fff; }
.ib-crimson-card ::selection { background: #fff; color: var(--ib-crimson); }

/* ── Services as tilted pills (home) ─────────────────────────────────────────────────────────────────────────────── */
/* Heading widget (h3) with a link + ib-pill; position in the list: ib-pill--2 … ib-pill--5 (1 is the default), or
   automatic when the pills come from a JetEngine Listing Grid that has class ib-pills. */
.elementor-widget.ib-pill .elementor-heading-title { color: var(--ib-pill-fg, #fff); }
.ib-pill .elementor-heading-title > a {
  display: inline-block; padding: .36em 1em .34em; border-radius: 999px; white-space: nowrap; text-decoration: none;
  background: var(--ib-pill-bg, var(--ib-crimson)); box-shadow: var(--ib-pill-ring, none);
  rotate: var(--ib-tilt, -3deg); transition: rotate .3s var(--ib-ease), scale .3s var(--ib-ease);
}
.ib-pill .elementor-heading-title > a:is(:hover, :focus-visible) { rotate: 0deg; scale: 1.03; }
:is(.ib-pill--2, .ib-pills .jet-listing-grid__item:nth-child(5n+2) .ib-pill) { --ib-tilt: 2deg; --ib-shift: 6%; --ib-pill-bg: var(--ib-ink); }
:is(.ib-pill--3, .ib-pills .jet-listing-grid__item:nth-child(5n+3) .ib-pill) { --ib-tilt: -1.5deg; --ib-shift: 2%; --ib-pill-bg: var(--ib-gray); --ib-pill-fg: var(--ib-ink); }
:is(.ib-pill--4, .ib-pills .jet-listing-grid__item:nth-child(5n+4) .ib-pill) { --ib-tilt: 3deg; --ib-shift: 9%; --ib-pill-bg: var(--ib-crimson-deep); }
:is(.ib-pill--5, .ib-pills .jet-listing-grid__item:nth-child(5n+5) .ib-pill) { --ib-tilt: -2deg; --ib-shift: 1%; --ib-pill-bg: #fff; --ib-pill-fg: var(--ib-ink); --ib-pill-ring: inset 0 0 0 2px var(--ib-ink); }
@media (min-width: 900px) { .ib-pill .elementor-heading-title > a { margin-left: var(--ib-shift, 0%); } }
@keyframes ib-pill-in { from { translate: 0 70px; rotate: calc(var(--ib-tilt, -3deg) * -3); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ib-pill .elementor-heading-title > a { animation: ib-pill-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 95%; }
  }
}
.ib-pilltext :is(strong, b) { display: block; color: var(--ib-ink); }

/* ── Lists: trio (principles), feats (what's included), steps (numbered path) ────────────────────────────────────── */
/* Either a container with the class whose child containers are the items (el.mjs), or a JetEngine Dynamic Repeater
   widget with the class and an item format like <h3>%titolo%</h3><p>%testo%</p>. The class owns the grid. */
:is(.ib-trio.e-con, .ib-feats.e-con, .ib-steps.e-con),
:is(.ib-trio, .ib-feats, .ib-steps) .jet-listing-dynamic-repeater__items { display: grid; grid-template-columns: 1fr; align-items: start; }
:is(.ib-trio.e-con, .ib-trio .jet-listing-dynamic-repeater__items) { gap: 28px; }
:is(.ib-feats.e-con, .ib-feats .jet-listing-dynamic-repeater__items) { gap: 0 clamp(20px, 3vw, 48px); }
:is(.ib-steps.e-con, .ib-steps .jet-listing-dynamic-repeater__items) { gap: 28px clamp(20px, 3vw, 48px); }
@media (min-width: 640px) { :is(.ib-steps.e-con, .ib-steps .jet-listing-dynamic-repeater__items) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { :is(.ib-feats.e-con, .ib-feats .jet-listing-dynamic-repeater__items) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { :is(.ib-trio.e-con, .ib-trio .jet-listing-dynamic-repeater__items) { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); } }
@media (min-width: 1100px) {
  :is(.ib-feats.e-con, .ib-feats .jet-listing-dynamic-repeater__items) { grid-template-columns: repeat(3, 1fr); }
  :is(.ib-steps.e-con, .ib-steps .jet-listing-dynamic-repeater__items) { grid-template-columns: repeat(4, 1fr); }
}
:is(.ib-trio.e-con > .e-con, .ib-trio .jet-listing-dynamic-repeater__item) { padding-top: 18px; border-top: 2px solid var(--ib-ink); }
:is(.ib-feats.e-con > .e-con, .ib-feats .jet-listing-dynamic-repeater__item) { padding: 20px 0 30px; border-top: 1px solid var(--ib-line); }
:is(.ib-steps.e-con > .e-con, .ib-steps .jet-listing-dynamic-repeater__item) { padding-top: 16px; border-top: 2px solid var(--ib-ink); }
/* raw HTML items (Dynamic Repeater): same type as the widget versions, read from the kit */
:is(.ib-trio, .ib-feats, .ib-steps) .jet-listing-dynamic-repeater__item h3 {
  margin: 0;
  font-family: var(--e-global-typography-secondary-font-family), "Inter Tight Fallback", sans-serif;
  font-size: var(--e-global-typography-secondary-font-size); font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height); letter-spacing: var(--e-global-typography-secondary-letter-spacing);
}
:is(.ib-trio, .ib-feats, .ib-steps) .jet-listing-dynamic-repeater__item p { margin: .4em 0 0; color: var(--ib-ink-soft); }
/* the step number is a counter, so editors never type it */
.ib-steps, .ib-steps .jet-listing-dynamic-repeater__items { counter-reset: ib-step; }
:is(.ib-steps.e-con > .e-con, .ib-steps .jet-listing-dynamic-repeater__item) { counter-increment: ib-step; display: flex; flex-direction: column; }
:is(.ib-steps.e-con > .e-con, .ib-steps .jet-listing-dynamic-repeater__item)::after {
  content: counter(ib-step); order: -1; display: block; margin-bottom: .2em;
  font-family: var(--e-global-typography-step-font-family), Impact, sans-serif;
  font-size: var(--e-global-typography-step-font-size); line-height: var(--e-global-typography-step-line-height);
  font-weight: 400; letter-spacing: .004em; color: var(--ib-crimson);
}

/* ── FAQ: plus that turns into a cross, smooth open (native <details>) ───────────────────────────────────────────── */
/* ib-faq on a Nested Accordion widget, or on a Dynamic Repeater whose item format is
   <details><summary>%domanda%</summary><p>%risposta%</p></details> */
.elementor-widget.ib-faq { /* Nested Accordion: switch off its own look through its variables */
  --n-accordion-border-width: 0px; --n-accordion-padding: 0px; --n-accordion-icon-size: 0px; --n-accordion-icon-gap: 0px;
  --n-accordion-item-title-space-between: 0px; --n-accordion-item-title-distance-from-content: 0px;
  --n-accordion-title-font-size: var(--e-global-typography-faq-font-size);
  --n-accordion-title-normal-color: var(--ib-ink); --n-accordion-title-hover-color: var(--ib-ink); --n-accordion-title-active-color: var(--ib-ink);
}
.elementor-widget.ib-faq details { margin: 0; border: 0; border-top: 1px solid var(--ib-gray); }
.elementor-widget.ib-faq :is(.jet-listing-dynamic-repeater__item:last-child details, details:last-child) { border-bottom: 1px solid var(--ib-gray); }
.elementor-widget.ib-faq summary {
  position: relative; display: block; padding: 22px 48px 22px 0; border: 0; background: none; list-style: none; cursor: pointer;
  font-family: var(--e-global-typography-faq-font-family), "Inter Tight Fallback", sans-serif;
  font-size: var(--e-global-typography-faq-font-size); font-weight: var(--e-global-typography-faq-font-weight);
  line-height: var(--e-global-typography-faq-line-height); letter-spacing: var(--e-global-typography-faq-letter-spacing);
  color: var(--ib-ink);
}
.elementor-widget.ib-faq summary::-webkit-details-marker { display: none; }
.elementor-widget.ib-faq summary::after {
  content: ""; position: absolute; top: 50%; right: 4px; width: 16px; height: 16px; translate: 0 -50%;
  background: linear-gradient(var(--ib-crimson) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--ib-crimson) 0 0) center / 2px 100% no-repeat;
  transition: rotate .35s var(--ib-ease);
}
.elementor-widget.ib-faq details[open] > summary::after { rotate: 135deg; }
.elementor-widget.ib-faq .e-n-accordion-item-title-icon { display: none; }
.elementor-widget.ib-faq :is(.e-n-accordion-item-title-header, .e-n-accordion-item-title-text) { display: inline; font: inherit; color: inherit; }
.elementor-widget.ib-faq details :is(p, .elementor-widget-text-editor) { max-width: 60ch; color: var(--ib-ink-soft); }
.elementor-widget.ib-faq details > :is(p, .e-con) { margin: 0; padding: 0 0 24px; border: 0; }
.elementor-widget.ib-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ib-ease), content-visibility .35s allow-discrete; }
.elementor-widget.ib-faq details[open]::details-content { block-size: auto; }

/* ── Services list (/servizi/): the arch photo appears beside the active row ─────────────────────────────────────── */
/* List: ib-svcs (container or Listing Grid). Row: container ib-svc with two children, a container ib-svc__text
   (name heading with link, claim, description) and an Image widget ib-svc__img ib-arch. The name's link covers the row. */
.ib-svcs { border-top: 1px solid var(--ib-ink); }
.ib-svcs .ib-svc {
  position: relative; display: grid; grid-template-columns: 1fr 84px; align-items: start; gap: 16px;
  margin: 0; padding: 22px 0; border-bottom: 1px solid var(--ib-line);
}
.ib-svcs .ib-svc :is(.e-con, .elementor-widget:not(.ib-svc__img)) { position: static; }
.ib-svcs .ib-svc .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ib-svcs .ib-svc .elementor-heading-title { transition: color .25s; }
@media (hover: hover) { .ib-svc:hover .elementor-heading-title { color: var(--ib-crimson); } }
@media (min-width: 900px) {
  .ib-svcs .ib-svc { --pad: clamp(24px, 2.6vw, 40px); display: block; padding: var(--pad) 40% var(--pad) 0; }
  .ib-svcs .ib-svc__img {
    position: absolute; top: 50%; right: 0; z-index: 2; width: 30%; pointer-events: none;
    opacity: 0; scale: .96; translate: 0 -50%; transition: opacity .35s, scale .5s var(--ib-ease);
  }
  .ib-svcs :is(.ib-svcs > .ib-svc, .jet-listing-grid__item):first-child .ib-svc__img { top: var(--pad); translate: none; }
  .ib-svcs :is(.ib-svcs > .ib-svc, .jet-listing-grid__item):last-child .ib-svc__img { top: auto; bottom: var(--pad); translate: none; }
  .ib-svc:is(:hover, :focus-within) .ib-svc__img,
  .ib-svcs:not(:has(.ib-svc:hover, .ib-svc:focus-within)) :is(.ib-svcs > .ib-svc, .jet-listing-grid__item):first-child .ib-svc__img { opacity: 1; scale: 1; }
}

/* ── Other services (bottom of a service page): big Anton rows ──────────────────────────────────────────────────── */
/* List: ib-others. Row: container used as a link with ib-other (name heading + claim text). */
.ib-others { border-bottom: 1px solid var(--ib-line); }
.ib-other .elementor-heading-title { transition: color .25s; }
.ib-other:hover .elementor-heading-title { color: var(--ib-crimson); }

/* ── Breadcrumbs: Text Editor (<p><a href="/">Home</a> / Servizi</p>) or Yoast breadcrumbs, with ib-crumbs ──────── */
.ib-crumbs a { font-weight: inherit; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: auto; text-underline-offset: .25em; }
.ib-crumbs a:hover { color: var(--ib-crimson); }

/* ── Project tag: settore term as a bordered pill (Dynamic Terms or Heading widget with ib-tag) ──────────────────── */
.ib-tag :is(.jet-listing-dynamic-terms__link, .elementor-heading-title) {
  display: inline-block; margin-right: .4em; padding: 2px 10px; border: 1px solid var(--ib-gray); border-radius: 999px; color: var(--ib-ink);
}

/* ── Filter pills (/progetti/): JetSmartFilters Radio (with an "all" option) or Checkboxes widget with ib-filters ─── */
/* As in the static site, the first pill ("Tutti") looks active while nothing is chosen. The radios stay focusable. */
.elementor-widget.ib-filters .jet-filter { --tabindex-color: var(--ib-crimson); --tabindex-shadow-color: transparent; }
.elementor-widget.ib-filters :is(.jet-radio-list-wrapper fieldset, fieldset.jet-checkboxes-list-wrapper) {
  display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0;
}
.elementor-widget.ib-filters .jet-filter-row { margin: 0; padding: 0; }
.elementor-widget.ib-filters :is(.jet-radio-list__item, .jet-checkboxes-list__item) { position: relative; display: block; margin: 0; padding: 0; cursor: pointer; }
/* JetSmartFilters hides the inputs (display:none at (0,3,0)), which leaves the filter unusable from the keyboard */
.elementor-widget.ib-filters :is(.jet-radio-list__item, .jet-checkboxes-list__item) > :is(.jet-radio-list__input, .jet-checkboxes-list__input) {
  display: block; visibility: visible; float: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.elementor-widget.ib-filters :is(.jet-radio-list__decorator, .jet-checkboxes-list__decorator) { display: none; }
.elementor-widget.ib-filters :is(.jet-radio-list__button, .jet-checkboxes-list__button) {
  display: block; margin: 0; padding: 10px 18px; border: 1px solid var(--ib-gray); border-radius: 999px; background: transparent; color: var(--ib-ink);
  font-family: var(--e-global-typography-nav-font-family), "Inter Tight Fallback", sans-serif;
  font-size: var(--e-global-typography-nav-font-size); font-weight: var(--e-global-typography-nav-font-weight); line-height: 1.25;
  transition: border-color .2s, background .2s, color .2s;
}
.elementor-widget.ib-filters :is(.jet-radio-list__item, .jet-checkboxes-list__item):hover > :is(.jet-radio-list__button, .jet-checkboxes-list__button) { border-color: var(--ib-ink); }
.elementor-widget.ib-filters :is(.jet-radio-list__input, .jet-checkboxes-list__input):checked + :is(.jet-radio-list__button, .jet-checkboxes-list__button),
.elementor-widget.ib-filters .jet-radio-list-wrapper:not(:has(.jet-radio-list__input:checked)) .jet-filter-row:first-child .jet-radio-list__button {
  border-color: var(--ib-ink); background: var(--ib-ink); color: #fff;
}
.elementor-widget.ib-filters :is(.jet-radio-list__input, .jet-checkboxes-list__input):focus-visible + :is(.jet-radio-list__button, .jet-checkboxes-list__button) {
  outline: 2px solid var(--ib-crimson); outline-offset: 3px;
}

/* ── Contact form on the crimson card (Elementor Pro Form widget with ib-form; el.form() sets it up) ──────────────── */
/* Selectors start with .elementor-widget.ib-form: Elementor's own form rules reach (0,3,1). */
.elementor-widget.ib-form .elementor-field-label { display: block; margin-bottom: 9px; padding: 0; color: #fff; line-height: 1.25; }
.elementor-widget.ib-form .elementor-mark-required .elementor-field-label::after { color: inherit; padding: 0; padding-inline-start: 0; }
.elementor-widget.ib-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper),
.elementor-widget.ib-form .elementor-field-group .elementor-select-wrapper select {
  display: block; width: 100%; min-height: 0; padding: 15px 18px; border: 0; border-radius: 16px;
  background: #fff; color: var(--ib-ink); font: inherit; box-shadow: none;
}
.elementor-widget.ib-form textarea.elementor-field { min-height: 150px; resize: vertical; }
.elementor-widget.ib-form .elementor-field::placeholder { color: var(--ib-ink-soft); opacity: 1; }
.elementor-widget.ib-form .elementor-field:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* checkbox group = real checkboxes dressed as pills ("chips") */
.elementor-widget.ib-form .elementor-field-subgroup { display: flex; flex-wrap: wrap; gap: 8px; }
.elementor-widget.ib-form .elementor-field-subgroup .elementor-field-option { position: relative; display: block; margin: 0; padding: 0; }
.elementor-widget.ib-form .elementor-field-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.elementor-widget.ib-form .elementor-field-subgroup .elementor-field-option label {
  display: block; margin: 0; padding: 10px 17px; border: 2px solid #fff; border-radius: 999px; color: #fff; cursor: pointer;
  font-family: var(--e-global-typography-ui-font-family), "Inter Tight Fallback", sans-serif;
  font-size: var(--e-global-typography-ui-font-size); font-weight: var(--e-global-typography-ui-font-weight); line-height: 1.2;
  transition: background .2s, color .2s;
}
.elementor-widget.ib-form .elementor-field-option input:checked + label { background: #fff; color: var(--ib-crimson); }
.elementor-widget.ib-form .elementor-field-option input:focus-visible + label { outline: 3px solid #fff; outline-offset: 3px; }
.elementor-widget.ib-form .elementor-message { margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--ib-ink); font-weight: 600; }
.elementor-widget.ib-form .elementor-message::before { display: none; }

/* ── Print and reduced motion ───────────────────────────────────────────────────────────────────────────────────── */
@media print {
  .ib-band, .elementor-location-header { display: none; }
  .ib-w > span { transform: none !important; }
  a[href]:not(.elementor-button)::after { content: none !important; } /* Hello prints every URL; the static site does not */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
