/* Locanda dei Melograni · aggiunte del sito statico (25/11/2026). Il resto dello stile è quello del tema originale (Helix Ultimate). */
:root { --ddt-colore: #8c552e; }

/* font ospitati sul sito (prima arrivavano da Google Fonts) */
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/font/great-vibes-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: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/font/great-vibes-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: 'Neucha'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/font/neucha-latin.woff2) format('woff2'); }

/* moduli: campo trappola per i bot, consenso privacy, messaggio di errore */
.ddt-trappola { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ddt-privacy-label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.ddt-privacy-label input { width: 18px; height: 18px; margin: 3px 0 0; }
.ddt-privacy-label a { color: inherit; text-decoration: underline; }
.ddt-esito { margin: 0 0 16px; padding: 12px 16px; background: #fff3f2; border-left: 4px solid #c62828; color: #7a1c1c; border-radius: 4px; }
.ddt-esito a { color: inherit; text-decoration: underline; }

/* video YouTube e mappa Google: si caricano solo al clic */
.ddt-esterno { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; background: #f4efe9; color: #333; text-align: center; font-size: 15px; line-height: 1.45; }
.ddt-esterno p { margin: 0; max-width: 460px; }
.ddt-esterno a { color: var(--ddt-colore); text-decoration: underline; }
.ddt-esterno button { padding: 10px 26px; border: 0; border-radius: 4px; background: var(--ddt-colore); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ddt-esterno button:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }
.ddt-esterno-mappa { min-height: 450px; }

/* pagine «grazie» e «pagina non trovata» */
.ddt-semplice { padding: 40px 0 60px; }
.ddt-semplice h1 { margin-bottom: 20px; }
/* sulle pagine «grazie» e «pagina non trovata» il menu (chiaro) sta su una testata marrone come il piè di pagina */
.ddt-pagina-semplice #sp-header { background: #8c552e; }

/* ---------- impaginazione (richieste di Fabio, 25/11/2026) ---------- */
:root { --ddt-marrone: #8c552e; --ddt-spazio: 32px; }

/* sezioni «a tutta larghezza» con contenuto: stesso contenitore centrato del resto del sito (classe aggiunta da staticizza.py) */
.ddt-contenitore { max-width: 1320px; }

/* gallerie fotografiche: centrate nella pagina (prima partivano da sinistra lasciando vuoto a destra) */
.sppb-gallery { justify-content: center; }

/* colonne affiancate: un po' più d'aria tra foto e testi */
@media (min-width: 992px) {
  .sppb-row > [class*="sppb-col-md-"] > .sppb-column { padding-left: 8px; padding-right: 8px; }
}

/* riquadri delle news (home, News e eventi): foto e testo affiancati e staccati solo se il riquadro è largo,
   altrimenti foto sopra e testo sotto; testo d'anteprima di lunghezza contenuta */
.sppb-addon-article-layout-content { container-type: inline-size; }
.sppb-addon-article-layout-content .sppb-article-introtext { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.sppb-addon-article-layout-content .sppb-article-introtext h2 { font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0 0 .5em; }
.sppb-addon-article-layout-content .sppb-article-introtext img { display: none; }
.sppb-addon-article-layout-content .sppb-readmore { display: inline-block; margin-top: 14px; padding: 6px 18px; border-radius: 4px; background: var(--ddt-marrone); color: #fff !important; text-decoration: none; }
.sppb-addon-article-layout-content .sppb-article-img-wrap { display: block; margin-bottom: 14px; }
.sppb-addon-article-layout-content .sppb-article-info-wrap { padding: 0 !important; }
@container (min-width: 700px) {
  .ddt-riquadro { display: flex; gap: var(--ddt-spazio); align-items: flex-start; }
  .ddt-riquadro .sppb-article-img-wrap { flex: 0 0 50%; margin-bottom: 0; }
  .ddt-riquadro .sppb-article-info-wrap { flex: 1 1 auto; min-width: 0; padding-top: 4px !important; }
}

/* foto e testi nelle sezioni affiancate (es. «Camere», «Location»): spazio minimo tra le colonne anche sotto i 992 px */
.sppb-addon-gallery + .sppb-addon, .sppb-addon-single-image { margin-bottom: 0; }

/* ---------- articoli (Dintorni, News, Archivio, informative) ---------- */
body.view-article #sp-main-body { padding: 60px 0 80px; }
body.view-article .article-details { max-width: 860px; margin: 0 auto; }
body.view-article .article-full-image { margin: 0 0 28px; }
body.view-article .article-full-image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 30px rgba(60, 35, 15, .15); }
body.view-article .article-header h1 { margin: 0 0 10px; line-height: 1.15; }
body.view-article .article-info { margin: 0 0 6px; }
body.view-article .article-info .category-name a { display: inline-block; padding: 2px 10px; border-radius: 20px; background: rgba(140, 85, 46, .12); color: var(--ddt-marrone); font-size: 13px; text-decoration: none; }
body.view-article .article-ratings-social-share { margin: 0 0 22px; padding: 8px 0; border-top: 1px solid rgba(140, 85, 46, .18); border-bottom: 1px solid rgba(140, 85, 46, .18); }
body.view-article [itemprop="articleBody"] { font-size: 17px; line-height: 1.75; }
body.view-article [itemprop="articleBody"] p { margin: 0 0 1.1em; }
body.view-article [itemprop="articleBody"] img { max-width: 100%; height: auto; border-radius: 4px; }
body.view-article [itemprop="articleBody"] a { color: var(--ddt-marrone); text-decoration: underline; text-underline-offset: 3px; }
body.view-article .pagenavigation { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(140, 85, 46, .18); }
body.view-article .pagenavigation .pagination { display: flex; justify-content: space-between; width: 100%; }
body.view-article .pagenavigation .btn { padding: 8px 20px; border: 0; border-radius: 4px; background: var(--ddt-marrone); color: #fff; font-size: 15px; }
body.view-article .pagenavigation .btn:hover, body.view-article .pagenavigation .btn:focus-visible { background: #6f4123; color: #fff; }
body.view-article .pagenavigation .next { margin-left: auto; }
@media (max-width: 767px) { body.view-article #sp-main-body { padding: 36px 0 50px; } body.view-article [itemprop="articleBody"] { font-size: 16px; } }
.sppb-addon-article-layout-content .sppb-article-img-wrap img { width: 100% !important; float: none !important; margin: 0 !important; height: auto; border-radius: 4px; }
/* home, «Camere»: le 4 foto in griglia 2×2 fluida (erano fisse a 300×200 px e uscivano dal contenitore) */
#section-id-1520495877856 .sppb-gallery li { flex: 0 0 50%; max-width: 50%; }
#section-id-1520495877856 .sppb-gallery img { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- banner «Cookie e contenuti esterni» ---------- */
.ddt-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000; max-width: 720px; margin: 0 auto; padding: 20px 56px 20px 24px;
  background: #fffdf6; border-top: 4px solid var(--ddt-marrone); border-radius: 6px; box-shadow: 0 18px 50px rgba(40, 25, 10, .28);
  font-size: 15px; line-height: 1.5; color: #333; }
.ddt-cookie p { margin: 0 0 10px; }
.ddt-cookie a { color: var(--ddt-marrone); text-decoration: underline; }
.ddt-cookie__titolo { font-weight: 700; color: #111; font-size: 17px; }
.ddt-cookie__azioni { display: flex; gap: 10px; flex-wrap: wrap; }
.ddt-cookie__azioni button { padding: 9px 24px; border: 2px solid var(--ddt-marrone); border-radius: 4px; background: #fff; color: var(--ddt-marrone);
  font: inherit; font-weight: 600; cursor: pointer; }
.ddt-cookie__azioni button[data-consenso="si"] { background: var(--ddt-marrone); color: #fff; }
.ddt-cookie__azioni button:focus-visible, .ddt-cookie__chiudi:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }
.ddt-cookie__chiudi { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: #555; cursor: pointer; }

/* ---------- header e testatine (richieste di Fabio, 25/11/2026) ---------- */
@media (min-width: 992px) {
  /* logo più grande: la targhetta «I Melograni» scende sotto la fascia del menu */
  #sp-header { z-index: 50; overflow: visible; }
  #sp-header #sp-logo, #sp-header .logo { position: relative; overflow: visible; }
  #sp-header .logo { width: 150px; height: 95px; }
  #sp-header .logo-image { position: absolute; top: 10px; left: 0; width: auto; height: 150px !important; max-height: none;
    filter: drop-shadow(0 8px 14px rgba(40, 25, 10, .22)); transition: transform .2s ease; }
  #sp-header .logo a:hover .logo-image, #sp-header .logo a:focus-visible .logo-image { transform: translateY(2px); }
  /* bandierina della lingua: centrata sulla stessa riga delle voci di menu (aveva 30 px di margine sopra) */
  #sp-menu .sp-module._lang { margin-top: 12px; align-self: center; margin-left: 24px; }  /* +6 px: centro sulla riga del testo */
  #sp-menu .mod-languages ul { margin: 0; }
  #sp-menu .mod-languages img { display: block; width: 34px; height: auto; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
  /* testatine delle pagine interne: più alte, foto centrata, titolo staccato dal logo */
  .sp-page-title { padding: 200px 0 80px; background-position: center 45%; background-size: cover; }
  .sp-page-title .sp-page-title-heading { margin: 0; font-size: 64px; line-height: 1.1; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .sp-page-title { padding-top: 150px; padding-bottom: 60px; background-size: cover; background-position: center; }
}
@media (max-width: 991px) {
  /* telefono e tablet: il logo orizzontale (77 px) era più alto della barra (55 px) e la carrozza risultava tagliata */
  #sp-header .logo { display: flex; align-items: center; height: 55px; }
  #sp-header .logo-image-phone { height: 44px !important; width: auto; margin: 0; }
}
@media (max-width: 767px) {
  .sp-page-title { padding-bottom: 55px; background-size: cover; background-position: center; }
}
@media (min-width: 768px) and (max-width: 991px) {
  /* tablet: bandierina centrata sulla barra (55 px) accanto al pulsante del menu */
  #sp-menu .sp-module._lang { margin-top: 8px; align-self: center; margin-right: 18px; }
  #sp-menu .mod-languages ul { margin: 0; }
  #sp-menu .mod-languages img { display: block; width: 30px; height: auto; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
}
