/*
Theme Name: Agroericino Magazine
Theme URI: https://vacanzeagroericino.it
Description: Tema su misura per una rivista di viaggio sulla Sicilia occidentale: Erice, Trapani, la costa di Cornino, feste e cucina del territorio.
Author: Chiara Pellegrino
Template: astra
Version: 0.1.0
Text Domain: sangiuliano
Tags: custom-colors, threaded-comments, custom-logo, translation-ready
*/

@font-face {
  font-family: 'Kumbh Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/kumbh-sans-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kumbh Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/kumbh-sans-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Yrsa';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/yrsa-italic-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Yrsa';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/yrsa-italic-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Yrsa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/yrsa-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Yrsa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/yrsa-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  
  --page-bg: #f7f6f2;
  --panel: #ffffff;
  --type: #1c2830;
  --type-70: rgba(28, 40, 48, 0.76);
  --type-40: rgba(28, 40, 48, 0.45);
  --key: #a63c28;
  --edge: rgba(28, 40, 48, 0.12);
  --border: rgba(28, 40, 48, 0.28);
  --argine: #b48e60;
  --argine-scuro: #7d5f3c;
  --laguna-notte: #14363a;
  --blu-stemma: #1f3a5a;
  --oro-scritta: #86621d;

  
  --ff-d: "Yrsa", Georgia, serif;
  --text-font: "Yrsa", Georgia, serif;
  --ff-ui: "Kumbh Sans", system-ui, sans-serif;

  
  --tap: 44px;

  
  --wrap-pad: clamp(16px, 4vw, 48px);
  --container-w: 1240px;
  --colonna: 44rem;
  --argine-tratto: repeating-linear-gradient(90deg, var(--argine) 0 72px, transparent 72px 78px);
}

:where(html) { box-sizing: border-box; -webkit-text-size-adjust: 100%; }

:where(html) *,
:where(html) ::before,
:where(html) ::after {
  box-sizing: inherit;
}
body.sg {
  margin: 0;
  font-family: var(--text-font);
}
:where(body.sg) :where(img, video, svg, iframe) { max-width: 100%; }
:where(body.sg) :where(img, video) { height: auto; }
:where(body.sg) :where(figure) { margin: 0; }
:where(body.sg) :where(input, textarea, select) { font: inherit; max-width: 100%; }
:where(body.sg) :where(textarea) { width: 100%; }
:where(body.sg) :where(table) { border-collapse: collapse; width: 100%; }
:where(body.sg) .screen-reader-text:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:where(body.sg) .alignleft { float: left; margin: 0 1.5em 1em 0; }
:where(body.sg) .alignright { float: right; margin: 0 0 1em 1.5em; }
:where(body.sg) .aligncenter { display: block; margin-inline: auto; }
.sg-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.sg-main { min-height: 60vh; }

:where(.button, input[type="reset"], input[type="button"], button, input[type="submit"]) {
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.sg-searchform {
  display: flex;
  align-items: stretch;
}
.sg-searchform__input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
}
.sg-searchform__submit {
  min-width: var(--tap);
  padding: 0 1rem;
}
.sg-drawer__close,
.sg-search-overlay__close,
.sg-header__hamburger {
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sg-header__search {
  min-height: var(--tap);
  padding: 0 1rem;
}
:where(body.sg) .form-submit #submit {
  min-height: var(--tap);
  padding: 0 1rem;
}

.sg-header__nav > li {
  position: relative;
}
.sg-header__nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  margin: 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
}
.sg-header__nav > li:hover > .sub-menu,
.sg-header__nav > li.is-open > .sub-menu {
  visibility: visible;
  opacity: 1;
}
.sg-submenu-toggle {
  min-height: var(--tap);
}
.sg-drawer .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.sg) .sg-menu-label {
  cursor: default;
}

.sg-crumbs {
  display: flex;
  align-items: baseline;
  gap: .35em;
  min-width: 0;
  white-space: nowrap;
}
.sg-crumbs > * {
  flex: none;
}
.sg-crumbs > [aria-current] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

:where(body.sg) :where(h1, h2, h3, h4, h5, h6, a) { color: inherit; }
:where(body.sg) :where(a) { text-decoration-color: currentColor; }

