/*
 * PAGINE C (alpha-C): I Vini, scheda vino, Contatti + riquadro Newsletter e stile dei moduli CF7 di queste pagine.
 * Misure, colori e hover presi dall'originale (Elementor + kit: accento #d59100) a 1920/1366/1024/768/390.
 */

/* Jost: font dei pulsanti dell'originale (file locale, solo latino) */
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jost-latin-400.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;
}

/* ---------- Intestazione 500px con Ken Burns ---------- */
.mci-phero {
	position: relative;
	display: grid;
	place-items: center;
	height: 500px;
	overflow: hidden;
	background: #000;
	text-align: center;
}
.mci-phero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform-origin: 50% 50%;
	animation: mci-kenburns 20s linear forwards;
}
.mci-phero__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .52); }
.mci-phero__title {
	position: relative;
	z-index: 1;
	min-width: 0;
	margin: 0;
	padding: 0 20px;
	font-family: var(--mci-font-heading);
	font-size: 58px;
	font-weight: 700;
	line-height: 1;
	color: var(--mci-color-white);
}
@keyframes mci-kenburns { from { transform: scale(1); } to { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .mci-phero__img { animation: none; } }

/* ---------- Elementi comuni ---------- */
.mci-c-wrap { width: 100%; max-width: 1200px; margin: 0 auto; min-width: 0; }
.mci-c-card { background: var(--mci-color-white); box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.mci-c-h2 {
	margin: 0 0 24px;
	font-family: var(--mci-font-heading);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	color: var(--mci-color-heading);
	text-align: center;
}
.mci-c-lead { font-size: 16px; line-height: 1.8; text-align: center; }
.mci-c-lead p { margin: 0; }

/* Pulsante bordato (griglia vini, scheda tecnica): Jost 14px maiuscolo, hover accento come l'originale */
.mci-vbtn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid #000;
	background: transparent;
	color: #000;
	font: 400 14px/14px "Jost", sans-serif;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--mci-speed), border-color var(--mci-speed), background-color var(--mci-speed);
}
.mci-vbtn:hover, .mci-vbtn:focus-visible { background: var(--mci-color-gold); border-color: var(--mci-color-white); color: var(--mci-color-white); }

/* Fascia con immagine di sfondo */
.mci-band { background-image: var(--mci-bg); background-size: cover; background-repeat: no-repeat; }
.mci-band--wine { height: 470px; background-position: 50% 0; }
.mci-band--contact { height: 520px; background-position: 50% 50%; background-attachment: fixed; }

/* ---------- I Vini: griglia ---------- */
.mci-wines { padding: 120px 0; background: var(--mci-color-bottle-bg); }
.mci-wines__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 260px));
	justify-content: center;
	gap: 20px;
	padding: 10px;
}
.mci-wines__item { min-width: 0; text-align: center; }
.mci-wines__img { display: block; margin-bottom: 20px; }
.mci-wines__img img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.mci-wines__title {
	margin: 0 0 20px;
	font-family: var(--mci-font-heading);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: #000;
}

