/* Header e footer unici di subastacanarias.com. Prefisso sc-: nessun conflitto con il CSS delle pagine. */
html:not([data-sc-lang="en"]):not([data-sc-lang="it"]) [data-scl="en"],
html:not([data-sc-lang="en"]):not([data-sc-lang="it"]) [data-scl="it"],
html[data-sc-lang="en"] [data-scl="es"], html[data-sc-lang="en"] [data-scl="it"],
html[data-sc-lang="it"] [data-scl="es"], html[data-sc-lang="it"] [data-scl="en"] { display: none !important; }

.sc-header, .sc-header *, .sc-footer, .sc-footer * { box-sizing: border-box; }
.sc-header {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 1000 !important;
  display: block !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  background: #1E3A5F !important; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 18px rgba(10,22,38,.18);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.4;
}
.sc-spacer { height: 68px; }
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px;
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sc-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.sc-logo img { height: 52px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.sc-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.sc-link { color: rgba(255,255,255,.86) !important; text-decoration: none !important; font-size: .94rem; font-weight: 500;
  padding: 9px 13px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .18s, color .18s; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.sc-link:hover, .sc-link:focus-visible, .sc-link[aria-current="page"], .sc-dd.is-open .sc-dd__btn { color: #fff !important; background: rgba(255,255,255,.1); }
.sc-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #C9844A; }
.sc-caret { font-size: .7rem; opacity: .8; transition: transform .2s; }
.sc-dd { position: relative; }
.sc-dd.is-open .sc-caret { transform: rotate(180deg); }
.sc-dd__panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(720px, 92vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(15,30,50,.45), 0 2px 6px rgba(0,0,0,.06);
  border: 1px solid #E8E5DC; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.sc-dd.is-open .sc-dd__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 1081px) {
  .sc-dd:hover .sc-dd__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .sc-dd:hover .sc-caret { transform: rotate(180deg); }
  .sc-dd::after { content: ''; position: absolute; left: -20px; right: -20px; top: 100%; height: 14px; }
}
.sc-dd__item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px;
  text-decoration: none !important; color: #0F0F0F !important; transition: background .15s; }
.sc-dd__item:hover, .sc-dd__item:focus-visible, .sc-dd__item[aria-current="page"] { background: #F4E6D8; }
.sc-dd__ico { font-size: 1.3rem; width: 38px; height: 38px; border-radius: 10px; background: #F2F0EA; display: grid; place-items: center; flex-shrink: 0; }
.sc-dd__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-dd__t { font-weight: 600; font-size: .95rem; color: #1E3A5F; }
.sc-dd__d { font-size: .82rem; color: #5E6470; line-height: 1.35; }
.sc-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sc-lang { border: 0; border-radius: 8px; font-weight: 700; font-size: .8rem; padding: 8px 13px; letter-spacing: .04em;
  cursor: pointer; color: #fff; background: #C60B1E; font-family: inherit; min-width: 46px; }
html[data-sc-lang="en"] .sc-lang { background: #003399; }
html[data-sc-lang="it"] .sc-lang { background: #009246; }
.sc-cta { background: #A35E28; color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: transform .15s, background .15s; }
.sc-cta:hover { background: #b8743c; transform: translateY(-1px); }
.sc-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.sc-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.sc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sc-mobile { background: #13283F; padding: 8px clamp(16px, 4vw, 40px) 18px; max-height: calc(100vh - 58px); overflow-y: auto; }
.sc-mobile[hidden] { display: none !important; }
.sc-m__link { display: block; color: #fff !important; text-decoration: none !important; font-size: 1.02rem; font-weight: 500;
  padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; list-style: none; }
.sc-m__link::-webkit-details-marker { display: none; }
.sc-m__group summary::after { content: '▾'; float: right; opacity: .7; transition: transform .2s; }
.sc-m__group[open] summary::after { transform: rotate(180deg); }
.sc-m__sub { display: block; color: rgba(255,255,255,.85) !important; text-decoration: none !important; padding: 10px 6px 10px 14px; font-size: .95rem; }
.sc-m__sub:hover { color: #fff !important; background: rgba(255,255,255,.06); border-radius: 8px; }
.sc-m__cta { display: block; text-align: center; margin-top: 14px; background: #A35E28; color: #fff !important;
  text-decoration: none !important; font-weight: 600; padding: 13px; border-radius: 999px; }
@media (max-width: 1180px) { .sc-link { padding: 9px 9px; font-size: .9rem; } }
@media (max-width: 1080px) {
  .sc-links { display: none; }
  .sc-burger { display: flex; }
}
@media (max-width: 640px) {
  .sc-bar { height: 70px; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .sc-spacer { height: 70px; }
  .sc-logo { height: 54px; overflow: visible; }
  .sc-logo img { height: 48px; max-width: 170px; max-height: 100%; object-fit: contain; }
  .sc-cta { display: none; }
  .sc-lang { padding: 6px 10px; font-size: .74rem; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sc-dd__panel, .sc-caret, .sc-burger span, .sc-cta { transition: none !important; } }

/* FOOTER */
.sc-footer { display: block !important; position: static !important; margin: 0 !important; width: auto !important;
  background: #13283F !important; color: rgba(255,255,255,.78) !important; border: 0 !important;
  padding: 64px clamp(16px, 5vw, 64px) 26px !important; font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.55; text-align: left; }
.sc-f__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .9fr 1.4fr 1fr; gap: 40px; }
.sc-f__logo { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; color: #fff !important; text-decoration: none !important; }
.sc-f__logo span { color: #C9844A; }
.sc-f__tag { margin: 12px 0 14px; max-width: 34ch; color: rgba(255,255,255,.72); }
.sc-f__contact { margin: 0; font-size: .92rem; }
.sc-footer a { color: rgba(255,255,255,.8) !important; text-decoration: none !important; }
.sc-footer a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.sc-footer h4 { font-family: 'Geist Mono', ui-monospace, monospace !important; font-size: .74rem !important; letter-spacing: .1em;
  text-transform: uppercase; color: #C9844A !important; margin: 0 0 12px !important; font-weight: 500 !important; }
.sc-footer .sc-f__h4b { margin-top: 22px !important; }
.sc-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 7px; }
.sc-footer li { margin: 0 !important; padding: 0 !important; font-size: .93rem; }
.sc-f__col--wide ul { grid-template-columns: 1fr; }
.sc-f__bottom { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.55); }
.sc-f__bottom p { margin: 0; }
@media (max-width: 980px) { .sc-f__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .sc-f__grid { grid-template-columns: 1fr; } .sc-footer { padding-top: 44px !important; } }

/* Revisione grafica 2026-10-08: piede su mobile in due colonne; tabelle legali scorrevoli */
@media (max-width: 560px) {
  .sc-f__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .sc-f__grid > :first-child { grid-column: 1 / -1; }
}
.legal-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .legal-table-scroll table { min-width: 440px; } }