.sg-v1 { --vasca: #2c6a6d; --vasca-velo: #e1ecea; }
.sg-v2 { --vasca: #4f8f86; --vasca-velo: #e4efec; }
.sg-v3 { --vasca: #8fb7ad; --vasca-velo: #edf4f1; }
.sg-v4 { --vasca: #d9a08d; --vasca-velo: #f8ece6; }
.sg-v5 { --vasca: #b86f5e; --vasca-velo: #f5e5df; }
.sg-v6 { --vasca: #cdbf9f; --vasca-velo: #f3efe5; }

body.sg {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--type);
}
.sg-rubrica {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
  color: var(--type-70);
  text-decoration: none;
}
.sg-rubrica::before {
  content: "";
  width: .72em;
  height: .72em;
  flex: none;
  background: var(--vasca, var(--argine));
  outline: 2px solid var(--argine);
  outline-offset: 0;
}
.sg-righello {
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--type-70);
}
.sg-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(160deg, var(--vasca-velo, #efe9dc), var(--vasca, #cdbf9f));
}
.sg-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-header {
  position: relative;
  z-index: 50;
  background: var(--panel);
}
.sg-header::after {
  content: "";
  display: block;
  height: 5px;
  background: var(--argine-tratto);
}
.sg-testata {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: .7rem var(--wrap-pad);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 84px;
}
.sg-header__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: none;
}
.sg-stemma {
  width: 54px;
  height: 54px;
  flex: none;
}
.sg-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sg-marchio-nome {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blu-stemma);
  letter-spacing: .01em;
}
.sg-marchio-resto {
  margin-top: .3rem;
  font-family: var(--ff-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--oro-scritta);
}
.sg-header__nav-wrap {
  margin-left: auto;
}
.sg-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ff-ui);
  font-size: .94rem;
  font-weight: 500;
}
.sg-header__nav a {
  display: inline-block;
  padding: .55rem 0;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.sg-header__nav a:hover {
  color: var(--key);
}
.sg-header__nav .current-menu-item > a,
.sg-header__nav .current-category-ancestor > a,
.sg-header__nav .current-post-ancestor > a {
  color: var(--key);
  border-bottom-color: var(--key);
}
.sg-header__nav .sub-menu {
  min-width: 14rem;
  padding: .5rem 0;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-top: 4px solid var(--argine);
}
.sg-header__nav .sub-menu a {
  display: block;
  padding: .5rem 1rem;
  border: 0;
}
.sg-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: none;
}
.sg-header__search {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 3px;
}
.sg-header__search:hover,
.sg-header__search[aria-expanded="true"] {
  border-color: var(--key);
  color: var(--key);
}
.sg-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.sg-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.sg-search-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--panel);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 14px 24px -18px rgba(20, 54, 58, .5);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
body.search-open .sg-search-overlay {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sg-search-overlay__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.1rem var(--wrap-pad) 1.3rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.sg-search-overlay__inner .sg-searchform {
  flex: 1;
}
.sg-searchform__input {
  padding: .6rem .9rem;
  font-family: var(--ff-ui);
  font-size: 1rem;
  color: var(--type);
  background: var(--page-bg);
  border: 1.5px solid var(--border);
  border-radius: 3px 0 0 3px;
}
.sg-searchform__input:focus {
  outline: 2px solid var(--key);
  outline-offset: 1px;
}
.sg-searchform__submit {
  font-family: var(--ff-ui);
  font-weight: 600;
  color: #fff;
  background: var(--key);
  border-radius: 0 3px 3px 0;
}
.sg-search-overlay__close,
.sg-drawer__close {
  font-size: 1.8rem;
  line-height: 1;
}

.sg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(86vw, 22rem);
  overflow-y: auto;
  background: var(--panel);
  border-left: 6px solid var(--argine);
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
  transition: clip-path .25s ease, visibility 0s linear .25s;
}
body.nav-open .sg-drawer {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .25s ease;
}
.sg-drawer-velo {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(20, 54, 58, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
body.nav-open .sg-drawer-velo {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}
.sg-drawer-capo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem .75rem 1.25rem;
  border-bottom: 1px solid var(--edge);
}
.sg-drawer-titolo {
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--type-70);
}
.sg-drawer__nav {
  margin: 0;
  padding: .5rem 1.25rem 2rem;
  list-style: none;
}
.sg-drawer__nav a {
  display: block;
  padding: .7rem 0;
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}
.sg-drawer__nav .current-menu-item > a {
  color: var(--key);
}

