/* PAGINE GENERICHE (alpha): fascia alta, legali, News, notizia singola, newsletter, Degustazioni, 404/ricerca. */

/* Fascia alta (slider Elementor da 500px) */
.mci-hero-pagina {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	padding: 140px 20px 0;
	background: #333 var(--mci-bg) center / cover no-repeat;
	text-align: center;
}
.mci-hero-pagina__title { font-size: 58px; line-height: 1; color: var(--mci-color-white); }

/* Testi dell'editor */
.mci-content p { margin: 0 0 16px; line-height: 28.8px; }
.mci-content a { text-decoration: underline; }
.mci-content ul, .mci-content ol { margin: 0 0 16px; padding-left: 1.4em; list-style: disc; }

/* Legali: colonna 1170px, margine 150px, titoli blu-grigi, fisarmoniche affiancate a coppie */
.mci-page { margin: 150px 0; }
.mci-page__inner { max-width: 1170px; margin: 0 auto; padding: 10px; }
.mci-legal h2 { margin: 45px 0 26px; font-size: 52px; line-height: 1.38; color: #3c556e; }
.mci-legal h2:first-child { margin-top: 26px; }
.mci-legal h3 { margin: 70px 0 21px; font-size: 42px; line-height: 1.57; color: #3c556e; }
.mci-legal h4 { margin: 30px 0 16px; font-size: 26px; line-height: 1.4; color: #3c556e; }
.mci-legal details {
	display: inline-block;
	width: 50%;
	vertical-align: top;
	padding: 15px;
}
.mci-legal summary {
	padding: 15px 20px;
	border: 1px solid #d5d8dc;
	font-weight: 700;
	color: #6ec1e4;
	cursor: pointer;
	list-style: none;
}
.mci-legal summary::-webkit-details-marker { display: none; }
.mci-legal summary::before { content: "+"; display: inline-block; width: 1.5em; }
.mci-legal details[open] summary { color: #61ce70; }
.mci-legal details[open] summary::before { content: "−"; }
.mci-legal details > :not(summary) { padding: 15px 20px; border: 1px solid #d5d8dc; border-top: 0; margin: 0; }

/* Schede delle notizie (cards Elementor) */
.mci-cards-section { max-width: 1200px; margin: 120px auto 0; padding: 10px; }
.mci-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.mci-card { min-width: 0; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); overflow: hidden; }
.mci-card__media { display: block; height: 249px; overflow: hidden; }
.mci-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mci-card:hover .mci-card__img { transform: scale(1.05); }
.mci-card__body { padding: 38px 30px 30px; text-align: center; color: #54595f; }
.mci-card__title { font-size: 21px; line-height: 1.57; color: #54595f; }
.mci-card__excerpt { margin: 10px 0 15px; font-size: 14px; line-height: 21px; }
.mci-card__more { font-size: 12px; line-height: 21px; font-weight: 700; color: #54595f; }
.mci-card__more:hover, .mci-card__title a:hover { color: var(--mci-color-gold); }
.mci-pager { margin: 30px 0; text-align: center; }
.mci-pager .page-numbers { padding: 4px 10px; }

/* Newsletter */
.mci-newsletter { max-width: 1200px; margin: 60px auto 120px; padding: 0 10px; }
.mci-newsletter__box { padding: 50px 10px; background: #fff; text-align: center; }
.mci-newsletter__title { font-size: 42px; line-height: 1; color: #000; }
.mci-newsletter__text { margin: 12px 0 0; }
.mci-newsletter__text p { margin: 0; line-height: 28.8px; }
.mci-newsletter__form { width: 80%; margin: 40px auto 0; text-align: left; }

/* Notizia singola (C-Article) */
.mci-article-head { padding: 150px 20px 50px; background: var(--mci-color-bottle-bg); text-align: center; }
.mci-article-head__logo { width: 295px; margin: 0 auto 10px; }
.mci-article-head__meta { display: flex; justify-content: center; gap: 25px; font-size: 14px; line-height: 24.5px; font-weight: 300; }
.mci-article { max-width: 1170px; margin: 150px auto 0; padding: 0 10px; }
.mci-article__img { width: 100%; height: auto; margin-bottom: 40px; }
.mci-article__title { margin-bottom: 36px; font-size: 42px; line-height: 1; color: #000; }
.mci-article__text { color: #4a4a4a; }
.mci-video { position: relative; max-width: 800px; margin: 40px auto 0; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.mci-video__poster { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.mci-video__play {
	position: absolute; inset: 0; margin: auto; width: 76px; height: 54px;
	border: 0; border-radius: 14px; background: rgba(0, 0, 0, .7); cursor: pointer;
}
.mci-video__play::before { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.mci-video:hover .mci-video__play { background: #f00; }
.mci-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Degustazioni */
.mci-intro { max-width: 1200px; margin: 120px auto 0; padding: 10px; text-align: center; }
.mci-intro__kicker { font-size: 22px; line-height: 1; color: var(--mci-color-gold); }
.mci-intro__title { margin: 5px 0 22px; font-size: 42px; line-height: 1; color: #000; }
.mci-intro__text { max-width: 880px; margin: 0 auto; color: #54595f; }
.mci-flips { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 90px; margin-top: 40px; padding: 40px 20px; background: #333 var(--mci-bg) center / cover no-repeat; }
.mci-flip { min-width: 0; height: 440px; perspective: 1000px; }
.mci-flip__inner { position: relative; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.mci-flip:hover .mci-flip__inner, .mci-flip:focus .mci-flip__inner { transform: rotateY(180deg); }
.mci-flip__front, .mci-flip__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; backface-visibility: hidden; color: #fff; text-align: center; }
.mci-flip__front { background: rgba(0, 0, 0, .35); }
.mci-flip__back { background: rgba(0, 0, 0, .75); transform: rotateY(180deg); }
.mci-flip h3 { color: #fff; font-weight: 600; font-size: 42px; line-height: 1; }
.mci-flip__back h3 { font-size: 32px; margin-bottom: 20px; }
.mci-booking { max-width: 1140px; margin: 40px auto 0; padding: 10px; text-align: center; }
.mci-booking__title { font-size: 42px; line-height: 1; color: #000; }
.mci-booking__text { margin-top: 22px; color: #54595f; }
.mci-booking__form { margin-top: 30px; text-align: left; }

/* 404 e ricerca */
.mci-plain { max-width: 900px; margin: 0 auto; padding: 220px 20px 120px; text-align: center; }
.mci-plain__title { margin-bottom: 20px; font-size: 42px; line-height: 1.2; }
.mci-btn--dark { color: #000; margin-top: 20px; }
.mci-btn--dark:hover { color: #fff; background: #000; border-color: #000; }
.mci-results { margin-top: 40px; text-align: left; }
.mci-results li { margin-bottom: 20px; }
.mci-results a { font-family: var(--mci-font-heading); font-size: 22px; color: #000; }

@media (max-width: 1024px) {
	.mci-legal details { display: block; width: 100%; padding: 0; margin-bottom: 15px; }
	.mci-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mci-cards-section, .mci-intro, .mci-newsletter, .mci-article { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767px) {
	.mci-hero-pagina__title { font-size: 32px; }
	.mci-legal h2 { font-size: 34px; }
	.mci-legal h3 { font-size: 28px; margin-top: 40px; }
	.mci-page { margin: 120px 0 60px; }
	.mci-cards { grid-template-columns: minmax(0, 1fr); }
	.mci-newsletter__title, .mci-intro__title, .mci-booking__title, .mci-article__title { font-size: 32px; }
	.mci-newsletter__form { width: 100%; }
	.mci-flips { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mci-article-head__logo { width: 220px; }
	.mci-article { margin-top: 60px; }
}

/* Legali: le fisarmoniche dell'originale erano aperte (primo elemento attivo) e in riquadri affiancati a coppie */
.mci-legal :is(div, p):has(> details) { display: inline-block; width: 50%; vertical-align: top; }
.mci-legal :is(div, p):has(> details) > details { width: 100%; }
.mci-legal details { box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1); margin: 15px 0; padding: 0; }
@media (max-width: 1024px) { .mci-legal :is(div, p):has(> details) { display: block; width: 100%; } }

/* ===== Giro di correzioni (misure dell'originale) ===== */
/* Fascia alta: titolo centrato su tutti i 500px, zoom lento dell'immagine (+13%) */
.mci-hero-pagina { position: relative; overflow: hidden; padding: 0 20px; background: #333; }
.mci-hero-pagina::before { content: ""; position: absolute; inset: 0; background: var(--mci-bg) center / cover no-repeat; transform: scale(1); animation: mciKenBurns 10s ease-out forwards; }
.mci-hero-pagina__title { position: relative; }
@keyframes mciKenBurns { to { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) { .mci-hero-pagina::before { animation: none; } }

/* Legali: schede come la fisarmonica Elementor (larghe 50%, padding 15, titolo 16px grassetto) */
.mci-legal details { display: inline-block; width: 50%; margin: 0; padding: 15px; box-shadow: none; vertical-align: top; }
.mci-legal summary { padding: 15px 20px; line-height: 16px; color: #444; border: 1px solid #d5d8dc; }
.mci-legal summary::before { width: 24px; }
.mci-legal details[open] summary { color: #444; }
.mci-legal hr { border: 0; border-top: 1px solid #ddd; margin: 8px 0; }
@media (max-width: 1024px) { .mci-legal details { display: block; width: 100%; padding: 0; margin: 0 0 15px; } }

/* Newsletter: ombra, email su una riga, consenso e pulsante sulla riga sotto */
.mci-newsletter__box { box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); }
.mci-newsletter__text { margin-top: 24px; }
.mci-newsletter__form { margin-top: 30px; }
.mci-newsletter .wpcf7-form { display: grid; grid-template-columns: minmax(0, 1fr) 20%; column-gap: 20px; align-items: center; }
.mci-newsletter .wpcf7-form > * { grid-column: 1 / -1; margin: 0; }
.mci-newsletter .wpcf7-form > .mci-form-row { margin-bottom: 10px; }
.mci-newsletter .wpcf7-form > .mci-form-privacy { grid-column: 1; }
.mci-newsletter .wpcf7-form > :is(p, div):has(.wpcf7-submit):not(.mci-form-privacy), .mci-newsletter .wpcf7-form > .wpcf7-submit { grid-column: 2; }
.mci-newsletter .wpcf7-form > .mci-form-privacy:has(.wpcf7-submit) { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; }
.mci-newsletter input[type="email"] { border-color: #6c4c5b; color: #6c4c5b; }
.mci-newsletter .wpcf7-submit { width: 100%; }
.mci-newsletter .wpcf7-list-item-label { font-size: 16px; }

/* Notizia singola: fascia 450px centrata, sezione con padding 50, condivisione */
.mci-article-head { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 450px; padding: 150px 20px 50px; }
.mci-article-head__meta { color: #000; }
.mci-article { padding: 50px 10px; margin: 150px auto 20px; }
.mci-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.mci-share li { flex: 0 1 calc(33.333% - 10px); min-width: 150px; }
.mci-share__btn { display: flex; align-items: center; justify-content: center; height: 45px; font-size: 15px; color: #fff; }
.mci-share__btn--facebook { background: #3b5998; }
.mci-share__btn--twitter { background: #1da1f2; }
.mci-share__btn--linkedin { background: #0077b5; }
.mci-share__btn:hover { opacity: .9; color: #fff; }

/* Piede delle notizie (template 3437): 3 colonne, voci 16px */
.mci-footer--articolo .mci-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mci-footer--articolo .mci-footer__logo { width: 240px; }
.mci-footer--articolo .mci-footer__list a { font-size: 16px; line-height: 28px; color: #444; }

/* Degustazioni: testo con i margini dell'originale, schede 500px impilate su tablet/telefono */
.mci-intro__text { max-width: none; padding: 0 150px; }
.mci-flips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 1140px; margin: 40px auto 0; padding: 0; background: none; }
.mci-flip { height: auto; padding: 10px; perspective: none; }
.mci-flip__inner { position: relative; height: 500px; overflow: hidden; transform: none !important; }
.mci-flip__front { background: #1abc9c var(--mci-bg) center / cover no-repeat; }
.mci-flip__front::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .16); }
.mci-flip__front h3 { position: relative; z-index: 1; }
.mci-flip__back { background: #54595f; padding: 17px 30px; justify-content: flex-start; transform: translateX(-100%); transition: transform .6s; backface-visibility: visible; }
.mci-flip:hover .mci-flip__back, .mci-flip:focus .mci-flip__back { transform: none; }
.mci-booking { margin-top: 40px; }
@media (max-width: 1024px) {
	.mci-newsletter { padding: 0; }
}
@media (max-width: 767px) {
	.mci-flips { grid-template-columns: minmax(0, 1fr); }
}
/* Modulo prenotazione: campi brevi a coppie, consenso e pulsante sulla stessa riga */
.mci-booking .wpcf7-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: end; }
.mci-booking .wpcf7-form > * { grid-column: 1 / -1; }
.mci-booking .wpcf7-form > p:has(:is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select)):not(:has(textarea)) { grid-column: auto; }
.mci-booking .wpcf7-form > p:has(.wpcf7-acceptance):has(.wpcf7-submit) { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
@media (max-width: 767px) { .mci-booking .wpcf7-form { grid-template-columns: minmax(0, 1fr); } .mci-booking .wpcf7-form > * { grid-column: 1 / -1 !important; } }
@media (max-width: 767px) {
	.mci-booking__title { font-size: 42px; }
	.mci-newsletter .wpcf7-form { grid-template-columns: minmax(0, 1fr); }
	.mci-newsletter .wpcf7-form > * { grid-column: 1 / -1 !important; }
	.mci-newsletter .wpcf7-form > .mci-form-privacy:has(.wpcf7-submit) { display: block; }
	.mci-article-head__logo { width: 93px; }
	.mci-article { margin-top: 80px; padding: 50px 25px; }
	.mci-article__title { font-size: 30px; }
	.mci-footer--articolo .mci-footer__top { grid-template-columns: minmax(0, 1fr); }
	.mci-footer--articolo .mci-footer__logo { width: 215px; }
}
/* Fase 7: notizia singola su tablet/telefono come l'originale (logo 183px, margini 25px, titolo 38px, riquadro video alto come il segnaposto) */
@media (max-width: 1024px) {
	.mci-article-head__logo { width: 183px; }
	.mci-article { padding-left: 25px; padding-right: 25px; }
	.mci-article__title { font-size: 38px; }
}
@media (max-width: 767px) {
	.mci-article-head__logo { width: 89px; }
	.mci-article__img { margin-bottom: 40px; }
	.mci-article__title { font-size: 30px; }
	.mci-article__text p { line-height: 1.8; }
	.mci-video { aspect-ratio: auto; min-height: 400px; }
}