/* ---------- Scheda vino ---------- */
.mci-wine { padding: 120px 20px; background: var(--mci-color-bottle-bg); }
.mci-wine__grid {
	display: grid;
	grid-template-columns: minmax(0, 520fr) minmax(0, 660fr);
	max-width: 1180px;
	margin: 0 auto;
}
.mci-wine__bottle { min-width: 0; padding-top: 16px; text-align: center; }
.mci-wine__bottle img { display: inline-block; width: 216px; max-width: 100%; height: auto; }
.mci-wine__body { min-width: 0; padding: 0 10px 0 20px; }
.mci-wine__title { margin-bottom: 22px; text-align: left; }
.mci-wine__text { color: var(--mci-color-footer-copy); font-size: 16px; line-height: 1.8; }
.mci-wine__text p { margin: 0 0 15px; }
.mci-wine__data { margin: 31px 0 0; padding: 0 10px; }
.mci-wine__row { display: grid; grid-template-columns: minmax(0, 345fr) minmax(0, 245fr); gap: 20px; margin-bottom: 40px; }
.mci-wine__row dt { font-family: var(--mci-font-heading); font-size: 18px; font-weight: 600; line-height: 1; color: #000; }
.mci-wine__row dd { margin: 0; font-size: 18px; font-weight: 500; line-height: 1; color: var(--mci-color-gold); }
.mci-wine__pdf { margin-left: 10px; }

/* ---------- Newsletter: riquadro bianco con ombra ---------- */
.mci-nl { padding: 0 20px; }
.mci-nl__inner { padding: 50px 10px; background: var(--mci-color-white); box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.mci-nl--grey { background: var(--mci-color-bottle-bg); padding-top: 100px; padding-bottom: 120px; }
.mci-nl--wine { padding-top: 120px; }
.mci-nl--plain { margin-top: 60px; }

/* ---------- Contatti: fondo #f9f9f9, tre riquadri bianchi ---------- */
.mci-cpage { padding: 120px 20px; background: #f9f9f9; }
.mci-contact .mci-c-wrap { padding: 50px 10px; background: var(--mci-color-white); box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.mci-cpage .mci-nl { padding: 0; }
.mci-cinfo { margin-top: 60px; }
.mci-cinfo__grid {
	display: grid;
	grid-template-columns: minmax(0, 360fr) minmax(0, 840fr);
	max-width: 1200px;
	margin: 0 auto;
	background: var(--mci-color-white);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
}
.mci-cinfo__box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 30px;
	background: var(--mci-color-white);
}
.mci-cinfo__title { margin: 0 0 20px; font-family: var(--mci-font-heading); font-size: var(--mci-fs-footer-title); font-weight: 700; line-height: 1; color: var(--mci-color-gold); }
.mci-cinfo__list { margin: 0; padding: 0; list-style: none; }
.mci-cinfo__list li + li { margin-top: 18px; }
.mci-cinfo__list a { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 28px; color: var(--mci-color-text); text-decoration: none; transition: color var(--mci-speed); }
.mci-cinfo__list a:hover { color: var(--mci-color-gold); }
.mci-cinfo__list .mci-icon { flex: none; width: 14px; height: 14px; margin-top: 7px; color: var(--mci-color-text); }
.mci-cinfo__map { min-width: 0; height: 500px; }
.mci-cinfo__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Moduli CF7 di queste pagine (come i form Elementor dell'originale) ---------- */
.mci-c-form { width: 75.6%; margin: 22px auto 0; text-align: left; }
.mci-c-form--nl { margin-top: 34px; }
.mci-c-form .wpcf7-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mci-c-form .wpcf7-form > p { flex: 1 1 100%; margin: 0; min-width: 0; }
.mci-c-form--contact .wpcf7-form > p:nth-of-type(1),
.mci-c-form--contact .wpcf7-form > p:nth-of-type(2) { flex: 1 1 calc(50% - 5px); }
.mci-c-form .wpcf7-form > p.mci-form-privacy { flex: 1 1 0; margin-top: 6px; }
.mci-c-form .wpcf7-form > p:last-of-type { flex: 0 0 170px; margin-top: 6px; }
.mci-c-form label { display: block; font-weight: 400; font-size: 16px; }
.mci-c-form .wpcf7-form-control-wrap { margin-top: 0; }
.mci-c-form input[type="text"],
.mci-c-form input[type="email"],
.mci-c-form input[type="tel"],
.mci-c-form textarea {
	width: 100%;
	min-height: 40px;
	padding: 5px 14px;
	border: 1px solid #69727d;
	border-radius: 3px;
	background: transparent;
	color: #1f2124;
	font: 15px/21px var(--mci-font-body);
	box-shadow: none;
}
.mci-c-form textarea { height: 117px; min-height: 117px; resize: vertical; }
.mci-c-form input:focus, .mci-c-form textarea:focus { outline: 0; border-color: #000; box-shadow: none; }
.mci-c-form ::placeholder { color: #69727d; opacity: 1; }
.mci-c-form .wpcf7-acceptance label { display: block; min-height: 0; font-size: 16px; line-height: 28px; color: var(--mci-color-text); }
.mci-c-form .wpcf7-acceptance input[type="checkbox"] { width: 13px; height: 13px; margin: 0 6px 0 0; vertical-align: -1px; accent-color: #000; }
.mci-c-form .wpcf7-list-item { margin: 0; }
.mci-c-form .wpcf7-acceptance a { color: var(--mci-color-footer-copy); }
.mci-contact .wpcf7-acceptance a, .mci-cpage .wpcf7-acceptance a { color: #000; }
.mci-c-form .wpcf7-submit {
	width: 170px;
	min-height: 40px;
	padding: 0 24px;
	border: 1px solid #000;
	border-radius: 0;
	background: transparent;
	color: #000;
	font: 400 15px/15px var(--mci-font-body);
	transition: color var(--mci-speed), border-color var(--mci-speed), background-color var(--mci-speed);
}
.mci-c-form .wpcf7-submit:hover, .mci-c-form .wpcf7-submit:focus-visible { background: var(--mci-color-gold); border-color: var(--mci-color-white); color: var(--mci-color-white); }
.mci-c-form .wpcf7-spinner { position: absolute; margin: 12px 0 0 8px; }
.mci-c-form .wpcf7-not-valid-tip { font-size: 13px; color: #d9534f; }
.mci-c-form .wpcf7-response-output { flex: 1 1 100%; margin: 10px 0 0 !important; padding: 10px 14px !important; border: 1px solid #69727d; border-radius: 3px; font-size: 15px; }
.mci-c-form form.sent .wpcf7-response-output { border-color: #46b450; color: #2e7d32; }
.mci-c-form form.invalid .wpcf7-response-output,
.mci-c-form form.failed .wpcf7-response-output { border-color: #d9534f; color: #d9534f; }
.mci-c-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tablet: scheda vino e contatti in una colonna centrata (come l'originale) ---------- */
@media (max-width: 1024px) {
	.mci-wines__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.mci-nl { padding-left: 0; padding-right: 0; }
	.mci-nl--wine { padding-bottom: 120px; }

	.mci-wine__grid { grid-template-columns: minmax(0, 1fr); }
	.mci-wine__bottle { padding-top: 30px; }
	.mci-wine__bottle img { width: 18.4%; min-width: 117px; }
	.mci-wine__body { padding: 0; text-align: center; }
	.mci-wine__title { margin: 35px 0 22px; text-align: center; }
	.mci-wine__data { margin-top: 30px; }
	.mci-wine__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mci-wine__row dt { text-transform: uppercase; }
	.mci-wine__pdf { margin: 0; }

	.mci-cinfo__grid { grid-template-columns: minmax(0, 1fr); }
	.mci-cinfo__box { text-align: center; }
	.mci-cpage { padding-left: 0; padding-right: 0; }
	.mci-cinfo__title { font-size: 32px; text-align: center; }
	.mci-cinfo__list a { justify-content: center; }
	.mci-band--contact { background-attachment: scroll; }
}

/* ---------- Telefono ---------- */
@media (max-width: 767px) {
	.mci-phero__title { padding: 0 80px; font-size: 32px; }
	.mci-c-h2 { font-size: 32px; }
	.mci-wines__grid { grid-template-columns: minmax(0, 1fr); }
	.mci-wine__bottle img { width: 117px; }
	.mci-wine__body { padding: 0 0; }
	.mci-cpage { padding-left: 0; padding-right: 0; }
	.mci-cinfo__title { font-size: 32px; text-align: center; }
	.mci-c-form { width: auto; padding: 0 10px; }
	.mci-c-form--contact .wpcf7-form > p:nth-of-type(1),
	.mci-c-form--contact .wpcf7-form > p:nth-of-type(2),
	.mci-c-form .wpcf7-form > p.mci-form-privacy,
	.mci-c-form .wpcf7-form > p:last-of-type { flex: 1 1 100%; }
	.mci-c-form .wpcf7-submit { width: 100%; }
}