.sg-apertura {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(1.6rem, 4vw, 3rem);
}
.sg-apertura-testo {
  padding-bottom: 1.4rem;
}
.sg-home__title {
  max-width: 21ch;
  margin: 0;
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  text-wrap: balance;
}
.sg-apertura-conto {
  margin: .8rem 0 0;
  font-family: var(--ff-ui);
  font-size: .92rem;
  color: var(--type-70);
}
.sg-mulino {
  width: clamp(96px, 12vw, 150px);
  flex: none;
  overflow: visible;
  margin-right: 1.5rem;
  margin-bottom: -2px;
}
.sg-mulino-sale { fill: #fff; stroke: var(--type); stroke-width: 1.5; stroke-linejoin: round; }
.sg-mulino-torre { fill: #efe8d8; stroke: var(--type); stroke-width: 2; stroke-linejoin: round; }
.sg-mulino-porta { fill: var(--type); }
.sg-mulino-cappello { fill: var(--argine-scuro); stroke: var(--type); stroke-width: 2; stroke-linejoin: round; }
.sg-mulino-pale { fill: none; stroke: var(--type); stroke-width: 2; stroke-linejoin: round; }
.sg-mulino-pala path + path { fill: rgba(255, 255, 255, .85); stroke-width: 1.5; }
.sg-mulino-pale circle { fill: var(--type); }

@media (prefers-reduced-motion: no-preference) {
  .sg-mulino-pale {
    transform-box: view-box;
    transform-origin: 80px 58px;
    animation: sg-giro 2.6s cubic-bezier(.15, .6, .25, 1) .35s both;
  }
}
@keyframes sg-giro {
  from { transform: rotate(-360deg); }
  to { transform: rotate(0deg); }
}

.sg-saline {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 6px;
  background: var(--argine);
  border: 6px solid var(--argine);
}
.sg-saline--1 { grid-template-columns: 1fr; }
.sg-saline--2,
.sg-saline--3 { grid-template-columns: 1.6fr 1fr; }
.sg-vasca--grande { grid-row: span 2; }
.sg-saline--2 .sg-vasca--grande,
.sg-saline--1 .sg-vasca--grande { grid-row: auto; }
.sg-saline--4 .sg-vasca:last-child { grid-column: span 2; }
.sg-vasca {
  display: flex;
  background: var(--vasca-velo);
}
.sg-vasca-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
}
.sg-vasca .sg-photo {
  aspect-ratio: 16 / 10;
}
.sg-vasca--grande .sg-photo {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 300px;
}
.sg-vasca--grande .sg-photo__img {
  position: absolute;
  inset: 0;
}
.sg-vasca-acqua {
  flex: 1 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .95rem 1.1rem 1.1rem;
  border-top: 5px solid var(--vasca);
}
.sg-vasca--grande .sg-vasca-acqua {
  flex: none;
  padding: 1.3rem 1.5rem 1.5rem;
  gap: .6rem;
}
.sg-vasca-titolo {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.16;
  text-wrap: pretty;
}
.sg-vasca-titolo--grande {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  line-height: 1.06;
  text-wrap: balance;
}
.sg-vasca-chapo {
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--type-70);
}
.sg-vasca-acqua .sg-righello {
  margin-top: auto;
}
.sg-vasca-link:hover .sg-vasca-titolo,
.sg-filare a:hover .sg-filare-titolo,
.sg-card-link:hover .sg-card__title {
  color: var(--key);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

.sg-sezione {
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}
.sg-capo {
  margin: 0 0 1.4rem;
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.sg-capo::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: .55rem;
  background: var(--argine-tratto);
}

.sg-filari {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.4rem 2.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-filare a {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
}
.sg-filare .sg-photo {
  aspect-ratio: 1;
  border-bottom: 5px solid var(--vasca);
}
.sg-filare-testo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
.sg-filare-titolo {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.18;
}

.sg-vasche {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--argine);
  border: 6px solid var(--argine);
}
.sg-bacino:last-child:nth-child(3n + 2) { grid-column: span 2; }
.sg-bacino:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.sg-bacino {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.3rem 1.4rem 1.4rem;
  background: var(--vasca-velo);
  box-shadow: inset 0 6px 0 var(--vasca);
}
.sg-bacino-nome {
  margin: .3rem 0 .4rem;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}
.sg-bacino-nome a {
  text-decoration: none;
}
.sg-bacino-desc {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--type-70);
}
.sg-bacino-guide {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  width: 100%;
}
.sg-bacino-guide li {
  padding: .5rem 0;
  border-top: 1px solid var(--edge);
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
}
.sg-bacino-guide a {
  text-decoration: none;
}
.sg-bacino-guide a:hover,
.sg-bacino-nome a:hover {
  color: var(--key);
  text-decoration: underline;
}
.sg-bacino-tutte {
  margin-top: auto;
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--key);
  text-decoration: none;
}
.sg-bacino-tutte:hover {
  text-decoration: underline;
}

