/*
 * Author: Luca Arzilli, ALSolutions
 * Project Name: Le Macchiole - Dettaglio Vino
 *
 */

/* Body della pagina Dettaglio Vino */
.lemacchiole-dettaglio-vino {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5vh 0vw 10vh 0vw;
}

/* Header con menu e lingue */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.25vh 2vw;
  z-index: 40;
  transition: background-color 0.4s ease;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-divider {
  display: inline-block;
  height: 50px;
  border-left: 1px solid #808081;
  margin: 0 20px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
  transition: color 0.4s ease;
}

/* Header su sfondo bianco quando la pagina è scrollata sulla sezione intro */
body.dettaglio-vino-header-on-white .header {
  background-color: #fff;
}

body.dettaglio-vino-header-on-white .menu-toggle {
  color: #000;
}

body.dettaglio-vino-header-on-white .lang-link {
  color: #000;
}

body.fullmenu-open .menu-toggle {
  color: #000;
}

body.fullmenu-open .header-right,
body.fullmenu-open .menu-label,
body.fullmenu-open .header-divider,
body.fullmenu-open .lang-link {
  display: none;
}

.menu-label {
  font-style: italic;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.16em;
  color: #b49759;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.lang-link {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: color 0.4s ease;
}

.lang-link:hover {
  color: #b49759;
}

/* Full screen menu */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

body.fullmenu-open .fullmenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fullmenu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh;
  padding: 4vh 4vw;
}

.fullmenu-logo {
  width: clamp(200px, 30vw, 320px);
  height: auto;
  display: block;
}

.fullmenu-nav {
  margin-top: 3vh;
}

.fullmenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
}

.fullmenu-list a {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  font-size: clamp(10px, 1.3vw, 18px);
  letter-spacing: 0.22em;
  color: #000;
  text-decoration: none;
}

.fullmenu-list a:hover {
  color: #b49759;
}

.fullmenu-social {
  margin-top: 4vh;
  display: flex;
  gap: 1.5vw;
}

.fullmenu-social-link {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  font-size: clamp(11px, 1.1vw, 15px);
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #000;
}

.fullmenu-social-link:hover {
  color: #b49759;
}

/* Hero: titolo + descrizione */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6vh;
}
.logo {
  width: clamp(120px, 28vw, 380px);
  height: auto;
  display: block;
}
.hero h1 {
  margin-top: 2vh;
  text-align: center;
}
.hero p {
  text-align: center;
}


/* Invito a scorrere: freccia animata */
.dettaglio-vino-scroll-cta {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dettaglio-vino-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #000;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: dettaglio-vino-arrow-bounce 2s ease-in-out infinite;
}

.dettaglio-vino-scroll-arrow:hover {
  color: #b49759;
  border-color: #b49759;
}

.dettaglio-vino-scroll-arrow i {
  font-size: 0.9rem;
}

.dettaglio-vino-scroll-text {
  font-style: italic;
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.9);
}

@keyframes dettaglio-vino-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

#dettaglio-vino-intro h2, #dettaglio-vino-intro p {
  text-align:left !important;
}

.link-year {
  font-family: "Crimson Text", serif;
	font-weight: bold;
	font-style: normal;
	font-size: clamp(10px, 1vw, 14px);
	color: #000;
	letter-spacing: 4px;
}

#technical-sheet {
	margin-top:30px;
  
}
#technical-sheet p, .p-climate {
  color:#808081;
}

.p-climate {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  position: relative;
}

.p-climate-expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.p-climate-toggle {
  margin-top: 8px;
  border: none;
  background: transparent;
  font-family: "Crimson Text", serif;
  font-size: clamp(12px, 1vw, 14px);
  color: #b49759;
  cursor: pointer;
}
#technical-sheet span {
    color: #000;
    font-weight: bold;
    font-style: normal;
}

.link-pdf {
  font-style: italic;
  font-weight: bold;
  color: #b49759;
}


#wine-details h2 span {
	color: #b49759;
}

#wine-details .col-md-7 {
	padding-left: 30px;
}

#years li {
	padding: 0px !important;
	margin: 0px 0px 15px 0px;
	line-height:10px;
}

#years ul {
	list-style-type: none;
  	margin: 0px;
  	padding: 0px;
}	
@media (max-width: 576px) {
	#wine-details img {
		margin-top:50px;
	}
}

@media (max-width: 767.98px) {
  .logo, .fullmenu-logo {
    width: clamp(240px, 50vw, 760px);
  }
  .fullmenu-list a {
    font-size: clamp(14px, 5vw, 24px);
  }
  .fullmenu-list {
    gap: 2.5vh;
  }
  .fullmenu-social {
    gap: 3.5vw;
  }
  .fullmenu-social-link {
    width: 40px;
    height: 40px;
    font-size: clamp(14px, 5vw, 24px);
  }  
  .vino-image {
    width: min(48vw, 180px);
    margin: 50px auto 0 auto;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
}