/* ==========================================================================
   Giovanni Rosso - base layout (ricostruzione del layout del sito originale)
   Breakpoint: phone <= 767px, tablet 768-979px, desktop >= 980px
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* le àncore non finiscono sotto l'header fisso */
[id] { scroll-margin-top: 150px; }
body {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.05em;
	font-weight: 300;
	line-height: 1.5;
	color: #fff;
	background: #000;
}
img, video { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #a6192e; text-decoration: none; transition: color .3s; }
a:hover { color: #a36069; }
p { margin: 0 0 10px; }
strong, b { font-weight: 600; }
table { border-collapse: collapse; border-spacing: 0; }
button { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 200; line-height: 1.3; color: #fff; margin: 0; padding: 20px 0 14px; }
h1 { font-size: 250%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }
h4 { font-size: 110%; }
h5 { font-size: 100%; }

.clr { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }
.wrapper-website { width: 85%; margin: 0 auto; position: relative; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- colonne (classi usate nei contenuti) ---------- */
.one-half, .one-third, .two-third, .one-fourth, .two-fourth, .three-fourth,
.one-fifth, .two-fifth, .three-fifth, .four-fifth { float: left; margin: 10px 4% 10px 0; }
.one-half, .two-fourth { width: 48%; }
.one-third { width: 30.6%; }
.two-third { width: 65.4%; }
.one-fourth { width: 22%; }
.three-fourth { width: 74%; }
.one-fifth { width: 16.8%; }
.two-fifth { width: 37.6%; }
.three-fifth { width: 58.4%; }
.four-fifth { width: 79.2%; }
.last { margin-right: 0 !important; }
.moduletable::after, .content-module::after { content: ""; display: table; clear: both; }

/* ---------- visibilità responsive (come Bootstrap 2) ---------- */
.visible-phone, .visible-tablet { display: none !important; }
@media (max-width: 767px) {
	.visible-phone { display: inherit !important; }
	.hidden-phone { display: none !important; }
	.visible-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 979px) {
	.visible-tablet { display: inherit !important; }
	.hidden-tablet { display: none !important; }
	.visible-desktop { display: none !important; }
}
@media (min-width: 980px) {
	.hidden-desktop { display: none !important; }
}

/* ---------- header ---------- */
.image-position { position: relative; z-index: 1; }
.website-header {
	position: absolute; left: 0; right: 0; top: -5px; margin-top: 10px; z-index: 30;
	height: 140px;
	background: linear-gradient(180deg, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 100%);
	transition: .5s;
}
/* custom.css del sito originale imposta position:relative: qui l'header deve stare sopra la testata */
body .website-header { position: absolute; top: -5px; }
body .website-header.isStuck { position: fixed; top: 0 !important; margin-top: 0; background: linear-gradient(180deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%); }
.admin-bar .website-header.isStuck { top: 32px !important; }
.website-header .wrapper-website { height: 140px; }
.no-image-page .image-position { min-height: 150px; }

.module-translate { position: absolute; top: 10px; right: 14px; z-index: 99; }
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.lang-switch li { margin: 3px 0 0; }
.lang-switch a { display: block; opacity: .75; }
.lang-switch li.current-lang a, .lang-switch a:hover { opacity: 1; }
.lang-switch img { width: 18px; height: 12px; display: block; }

.menu-top { width: 100%; color: #fff; font-size: 105%; padding-top: 24px; }
.menu-top table { width: 100%; table-layout: fixed; }
.menu-top td { width: 20%; vertical-align: top; text-align: center; }
.menu-top a { display: inline-block; padding-top: 55px; color: #fff; line-height: 1.2em; font-size: 85%; text-transform: uppercase; text-decoration: none !important; }
.menu-top td.left a { float: left; }
.menu-top td.right a { float: right; }
.menu-top a:hover, .menu-top a.active-menu { color: #a6192e; transition: 1s; }
.menu-top a.active-menu { font-weight: 600; }
.menu-top td.logo a { padding-top: 0; float: none; }
.menu-top td.logo img { display: block; margin: 0 auto; width: 170px; height: 90px; }

/* header mobile: logo centrato, pulsante menu fisso in alto a destra (come l'originale) */
.mobile-bar { display: none; }
.menu-toggle { display: none; }
@media (max-width: 979px) {
	.menu-top { display: none; }
	.mobile-bar { display: flex; align-items: flex-start; justify-content: center; height: 140px; padding-top: 30px; }
	.mobile-bar .logo img { width: 150px; height: auto; }
	.menu-toggle { display: block; position: fixed; top: 30px; right: 0; z-index: 1001; width: 80px; height: 50px; padding: 10px 25px; background: none; border: 0; cursor: pointer; }
	.admin-bar .menu-toggle { top: 76px; }
	.menu-toggle span { display: block; width: 30px; height: 2px; background: #fff; margin: 0 0 8px; box-shadow: 0 0 4px rgba(0,0,0,.6); }
	.menu-toggle span:last-child { margin-bottom: 0; }
	.module-translate { right: 25px; }
}
.offcanvas { position: fixed; inset: 0; z-index: 1002; background: rgba(48,48,48,.95); overflow-y: auto; text-align: center; padding: 0 20px 40px; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .4s ease, transform .4s ease, visibility .4s; }
.offcanvas.open { opacity: 1; visibility: visible; transform: none; }
.offcanvas-logo { display: block; margin: 30px 0; }
.offcanvas-logo img { width: 170px; height: auto; }
.offcanvas-close { position: fixed; top: 40px; right: 10px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.offcanvas-close::before, .offcanvas-close::after { content: ""; position: absolute; left: 7px; top: 20px; width: 27px; height: 0; border: 2px solid #fff; }
.offcanvas-close::before { transform: rotate(45deg); }
.offcanvas-close::after { transform: rotate(-45deg); }
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas li { margin: 5px 7px; }
.offcanvas li a { display: inline-block; padding: 7px 14px; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 400; line-height: 1.4; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.09); transition: color .3s; }
.offcanvas li.current-menu-item > a, .offcanvas li a:hover { color: #a6192e; }
.offcanvas-overlay { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- contenuto ---------- */
.website-content { position: relative; z-index: 20; }
.main-columns { padding: 0; }
.main_content { width: 100%; }
.main_component { padding: 0; }
.top-module-position, .image-text-bottom { width: 100%; }
/* moduli in posizione "top" (es. schede vini): contenuto centrato all'85% come l'originale */
.top-module-position { position: relative; clear: both; margin: 0 0 -15px; z-index: 1; }
.top-module-position .content-module, .bottom-module-position .content-module { padding: 30px 0 18px; }
.top-module-position .content-module > [class^="custom"],
.bottom-module-position .content-module > [class^="custom"] { max-width: 85%; margin: 5px auto 0; padding: 0 18px; }
.top-module-position .moduletable, .image-text-bottom .moduletable { position: relative; }
.entry-content iframe { max-width: 100%; }

/* ---------- slider (ricostruzione layout LayerSlider) ---------- */
.grls { position: relative; width: 100%; overflow: hidden; margin: 0 auto; }
.grls-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.grls-l { position: absolute; white-space: nowrap; opacity: 0; transition: opacity 1s ease, transform 1s ease; }
.grls-l.wrap { white-space: normal; }
.grls-l > p:last-child { margin-bottom: 0; }
.grls.ready .grls-l { opacity: 1; }
.grls.ready .grls-l[data-o] { opacity: var(--o); }
.grls-l.anim-up { transform: translateY(40px); }
.grls.inview .grls-l.anim-up { transform: none; }
.grls-bgvideo { position: absolute; inset: 0; opacity: 1; }
.grls-bgvideo video { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.grls-l img { max-width: none; display: block; }
.grls-l a.grls-link { color: inherit; display: block; }
.grls-l video { max-width: none; }
@media (max-width: 767px) { .grls .hide-phone { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .grls .hide-tablet { display: none !important; } }
@media (min-width: 1025px) { .grls .hide-desktop { display: none !important; } }

/* ---------- news: card (comune a carosello, elenco, "altre news") ---------- */
.news-card { display: flex; flex-direction: column; height: 100%; background: #404040; border: 1px solid #404040; transition: border-color .4s, transform .4s; }
.news-card:hover { border-color: #a6192e; transform: translateY(-4px); }
.news-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #333; flex: 0 0 auto; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); opacity: .85; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #d9d9d9; font-weight: 500; }
.news-card-title { font-size: 20px; font-weight: 300; line-height: 1.35; padding: 0; margin: 10px 0 12px; }
.news-card-title a { color: #fff; }
.news-card-title a:hover { color: #a6192e; }
.news-card-excerpt { font-size: 15px; line-height: 1.75; color: #dcdcdc; margin: 0 0 18px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-more { margin-top: auto; align-self: flex-start; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; border-bottom: 1px solid #a6192e; padding-bottom: 3px; }
.news-card-more:hover { color: #a6192e; }

/* ---------- news: carosello home ---------- */
.news-carousel { position: relative; width: 85%; margin: 0 auto; padding: 10px 0 40px; }
.news-viewport { overflow: hidden; margin: 0 -12px; touch-action: pan-y; }
.news-track { display: flex; transition: transform .6s cubic-bezier(.25,.8,.25,1); }
.news-slide { flex: 0 0 33.3333%; padding: 0 12px; }
@media (max-width: 1139px) { .news-slide { flex-basis: 50%; } }
@media (max-width: 719px) { .news-slide { flex-basis: 100%; } .news-carousel { width: 88%; } }
.news-nav { position: absolute; top: 34%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.6); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer; transition: background .3s, border-color .3s; }
.news-nav:hover { background: #a6192e; border-color: #a6192e; }
.news-nav[disabled] { opacity: .3; cursor: default; }
.news-prev { left: -64px; }
.news-next { right: -64px; }
@media (max-width: 1139px) { .news-prev { left: -10px; } .news-next { right: -10px; } }
@media (max-width: 719px) {
	/* una card per volta: frecce a metà dell'immagine (larghezza carosello 88vw, foto 16:9) */
	.news-nav { top: calc(88vw * 9 / 32 - 13px); width: 40px; height: 40px; font-size: 26px; line-height: 34px; }
	.news-card-excerpt { -webkit-line-clamp: 4; font-size: 16px; }
}
.news-dots { text-align: center; margin-top: 24px; }
.news-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 5px; background: #555; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.news-dots button.active { background: #a6192e; transform: scale(1.3); }
.news-all { text-align: center; margin: 30px 0 0; }
.news-all .button1, .news-back .button1 { font-size: 15px; letter-spacing: .08em; padding: .9em 1.6em; }

/* ---------- news: elenco ---------- */
.news-archive { padding: 190px 0 60px; }
.news-archive-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.news-archive-title { font-size: 250%; padding: 0 0 10px; }
.news-archive-title::after, .news-related-title::after { content: ""; display: block; width: 60px; height: 1px; background: #a6192e; margin: 18px auto 0; }
.news-archive-intro { color: #aaa; line-height: 1.7; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
	.news-grid { grid-template-columns: 1fr; }
	/* una colonna: niente allineamento da garantire, titoli e testi interi */
	.news-card-title { font-size: 21px; }
	.news-card-excerpt { -webkit-line-clamp: 4; font-size: 16px; }
	.news-card-body { padding: 22px 22px 26px; }
	.news-archive-title { font-size: 34px; }
}
/* prima pagina: la news più recente in evidenza su due colonne */
@media (min-width: 1024px) {
	.news-grid-first > .news-card:first-child { grid-column: span 3; flex-direction: row; }
	.news-grid-first > .news-card:first-child .news-card-img { flex: 0 0 58%; aspect-ratio: auto; min-height: 380px; }
	.news-grid-first > .news-card:first-child .news-card-body { padding: 40px; justify-content: center; }
	.news-grid-first > .news-card:first-child .news-card-title { font-size: 28px; }
	.news-grid-first > .news-card:first-child .news-card-excerpt { -webkit-line-clamp: 5; font-size: 15px; }
}
.news-pagination { text-align: center; padding: 50px 0 0; }
.news-pagination .page-numbers { display: inline-block; min-width: 42px; padding: 9px 12px; margin: 0 3px; border: 1px solid #333; color: #ccc; }
.news-pagination a.page-numbers:hover { border-color: #a6192e; color: #fff; }
.news-pagination .page-numbers.current { background: #a6192e; border-color: #a6192e; color: #fff; }

/* ---------- news: dettaglio ---------- */
.single-news { padding: 190px 0 40px; }
.single-news-panel { width: 85%; max-width: 1100px; margin: 0 auto; background: #404040; padding: 50px 60px 60px; }
.single-news-head { text-align: center; }
.news-breadcrumb { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #bbb; }
.news-breadcrumb a { color: #ddd; }
.news-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.news-breadcrumb span { margin: 0 8px; }
.single-news-title { font-size: 220%; font-weight: 200; line-height: 1.25; color: #fff; padding: 18px 0 16px; }
.single-news-meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #ddd; }
.single-news-meta span { margin: 0 8px; color: #bbb; }
.single-news-image { margin: 40px 0 0; }
.single-news-image img { width: 100%; height: auto; max-height: 640px; object-fit: cover; display: block; }
/* il testo occupa la stessa larghezza della foto */
.single-news-body { margin: 45px 0 0; }
.single-news-body .entry-content { font-size: 17px; line-height: 1.85; color: #f0f0f0; }
.single-news-body .entry-content p { margin: 0 0 1.3em; }
.single-news-body .entry-content h2, .single-news-body .entry-content h3 { color: #fff; padding-top: 1em; }
.single-news-body .entry-content a { color: #fff; border-bottom: 1px solid #a6192e; }
.single-news-body .entry-content a:hover { color: #ffb3bd; }
.single-news-body .entry-content img { height: auto; margin: 10px 0; }
.single-news-body .entry-content strong { color: #fff; }
.single-news-nav { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 30px; border-top: 1px solid #5a5a5a; }
.single-news-nav a { flex: 1; color: #fff; font-size: 15px; line-height: 1.5; max-width: 48%; }
.single-news-nav a small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ccc; margin-bottom: 6px; }
.single-news-nav a:hover { color: #ffb3bd; }
.single-news-nav .next { text-align: right; margin-left: auto; }
.news-back { text-align: center; margin: 50px 0 0; }
.news-related { padding: 90px 0 30px; }
.news-related-title { text-align: center; font-size: 180%; margin-bottom: 40px; }
@media (max-width: 767px) {
	.news-archive, .single-news { padding-top: 150px; }
	.single-news-title { font-size: 26px; line-height: 1.3; }
	.single-news-panel { width: 92%; padding: 30px 20px 40px; }
	.single-news-body .entry-content { font-size: 17px; line-height: 1.85; }
	.single-news-meta { font-size: 12px; }
	.single-news-nav { flex-direction: column; }
	.single-news-nav a { max-width: none; }
}

/* ---------- pagine interne senza header immagine ---------- */
.page-plain .main-columns { padding: 20px 0 60px; }
.page-plain .entry-content { line-height: 1.7; }
.sitemap-list ul { list-style: none; padding-left: 20px; }
.sitemap-list li { margin: 6px 0; }

/* ---------- footer ---------- */
.website-footer { padding: 18px 0 30px; }
.footer-modules .margin80 { text-align: left; }
.footer-modules h3 { font-size: 125%; }
.footer-modules .menufooter .one-half { margin-top: 0; }
/* EN/RU/ZH hanno nel contenuto un margin-top: 15px sulla colonna Vigneti (compensava lo scalino dei vini): annullato per allineare tutte le lingue */
.footer-modules [class^="custom"] > .one-fourth:first-child > .menufooter { margin-top: 0 !important; }

/* ---------- animazioni in ingresso ---------- */
.animbox .moduletable { animation: none; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	body { font-size: 1em; }
	h1 { font-size: 180%; }
	.one-half, .one-third, .two-third, .one-fourth, .two-fourth, .three-fourth,
	.one-fifth, .two-fifth, .three-fifth, .four-fifth { float: none; width: auto; margin: 10px 0; }
	.wrapper-website { width: 92%; }
}

/* ---------- tab (ex RokSprocket, pagina vigneti) ---------- */
.gr-tabs { margin: 30px 0; }
.gr-tabs-nav { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.gr-tabs-nav button { background: none; border: 0; border-bottom: 2px solid transparent; color: #ccc; padding: 12px 22px; cursor: pointer; text-transform: uppercase; font-weight: 300; letter-spacing: .03em; }
.gr-tabs-nav li.active button, .gr-tabs-nav button:hover { color: #fff; border-bottom-color: #a6192e; }
.gr-tab-pane { display: none; line-height: 1.8; animation: grFade .6s; }
.gr-tab-pane.active { display: block; }
@keyframes grFade { from { opacity: 0; } to { opacity: 1; } }