.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.6rem;
}
.sg-card {
  background: var(--panel);
  border: 1px solid var(--edge);
}
.sg-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.sg-card .sg-photo {
  aspect-ratio: 3 / 2;
  border-bottom: 5px solid var(--vasca);
}
.sg-card-testo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .9rem 1rem 1.05rem;
}
.sg-card__cat {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
  color: var(--type-70);
}
.sg-card__cat::before {
  content: "";
  width: .72em;
  height: .72em;
  background: var(--vasca);
  outline: 2px solid var(--argine);
}
.sg-card__title {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.16;
}
.sg-card__meta {
  margin-top: auto;
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--type-70);
}

.sg-single-foto {
  padding-top: clamp(1rem, 3vw, 2rem);
}
.sg-single__cover {
  border: 6px solid var(--argine);
  background: var(--argine);
}
.sg-single__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.sg-single__header,
.sg-single__body,
.sg-firma,
.sg-tappe {
  max-width: calc(var(--colonna) + 2 * var(--wrap-pad));
}
.sg-single__header {
  padding-top: 1.5rem;
}
.sg-crumbs {
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--type-70);
}
.sg-crumbs a {
  text-decoration: none;
}
.sg-crumbs a:hover {
  color: var(--key);
  text-decoration: underline;
}
.sg-single__cat {
  margin-top: 1.4rem;
}
.sg-single__title {
  margin: .5rem 0 .9rem;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  line-height: 1.06;
  text-wrap: balance;
}
.sg-single-chapo {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--type-70);
}
.sg-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  margin: 0;
  padding-bottom: 1.2rem;
  font-family: var(--ff-ui);
  font-size: .88rem;
  color: var(--type-70);
  border-bottom: 1px solid var(--edge);
}
.sg-single__meta a {
  color: var(--key);
  font-weight: 600;
  text-decoration: none;
}
.sg-single__body {
  padding-top: 1.6rem;
  font-size: 1.25rem;
  line-height: 1.62;
}
.sg-single__body > * {
  margin-top: 0;
  margin-bottom: 1.05em;
}
.sg-single__body a {
  color: var(--key);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
.sg-single__body h2 {
  margin: 2.1em 0 .6em;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.12;
}
.sg-single__body h2::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 5px;
  margin-bottom: .55rem;
  background: var(--vasca, var(--argine));
  box-shadow: 2.7rem 0 0 var(--argine);
}
.sg-single__body h3 {
  margin: 1.6em 0 .5em;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.2;
}
.sg-single__body ul,
.sg-single__body ol {
  padding-left: 1.3em;
}
.sg-single__body li {
  margin-bottom: .35em;
}
.sg-single__body blockquote {
  margin-left: 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 4px solid var(--argine);
  font-style: italic;
}
.sg-single__body figure {
  margin-bottom: 1.4em;
}
.sg-single__body figcaption {
  margin-top: .4rem;
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--type-70);
}
.sg-single__body .wp-block-table {
  overflow-x: auto;
  border-top: 5px solid var(--argine);
}
.sg-single__body table {
  font-family: var(--ff-ui);
  font-size: .9rem;
  line-height: 1.45;
  background: var(--panel);
}
.sg-single__body th,
.sg-single__body td {
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--edge);
}
.sg-single__body thead th,
.sg-single__body tr:first-child th {
  background: var(--vasca-velo, #f3efe5);
  font-weight: 700;
}
.sg-single__body #ez-toc-container {
  padding: 1rem 1.25rem;
  font-family: var(--ff-ui);
  font-size: .95rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-top: 5px solid var(--argine);
}
.sg-single__body #ez-toc-container .ez-toc-title-toggle { flex: none; width: auto; }
.sg-single__body #ez-toc-container a.ez-toc-toggle { display: inline-flex; float: none; width: auto; min-width: var(--tap); min-height: var(--tap); align-items: center; justify-content: center; }
.sg-single__body #ez-toc-container .ez-toc-js-icon-con { left: 0; border: 0; }
.sg-single__body #ez-toc-container p.ez-toc-title { margin: 0; font-family: var(--ff-d); font-size: 1.2rem; font-weight: 700; }
.sg-single__body #ez-toc-container .ez-toc-btn:focus { outline: 0; }
.sg-single__body #ez-toc-container .ez-toc-btn:focus-visible { outline: 2px solid var(--key); }
.sg-single__body #ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
}
.sg-single__body #ez-toc-container a {
  text-decoration: none;
}

