/* Editorial homepage hero. */
.gustara-ranking-area .gustara-result-list { row-gap: 18px; }
.gustara-ranking-area .gustara-result-list > .col-12 { margin-top: 0; }
.gustara-explanation { box-sizing: border-box; }
.gustara-explanation summary:focus-visible { outline: 2px solid #315f4e; outline-offset: 4px; border-radius: 4px; }
.gustara-code-home .gustara-method { padding-bottom: clamp(36px, 5vw, 70px); }
.gustara-code-home .gustara-process { padding-top: clamp(36px, 5vw, 70px); }
.gustara-ranking-area .gustara-score {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 28px 12px 8px;
}
.gustara-ranking-area .gustara-score::after { right: 10px; }
.gustara-ranking-area .gustara-score strong { font-size: 34px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 768px) {
  .gustara-ranking-area .gustara-scores { padding-left: 12px; padding-right: 12px; }
}
.gustara-method .gustara-method-card { min-height: 0; padding: 24px; border-radius: 22px; }
.gustara-method .gustara-method-card h3 { margin: 28px 0 14px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.gustara-method .gustara-method-symbol { font-size: 32px; }
@media (min-width: 992px) {
  .gustara-process-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; }
  .gustara-process-copy { grid-column: 2; grid-row: 1; }
  .gustara-process-list { grid-column: 1; grid-row: 1; }
}
.gustara-closing.gustara-suggestions {
  --gustara-suggestions-overlay: .68;
  background:
    linear-gradient(rgba(176, 60, 45, var(--gustara-suggestions-overlay)), rgba(176, 60, 45, var(--gustara-suggestions-overlay))),
    #a63628;
  background-blend-mode: multiply, normal;
}
.gustara-closing.gustara-suggestions.is-background-ready {
  background-image: linear-gradient(rgba(176, 60, 45, var(--gustara-suggestions-overlay)), rgba(176, 60, 45, var(--gustara-suggestions-overlay))), url('../images/sfondo-form.webp');
  background-image: linear-gradient(rgba(176, 60, 45, var(--gustara-suggestions-overlay)), rgba(176, 60, 45, var(--gustara-suggestions-overlay))), image-set(url('../images/sfondo-form.avif') type('image/avif'), url('../images/sfondo-form.webp') type('image/webp'));
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gustara-suggestions h2 { font-size: clamp(44px, 6vw, 82px); line-height: 1.05; margin-bottom: 22px; }
.gustara-suggestions h2 em { color: var(--gustara-saffron); font-style: italic; font-weight: 400; }
.gustara-suggestions-copy { max-width: 580px; margin: 0 0 30px; font-size: 20px; font-weight: 500; line-height: 1.65; color: #fffdf7; }
.gustara-suggestions-form { width: 100%; max-width: 740px; text-align: left; }
.gustara-suggestions-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.gustara-suggestions-form label { color: #fffdf7; font-size: 15px; font-weight: 650; }
.gustara-suggestions-fields label,
.gustara-suggestions-message { display: grid; gap: 10px; margin: 0; }
.gustara-suggestions-message { margin-bottom: 20px; }
.gustara-suggestions-message > .wpcf7-form-control-wrap { margin-top: 6px; }
.gustara-suggestions-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.gustara-suggestions-form input[type="text"],
.gustara-suggestions-form input[type="email"],
.gustara-suggestions-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  background: #fffdf7;
  color: #17362e;
  font: 400 16px/1.5 var(--gustara-sans);
  box-shadow: 0 8px 22px #692b1710;
}
.gustara-suggestions-form textarea { height: 160px; min-height: 120px; resize: vertical; }
.gustara-suggestions-form input::placeholder,
.gustara-suggestions-form textarea::placeholder { color: #68756e; opacity: 1; }
.gustara-suggestions-form input[type="text"]:focus,
.gustara-suggestions-form input[type="email"]:focus,
.gustara-suggestions-form textarea:focus-visible { outline: none; border-color: #ffbc38; box-shadow: inset 0 0 0 2px #ffbc38, 0 8px 22px #692b1710; }
.gustara-suggestions-consents { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; line-height: 0; }
.gustara-suggestions-consents > .wpcf7-form-control-wrap { display: contents; }
.gustara-suggestions-consents .wpcf7-acceptance { display: flex; margin-block: -8px; }
.gustara-suggestions-consents .wpcf7-list-item { display: block; margin: 0; }
.gustara-suggestions-consents label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.gustara-suggestions-consents input[type="checkbox"] {
  appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #fffdf7;
  border-radius: 6px;
  background: #ffffff14;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.gustara-suggestions-consents input[type="checkbox"]:hover { transform: scale(1.06); background-color: #ffffff24; }
.gustara-suggestions-consents input[type="checkbox"]:checked {
  border-color: #ffbc38;
  background-color: #ffbc38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='%23173e34' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px;
}
.gustara-suggestions-consents input[type="checkbox"]:focus-visible { outline: 3px solid #ffbc38; outline-offset: 3px; }
.gustara-suggestions-consents a { color: #fffdf7; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.gustara-suggestions-form .wpcf7-not-valid-tip { margin-top: 7px; color: #fffdf7; font-size: 13px; font-weight: 700; }
.gustara-suggestions-form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border-color: #fffdf7; border-radius: 10px; color: #fffdf7; font-size: 14px; }
.gustara-suggestions-form input[type="submit"] {
  min-height: 54px;
  width: 100%;
  padding: 14px 58px 14px 28px;
  border: 0;
  border-radius: 999px;
  background: #173e34;
  color: #fffdf7;
  font: 700 16px/1.3 var(--gustara-sans);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 62, 52, .16);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gustara-submit-button { position: relative; display: block; width: 100%; }
.gustara-submit-button .gustara-button-arrow {
  position: absolute;
  top: 50%;
  right: 27px;
  color: #fffdf7;
  pointer-events: none;
  transform: translateY(-50%);
}
.gustara-submit-button:hover .gustara-button-arrow,
.gustara-submit-button:focus-within .gustara-button-arrow { transform: translate(5px, -50%); }
.gustara-suggestions-form input[type="submit"]:hover { background: #0d3028; box-shadow: 0 13px 28px rgba(23, 62, 52, .23); transform: translateY(-2px); }
.gustara-suggestions-form input[type="submit"]:focus-visible { outline: 3px solid #fffdf7; outline-offset: 3px; box-shadow: none; }
.gustara-suggestions-form input[type="submit"]:disabled { opacity: .7; cursor: wait; transform: none; }
#gustara-suggestions-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #10251e; }
@media (max-width: 575.98px) {
  .gustara-closing.gustara-suggestions {
    --gustara-suggestions-overlay: .72;
    background-position: center, left top;
  }
  .gustara-suggestions-fields { grid-template-columns: 1fr; gap: 16px; }
  .gustara-suggestions-copy { font-size: 18px; }
  .gustara-suggestions-form textarea { height: 140px; }
  .gustara-suggestions-form input[type="submit"] { width: 100%; }
}

.gustara-hero-search .gustara-select-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  height: 55px;
  padding: 10px 40px 10px 16px;
  border: 1px solid #cdd4ce;
  border-radius: 8px;
  background: #fffdf8;
  color: #243e36;
  font: 400 16px/1.4 var(--gustara-sans);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gustara-select-trigger::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #315f4e;
  border-bottom: 2px solid #315f4e;
  transform: rotate(45deg);
}
.gustara-select-trigger[aria-expanded="true"]::after { transform: translateY(4px) rotate(225deg); }
.gustara-hero-search .gustara-select-trigger:hover { border-color: #7b9587; }
.gustara-hero-search .gustara-select-trigger:focus-visible,
.gustara-hero-search .gustara-select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: #b36b00;
  box-shadow: inset 0 0 0 1px #b36b00;
}
.gustara-select-trigger:disabled { opacity: .6; cursor: default; }
.gustara-select-popup {
  position: fixed;
  z-index: 1100;
  box-sizing: border-box;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5ddd4;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 12px 30px #173e3426, 0 2px 6px #173e3410;
  scrollbar-width: thin;
  scrollbar-color: #8fa899 transparent;
  font: 400 15px/1.45 var(--gustara-sans);
  color: #243e36;
}
.gustara-select-popup[hidden] { display: none; }
.gustara-select-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 7px;
  padding: 11px 36px 11px 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.gustara-select-option-label { min-width: 0; }
.gustara-select-option + .gustara-select-option { margin-top: 3px; }
.gustara-select-option:hover,
.gustara-select-option.is-active { background: #edf2eb; color: #093e32; }
.gustara-select-option[aria-selected="true"] { background: #e0ebe1; color: #093e32; font-weight: 600; }
.gustara-select-option[aria-selected="true"]::after { content: '✓'; position: absolute; right: 13px; top: 11px; color: #315f4e; }
.gustara-select-option[aria-disabled="true"] { cursor: pointer; }
.gustara-select-option.is-locked {
  padding-right: 11px;
  background: linear-gradient(100deg, rgba(7, 24, 20, .96), rgba(19, 48, 40, .9));
  color: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.gustara-select-option.is-locked:hover,
.gustara-select-option.is-locked.is-active {
  background: linear-gradient(100deg, #071814, #173e34);
  color: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(255, 188, 56, .62);
}
.gustara-select-lock {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #ffcf68;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.gustara-select-lock-icon {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.gustara-select-lock-icon::before {
  content: '';
  position: absolute;
  left: 1px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

/* Results stay bounded so the method remains reachable, regardless of count. */
.gustara-ranking-area { scroll-margin-top: 100px; }
.gustara-ranking-area .gustara-rankings-results-only { padding: 0; max-width: none; gap: 14px; }
.gustara-ranking-area .gustara-results-head { gap: 8px 20px; margin-top: 28px; padding-bottom: 12px; }
.gustara-ranking-area .gustara-results-head h2 {
  font-family: var(--gustara-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.gustara-ranking-area .gustara-compact-search,
.gustara-ranking-area .gustara-compact-search .gustara-rankings-search-only,
.gustara-ranking-area .gustara-compact-search .gustara-search-card {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.gustara-ranking-area .gustara-result-list {
  max-height: 680px;
  max-height: min(680px, 65dvh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #678577 #ede8dc;
  margin: 0;
  padding: 8px 6px 20px;
  border: 1px solid var(--gustara-border);
  border-radius: 18px;
}
.gustara-ranking-area .gustara-result-list:focus-visible { outline: 3px solid #b36b00; outline-offset: 4px; }
.gustara-results-filters { background: #f8f5ed; border: 1px solid var(--gustara-border); border-radius: 18px; padding: 18px 22px; }
.gustara-results-filters summary { cursor: pointer; font-size: 15px; font-weight: 650; color: var(--gustara-ink); }
.gustara-filter-summary { display: block; font-size: 13px; font-weight: 400; color: var(--gustara-muted); margin-top: 5px; }
.gustara-results-filters[open] summary { margin-bottom: 20px; }
@media (min-width: 992px) {
  .gustara-ranking-area .gustara-results-filters .gustara-search-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: end; }
  .gustara-ranking-area .gustara-results-filters .gustara-field:nth-of-type(3) { grid-column: auto; }
  .gustara-ranking-area .gustara-results-filters .gustara-authenticity-field { grid-column: 1 / -1; margin: 0; }
  .gustara-results-filters .gustara-range-row { margin-top: 8px; }
  .gustara-results-filters .gustara-range-hint { font-size: 12px; }
  .gustara-ranking-area .gustara-results-filters .gustara-primary-button { grid-column: 1 / -1; min-height: 46px; font: 600 16px var(--gustara-sans); }
}
@media (max-width: 575.98px) {
  .gustara-results-filters { padding: 16px; }
  .gustara-ranking-area .gustara-result-list { max-height: 60vh; max-height: 60dvh; }
}

.gustara-home-hero {
  --gustara-forest: #093e32;
  --gustara-saffron: #ffbc38;
  --gustara-hero-overlay: .87;
  background:
    linear-gradient(rgba(9, 62, 50, var(--gustara-hero-overlay)), rgba(9, 62, 50, var(--gustara-hero-overlay))),
    url('../images/sfondo.webp') center / cover no-repeat,
    #033123;
  background-image: linear-gradient(rgba(9, 62, 50, var(--gustara-hero-overlay)), rgba(9, 62, 50, var(--gustara-hero-overlay))), image-set(url('../images/sfondo.avif') type('image/avif'), url('../images/sfondo.webp') type('image/webp'));
  background-blend-mode: multiply, normal;
  padding: 56px 0 32px;
}
.gustara-hero-layout {
  max-width: 1440px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(36px, 4.8vw, 80px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.gustara-hero-content { padding-top: 50px; }
.gustara-hero-content h1 {
  font-size: clamp(52px, 5.6vw, 94px);
  line-height: .99;
  letter-spacing: -.045em;
}
.gustara-hero-content .gustara-overline { margin-bottom: 25px; }
.gustara-hero-lead { color: #e4eee7; max-width: 565px; margin-top: 24px; line-height: 1.55; }
.gustara-hero-actions { margin-top: 22px; gap: 28px; }
.gustara-hero-actions .gustara-text-link { text-decoration: none; }
.gustara-hero-actions .gustara-button { background: #f26047; min-height: 58px; padding: 0 34px; }
.gustara-hero-actions .gustara-button:hover { background: #ffbc38; }
.gustara-hero-facts { margin-top: 34px; padding-top: 17px; gap: 0; }
.gustara-hero-facts li { display: flex; align-items: center; gap: 20px; padding: 10px 20px; color: #edf2e9; font-size: 15px; font-weight: 400; }
.gustara-hero-facts li:first-child { padding-left: 0; }
.gustara-hero-facts li + li { border-left: 1px solid #ffffff25; }
.gustara-hero-facts span { font-size: 39px; line-height: 1; margin: 0; }
.gustara-search-stage {
  background: #f8f5ed;
  border-radius: 40px;
  padding: clamp(30px, 3vw, 44px);
  padding-top: 70px;
  box-shadow: 0 20px 45px #002b2226;
  scroll-margin-top: 110px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.gustara-search-stage::before {
  content: ''; position: absolute; top: 0; right: 0; width: 185px; height: 106px;
  background: url('../images/olive-corner.svg') center / contain no-repeat;
  opacity: .58; pointer-events: none;
}
.gustara-search-intro { margin-bottom: 40px; }
.gustara-search-intro .gustara-overline { color: #b36b00; font-size: 11px; margin-bottom: 14px; }
.gustara-search-intro h2 { color: #082f29; font-size: clamp(30px, 2.75vw, 46px); line-height: 1.12; }
.gustara-hero-search .gustara-search-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
.gustara-hero-search .gustara-field { border: 0; padding: 0; margin: 0; min-width: 0; gap: 12px; }
.gustara-hero-search .gustara-field:nth-of-type(3),
.gustara-hero-search .gustara-authenticity-field,
.gustara-hero-search .gustara-primary-button { grid-column: 1 / -1; }
.gustara-hero-search .gustara-field span,
.gustara-authenticity-field > label { font-size: 12px; font-weight: 650; letter-spacing: .18em; color: #5e6b6c; text-transform: uppercase; }
.gustara-hero-search .gustara-field select {
  width: 100%; height: 55px; padding: 10px 36px 10px 16px;
  border: 1px solid #cdd4ce; border-radius: 8px; background-color: #fffdf8;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23093e32' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  font-family: var(--gustara-sans);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  color: #243e36;
}
.gustara-hero-search .gustara-field select option {
  font-family: var(--gustara-sans);
  font-size: 16px;
  background: #fffdf8;
  color: #243e36;
}
.gustara-hero-search .gustara-field select:hover { border-color: #7b9587; }
.gustara-hero-search .gustara-field select:focus,
.gustara-hero-search .gustara-field select:focus-visible {
  outline: none;
  border-color: #b36b00;
  box-shadow: inset 0 0 0 1px #b36b00;
}
.gustara-hero-search .gustara-field select option:checked {
  background: #e2ebe4;
  color: #093e32;
}
.gustara-authenticity-field { margin: 6px 0 12px; }
.gustara-range-row { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.gustara-range-row input { flex: 1; width: 100%; min-width: 0; accent-color: #093e32; cursor: pointer; height: 28px; }
.gustara-range-row output { min-width: 44px; font-size: 23px; color: #093e32; font-weight: 650; }
.gustara-range-hint { display: flex; justify-content: space-between; margin-top: 7px; color: #455d5b; font-family: var(--gustara-display); font-size: 15px; }
.gustara-hero-search .gustara-primary-button { min-height: 66px; font-family: var(--gustara-display); font-size: 24px; gap: 20px; margin: 0; }
.gustara-hero-search input:focus-visible { outline: 3px solid #bd790b; outline-offset: 4px; }
.gustara-hero-note { position: absolute; right: 1.2%; top: 76px; color: #c5b98e; opacity: .78; font: italic 28px/1.25 Baskerville, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; letter-spacing: -.035em; transform: rotate(-10deg); width: 130px; text-align: center; pointer-events: none; }
.gustara-hero-note::after { content: ''; display: block; width: 35px; height: 1px; background: currentColor; margin: 18px auto 0; transform: rotate(-8deg); }
.gustara-hero-note-secondary { top: auto; right: auto; left: 1.1%; bottom: 30%; width: 125px; font-size: 26px; transform: rotate(-12deg); }
@media (max-width: 1450px) { .gustara-hero-note { display: none; } }
@media (max-width: 991.98px) {
  .gustara-hero-layout { grid-template-columns: 1fr; max-width: 760px; gap: 42px; }
  .gustara-hero-content { padding-top: 0; }
  .gustara-hero-content h1 { font-size: clamp(54px, 9vw, 80px); }
  .gustara-search-stage { max-width: none; padding: 38px; }
  .gustara-search-stage::before { opacity: .36; }
  .gustara-home-hero { padding: 48px 0; }
  .gustara-home-hero { --gustara-hero-overlay: .9; }
}
@media (max-width: 575.98px) {
  .gustara-home-hero { background-position: center, left top; }
  .gustara-hero-content h1 { font-size: clamp(40px, 10.5vw, 59px); }
  .gustara-hero-content .gustara-overline { font-size: 10px; }
  .gustara-hero-lead { font-size: 16px; }
  .gustara-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
  .gustara-hero-facts li {
    justify-content: flex-start;
    align-items: center;
    padding: 5px 9px;
    gap: 8px;
    flex-direction: column;
    font-size: 12px;
    text-align: center;
  }
  .gustara-hero-facts li:first-child { padding-left: 9px; }
  .gustara-search-stage { padding: 34px 22px; border-radius: 28px; }
  .gustara-search-stage::before { width: 68px; height: 39px; }
  .gustara-search-intro { margin-bottom: 28px; }
  .gustara-search-intro h2 { font-size: 32px; }
  .gustara-hero-search .gustara-search-card { gap: 24px 14px; }
  .gustara-hero-search .gustara-field select { font-size: 16px; padding-left: 10px; }
  .gustara-hero-search .gustara-primary-button { font-size: 21px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .gustara-search-stage::before { width: 92px; height: 53px; }
}

/* Maintain readable contrast on the ranking bands. */
.gustara-code-home .gustara-explanation summary { color: #43564e; }
.gustara-ranking-intro .gustara-overline { color: #a63f2d; }