.sg-firma {
  margin-top: 2.4rem;
}
.sg-firma-carta {
  padding: 1.2rem 1.4rem;
  background: var(--vasca-velo, #f3efe5);
  box-shadow: inset 6px 0 0 var(--argine);
}
.sg-firma-chi {
  margin: 0;
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--type-70);
}
.sg-firma-nome {
  margin: .2rem 0 0;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.4rem;
}
.sg-firma-nome a {
  text-decoration: none;
}
.sg-firma-bio {
  margin: .5rem 0 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

.sg-tappe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
}
.sg-tappa {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  text-decoration: none;
}
.sg-tappa--dopo {
  grid-column: 2;
  text-align: right;
  align-items: flex-end;
}
.sg-tappa-verso {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--key);
}
.sg-tappa-titolo {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}
.sg-tappa:hover .sg-tappa-titolo {
  color: var(--key);
  text-decoration: underline;
}
.sg-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.sg-footer {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  color: #e6eeea;
  background: var(--laguna-notte);
}
.sg-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--argine-tratto), #2a5357;
}
.sg-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem 3rem;
  padding-top: 2.4rem;
  padding-bottom: 2rem;
}
.sg-piede-marchio {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
}
.sg-stemma--piede {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: #f7f6f2;
  border-radius: 50%;
}
.sg-piede-motto {
  max-width: 34ch;
  margin: .7rem 0 0;
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(230, 238, 234, .82);
}
.sg-piede-rubriche ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-piede-rubriche a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .35rem 0;
  font-family: var(--ff-ui);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}
.sg-piede-rubriche a::before {
  content: "";
  width: .7em;
  height: .7em;
  background: var(--vasca);
  outline: 2px solid var(--argine);
}
.sg-piede-rubriche a:hover,
.sg-footer__nav a:hover {
  text-decoration: underline;
}
.sg-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid rgba(230, 238, 234, .16);
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: rgba(230, 238, 234, .8);
}
.sg-footer__copyright p {
  margin: 0;
}
.sg-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-footer__nav a {
  display: inline-block;
  padding: .35rem 0;
  text-decoration: none;
}

.sg-v0 { --vasca: var(--argine); --vasca-velo: #f1ece1; }
.sg-archive,
.sg-search-results,
.sg-404,
.sg-page,
.sg-contact {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.sg-archive__header {
  padding-top: clamp(1rem, 3vw, 1.8rem);
}
.sg-archivio-vasca {
  margin-top: .9rem;
  padding: calc(clamp(1.2rem, 3vw, 2.1rem) + 8px) clamp(1.1rem, 3vw, 2.3rem) clamp(1.2rem, 3vw, 2.1rem);
  background: var(--vasca-velo);
  border: 6px solid var(--argine);
  box-shadow: inset 0 8px 0 var(--vasca);
}
.sg-archivio-tipo {
  margin: 0 0 .55rem;
}
.sg-archive__title {
  margin: 0;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.sg-archive__desc {
  max-width: 42rem;
  margin-top: .8rem;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--type-70);
}
.sg-archive__desc p { margin: 0 0 .6em; }
.sg-archive__desc > :last-child { margin-bottom: 0; }
.sg-archivio-conto {
  margin: 1rem 0 0;
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--type-70);
}
.sg-archivio-cerca {
  max-width: 36rem;
  margin-top: 1.3rem;
}
.sg-archivio-cerca .sg-searchform__input {
  background: var(--panel);
}
.sg-404__msg {
  max-width: 40rem;
  margin: .9rem 0 0;
  font-size: 1.18rem;
  line-height: 1.5;
}
.sg-404__msg a {
  color: var(--key);
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
.sg-vuoto {
  max-width: 42rem;
  margin: 2rem 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.sg-registro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.6rem;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  padding: 0;
  list-style: none;
}
.sg-voce {
  border-top: 1px solid var(--edge);
}
.sg-voce:only-child { grid-column: 1 / -1; }
.sg-voce-link {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 0;
  text-decoration: none;
}
.sg-voce .sg-photo {
  aspect-ratio: 4 / 3;
  border-bottom: 5px solid var(--vasca);
}
.sg-voce-testo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  max-width: 44rem;
}
.sg-voce-titolo {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.sg-voce-chapo {
  font-size: 1.04rem;
  line-height: 1.45;
  color: var(--type-70);
}
.sg-voce-link:hover .sg-voce-titolo {
  color: var(--key);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

.sg-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
  font-family: var(--ff-ui);
}
.sg-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 .7rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--type);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.sg-pager a.page-numbers:hover {
  color: var(--key);
  border-color: var(--key);
}
.sg-pager .current {
  color: #fff;
  background: var(--key);
  border-color: var(--key);
}
.sg-pager .dots {
  background: none;
  border-color: transparent;
}

.sg-indice-vasche {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--argine);
  border: 6px solid var(--argine);
}
.sg-indice-vasche li {
  flex: 1 1 210px;
}
.sg-indice-vasche a {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  height: 100%;
  padding: calc(1rem + 6px) 1.15rem 1rem;
  text-decoration: none;
  background: var(--vasca-velo);
  box-shadow: inset 0 6px 0 var(--vasca);
}
.sg-indice-nome {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}
.sg-indice-vasche a:hover .sg-indice-nome {
  color: var(--key);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.sg-page__header,
.sg-contact__body {
  max-width: calc(var(--colonna) + 2 * var(--wrap-pad));
}
.sg-page__header {
  padding-top: clamp(1.2rem, 4vw, 2.4rem);
}
.sg-page__title {
  margin: .8rem 0 0;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  line-height: 1.06;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.sg-page__title::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: .9rem;
  background: var(--argine-tratto);
}
.sg-contact-invito {
  margin: 1rem 0 0;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--type-70);
}
.sg-contact__body {
  padding-top: 1.6rem;
}
.sg-contact__body--doppio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.6rem;
  max-width: var(--container-w);
}
.sg-contact__texte.sg-single__body { padding-top: 0; }
.sg-contact__form {
  padding: calc(clamp(1.2rem, 3vw, 2rem) + 6px) clamp(1.1rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
  background: var(--panel);
  border: 6px solid var(--argine);
  box-shadow: inset 0 6px 0 var(--vasca);
}
.sg-contact__form label {
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 600;
}

.sg-page__body > .wp-block-list:has(> li > .wsp-container) {
  padding-left: 0;
  list-style: none;
}
.sg-contact__form .wpcf7-form textarea {
  height: 11rem;
  resize: vertical;
}

@media (max-width: 1100px) {
  .sg-header__nav-wrap { display: none; }
  .sg-header__actions { margin-left: auto; }
  .sg-header__hamburger { display: inline-flex; }
  .sg-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .sg-registro { grid-template-columns: 1fr; }
  .sg-contact__body--doppio { grid-template-columns: 1fr; }
  .sg-saline,
  .sg-saline--3 { grid-template-columns: 1fr 1fr; }
  .sg-vasca--grande { grid-column: 1 / -1; grid-row: auto; }
  .sg-vasca--grande .sg-photo { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .sg-saline--4 .sg-vasca:last-child { grid-column: auto; }
  .sg-vasche { grid-template-columns: 1fr 1fr; }
  .sg-bacino:last-child:nth-child(3n + 2),
  .sg-bacino:last-child:nth-child(3n + 1) { grid-column: auto; }
  .sg-bacino:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sg-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sg-header__search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sg-header__search { min-width: var(--tap); padding: 0; justify-content: center; }
  .sg-testata { gap: 1rem; min-height: 68px; }
  .sg-stemma { width: 44px; height: 44px; }
  .sg-marchio-nome { font-size: 1.35rem; }
}
@media (max-width: 600px) {
  .sg-apertura { gap: 1rem; }
  .sg-saline,
  .sg-saline--3 { grid-template-columns: 1fr; }
  .sg-vasca:not(.sg-vasca--grande) .sg-vasca-link { flex-direction: row; }
  .sg-vasca:not(.sg-vasca--grande) .sg-photo { width: 34%; flex: none; aspect-ratio: auto; min-height: 112px; }
  .sg-vasca:not(.sg-vasca--grande) .sg-photo__img { position: absolute; inset: 0; }
  .sg-vasca:not(.sg-vasca--grande) .sg-vasca-acqua { flex: 1 1 0; border-top: 0; box-shadow: inset 5px 0 0 var(--vasca); padding: .8rem .9rem .9rem 1.1rem; }
  .sg-vasca-titolo:not(.sg-vasca-titolo--grande) { font-size: 1.1rem; }
  .sg-vasche { grid-template-columns: 1fr; }
  .sg-bacino:last-child:nth-child(odd) { grid-column: auto; }
  .sg-grid--4 { grid-template-columns: 1fr; }
  .sg-tappe { grid-template-columns: 1fr; }
  .sg-tappa--dopo { grid-column: auto; }
  .sg-single__body { font-size: 1.18rem; }
  .sg-filare a { grid-template-columns: 88px 1fr; }
  .sg-voce-link { grid-template-columns: 104px minmax(0, 1fr); gap: .9rem; padding: 1.05rem 0; }
  .sg-voce .sg-photo { aspect-ratio: 1; }
  .sg-voce-titolo { font-size: 1.2rem; }
  .sg-archive__desc { font-size: 1.02rem; line-height: 1.45; }
  .sg-voce-chapo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .98rem; }
}

body.sg {
  background: var(--page-bg) !important;
  color: var(--type) !important;
}

body.sg #page,
body.sg #primary,
body.sg .ast-article-post,
body.sg .site-main > article,
body.sg .ast-article-single,
body.sg .site-content,
body.sg .content-area,
body.sg .site-main,
body.sg #content,
body.sg .entry-content,
body.sg .ast-container {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  max-width: 100% !important;
  display: block !important;
}

body.sg .ast-above-footer,
body.sg .site-header,
body.sg .footer-widget-area,
body.sg #ast-mobile-header,
body.sg .ast-page-title-bar,
body.sg .ast-main-header-wrap,
body.sg #ast-desktop-header,
body.sg .ast-primary-header-bar,
body.sg .ast-above-header-wrap,
body.sg .ast-breadcrumbs-wrapper,
body.sg .ast-secondary-header-bar,
body.sg .ast-header-breadcrumb {
  display: none !important;
  overflow: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  min-height: 0 !important;
}

body.sg .ast-mobile-header-wrap,
body.sg .ast-below-header-wrap,
body.sg .ast-breadcrumbs-inner,
body.sg .entry-banner,
body.sg .main-header-bar-wrap,
body.sg .site-below-footer-wrap,
body.sg .ast-footer-copyright,
body.sg .site-footer,
body.sg .ast-archive-title-wrap {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  height: 0 !important;
  display: none !important;
  min-height: 0 !important;
}

body.sg .ast-page-header,
body.sg .ast-below-footer,
body.sg #colophon,
body.sg #masthead,
body.sg .main-header-bar,
body.sg .ast-small-footer,
body.sg .ast-footer-overlay {
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  min-height: 0 !important;
  display: none !important;
  border: none !important;
  margin: 0 !important;
}

body.sg.home .entry-header,
body.sg.home .ast-archive-description {
  display: none !important;
}

:where(body.sg) :where(input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], textarea) {
  background: transparent;
  color: var(--type);
  border: 1px solid var(--border);
}

body.sg #ast-scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: var(--tap);
  height: var(--tap);
  background: var(--type);
  color: var(--panel);
  cursor: pointer;
}
body.sg #ast-scroll-top .ast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
body.sg #ast-scroll-top svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(180deg);
}

body.sg.admin-bar .sg-header { top: 32px; }
@media (max-width: 782px) {
  body.sg.admin-bar .sg-header { top: 46px; }
}

body.sg .wpcf7-form p { margin: 0 0 24px; }
body.sg .wpcf7-form input[type="text"],
body.sg .wpcf7-form input[type="email"],
body.sg .wpcf7-form input[type="tel"],
body.sg .wpcf7-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 10px 0; font-family: var(--text-font); font-size: 1.1rem; color: var(--type);
  box-shadow: none;
}
body.sg .wpcf7-form input:focus,
body.sg .wpcf7-form textarea:focus { border-bottom-color: var(--key); }
body.sg .wpcf7-form input[type="submit"] {
  min-height: var(--tap); padding: 0 1.5rem; background: var(--key); color: #fff; border: none;
  border-radius: 3px; font-family: var(--ff-ui); font-size: .95rem; font-weight: 600; cursor: pointer;
}
