:root {
  --app-height: 100vh; /* fallback */
}
.fullscreen {
  height: var(--app-height);
  /* o min-height: var(--app-height); a seconda del caso */
}

body {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight:300;
    max-width:100vw;
    overflow-x: hidden;
}

h1, h2, h3, nav > a {
    font-family: 'Lato', sans-serif;
    font-weight:500;
}

h2 {
    text-transform: uppercase;
}

h2, div > p, section > p {
    padding-left: 5%;
    padding-right: 5%;
}

b, strong {
    font-weight: 500;
}

a {
    text-decoration: underline #fbe3a2;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 1px;
    text-underline-offset: 2.5px;
}

img {
    max-width: 100%;
}


.exit {
  position: fixed;
  display: block;
  z-index: 9999;
  top: 15px;
  right: 15px;
  color: white;
  width: 45px;
  height: 45px;
  background-color: transparent;
  text-align: center;
  border: 3px solid white;
  border-radius: 5em;
  cursor: pointer;
}

.section.videoframe {
    position: fixed;
    display: block;
    z-index: 12;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    background-color: rgba(0,0,0,0.6);
}


span.closevid {
    font-weight: 800;
    font-stretch: extra-expanded;
    line-height: 2;
    font-size: 20px;
}

.new-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 78vw;
    height: 44vw;
    margin: auto;
    right: 0;
    bottom: 0;
}

@media screen and (max-width: 767px) {
    .new-frame-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 98vw;
        height: 55.5vw;
        margin: auto;
        right: 0;
        bottom: 0;
    }
}

.new-frame-container iframe#videobanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 35.2vw;
    height: 44vw;
    margin: auto;
    right: 0;
    bottom: 0;
}



.hero-animated-bg {
    background: url('/assets/img/home/1-banner.jpg') center/cover no-repeat;
}

.hero-animated-bg2 {
    background: url('/assets/img/museo/1-museo.jpg') center/cover no-repeat;
}

.hero-animated-bg3 {
    background: url('/assets/img/miele/storia_marigo.jpg') center/cover no-repeat;
}

.textpack {
    max-width: 800px;
}

.upcap {
    font-size: 140%;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.hero-col {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero1 { background-image: url('/assets/img/home/5-museo.jpg'); }
.hero2 { background-image: url('/assets/img/home/6-tourvirtuale.jpg'); }

.miele-bg {
    background-image: url('/assets/img/home/7-miele.png');
}

@media screen and (max-width:600px) {
    .miele-bg {
        background-image: url('/assets/img/home/7-miele_mob.png');
    }
}

.hero-wrapper2 {
    position: relative;
    width: 100%;
    padding-top: 28%;
    overflow: hidden;
    height: 100%;
}


.hero-content {
    color: white;
    width: 80%;
}

.w3-display-middle {
    width: 90%;
}

@media (max-width: 768px) {
    .w3-half { width: 100% !important; }
    .hero-wrapper { padding-top: 75%; } /* più alto su mobile */
}

/* CTA button */
.cta-360 {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.6em;
  background: rgba(251, 227, 162, 0.9);
  color: #333;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-360 .icon {
  width: 60px;
  height: 60px;
  margin-right: 0.6em;
  animation: spin3D 4s linear infinite;
}

/* 3D SPINNING ANIMATION */
@keyframes spin3D {
  from { transform: rotateY(0deg) }
  to { transform: rotateY(360deg) }
}

/* Hover glow effect */
.cta-360:hover {
  box-shadow: 0 0 15px rgba(251, 227, 162, 0.8);
}

@keyframes bgFloat {
    0%   { background-position: 50% 50%; }
    50%  { background-position: 52% 48%; }
    100% { background-position: 50% 50%; }
}

.w3-text-marigo {
    color: #fbe3a2 !important;
}

.w3-light-grey {
    background: #f5f5f5;
}

.w3-amber {
    background-color: #fbe3a2 !important;
    color: #111 !important;
}

.w3-black {
    background-color: #111 !important;
    color: #eee !important;
}

.w3-wood {
    background-color: #fbe3a2;
    background-image: url("/assets/img/texture-wood.png");
    color: #000;
}



.lang-switch {
    display: inline-block;
    margin-left: 20px;
}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lang-switch a.active {
    opacity: 1;
    border-bottom: 2px solid #fbe3a2;
}

.lang-switch a:hover {
    opacity: 1;
}


h2 {
    font-size: 32px;
}

.burned-text {
    color: #454545;
    text-shadow:
        1px 1px 0 #1a0e06,
        2px 2px 3px rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
}

header {
    background-color: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 96vw;
    margin: 0px auto;
    padding: 10px 1rem 10px 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo img {
    height: 90px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

.w3-container {
    padding: 0;
}

nav a {
    font-size: 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

nav a:hover {
    color: #fbe3a2;
}

/* Hamburger */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: #111;
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .menu-toggle:checked + .hamburger + nav {
        display: flex;
    }
}

/* === ANIMAZIONI === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-600px);
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }
.fade-in.delay-4 { animation-delay: 1.2s; }
.fade-in.delay-5 { animation-delay: 1.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.griddone {
    height: 90vh!important;
    padding: 0!important;
}

.griddone2 {
    height: 52.5vh!important;
    padding: 0!important;
}

.griddone3 {
    height: 50vh!important;
    padding: 0!important;
}

.griddone4 {
    height: 60vh!important;
    padding: 0!important;
}

.rowsplit {
    margin: 0!important;
    height: 100%!important;
}

.flex-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding:0;
}
.flex-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items:;
}
.flex-item2 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items:center;
    height:100%;
}
.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-contain {
    background-size:; 
    background-position: center;
    background-repeat: no-repeat;
}



section.w3-container.bgoverlap {
    position: relative;
    background-color: transparent;
    top:-9vw;
    height: 9vw;
}

.text-box {
    text-align: center;
    line-height: 1.5;
    margin-top: 30px;
}

.text-box2 {
    text-align: center;
    line-height: 1.5;
}

.mobonly {
    display: none;
}

@media (max-width: 768px) {
    .mobonly {
        display: block!important;
    }
    .deskonly {
        display: none!important;
    }
}

.bgamelio {
    background-image: url('/assets/img/home/2-marigo.png');
}

.bginterno {
    background-image: url('/assets/img/museo/2-interno.jpg');
}

.bgdettaglio {
    background-image: url('/assets/img/museo/3-dettaglio.jpg');
}

.bgscopri {
    background-image: url('/assets/img/museo/scoprire.jpg');
}

.bgdalpolline {
    background-image: url('/assets/img/museo/dalpolline.jpg');
}

.bgstoria {
    background-image: url('/assets/img/museo/storia.jpg');
}

.bgvitaalveare {
    background-image: url('/assets/img/museo/vitaalveare.jpg');
}

.bgguida {
    background-image: url('/assets/img/museo/guida.jpg');
    background-position: 20%;
}

.bgbimbo {
    background-image: url('/assets/img/museo/bambino.jpg');
}

.bgarnia {
    background-image: url('/assets/img/museo/3-arnia.jpg');
}

.bgvisitatori1 {
    background-image: url('/assets/img/museo/visite_guidate_sx.jpg');
}

.bgvisitatori2 {
    background-image: url('/assets/img/museo/visite_guidate_dx.jpg');
}

.bgmuseomap1 {
    background-image: url('/assets/img/museo/mappa_museo_terra.png');
    background-size: 70%;
}

.bgmuseoprezzi {
    background-image: url('/assets/img/museo/prezzi.jpg');
}

.bgstoria1 {
    background-image: url('/assets/img/miele/storiaA.jpg');
}
.bgstoria2 {
    background-image: url('/assets/img/miele/storiaB.jpg');
}

.bgproduzione1 {
    background-image: url('/assets/img/miele/produzione/02.jpg');
}
.bgproduzione2 {
    background-image: url('/assets/img/miele/produzione/03.jpg');
}

.bgprodotto1 {
    background-image: url('/assets/img/miele/prodotti_sx.jpg');
}
.bgprodotto2 {
    background-image: url('/assets/img/miele/prodotti_dx.jpg');
}

.bgmielelavarone {
    background-image: url('/assets/img/miele/lavarone.png');
}
.bgmielefolgaria {
    background-image: url('/assets/img/miele/folgaria.jpg');
}

.bgapiario1 {
    background-image: url('/assets/img/miele/arnie_decorate_sx.png');
}
.bgapiario2 {
    background-image: url('/assets/img/miele/arnie_decorate_dx.png');
}


@media screen and (max-width: 768px;) {
    .bgmuseomap1 {
        background-size: 100%;
    }
}

.bgmuseomap2 {
    background-image: url('/assets/img/museo/mappa_museo_interrato.png');
    background-size: 70%;
}

@media screen and (max-width: 768px;) {
    .bgmuseomap2 {
        background-size: 100%;
    }
}

.bgmuseomap3 {
    background-image: url('/assets/img/museo/mappa_museo_soppalco.png');
    background-size: 70%;
}

@media screen and (max-width: 768px;) {
    .bgmuseomap3 {
        background-size: 100%;
    }
}

.bgnulla {
    background-image: url('');
}

.bgsunset {
    background-image: url('/assets/img/home/3-apicoltore.jpg');
    padding: 0;
}

.bgbottom1 {
    background-image: url('/assets/img/home/8-salute.jpg');
    padding: 0;
}

.bgbottom2 {
    background-image: url('/assets/img/home/9-bellezza.jpg');
    padding: 0;
}

.full-height {
    height: 100%;
}
.w3-half {
    height: 100%; 
}

.hex-btn {
    position: relative;
    display: inline-block;
    padding: 4em 2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}


button.w3-button.w3-black.w3-display-left, button.w3-button.w3-black.w3-display-right {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    width: 55px;
    margin: 5px;
}


button.w3-button.w3-black.w3-display-left:hover, button.w3-button.w3-black.w3-display-right:hover {
    background-color: #fbe3a2!important;
}

.hex-btn:hover {
    background-color: #d4c088!important;
    text-shadow: 1px#111!important;
}

@media (max-width: 768px) {
    .w3-half {
        width: 100% !important;
        height: 75vw;
    }
    .flex-col {
        height: auto;
    }
    .flex-item {
        min-height: 200px;
    }
    .full-height {
        height: auto;
        min-height: 300px;
    }
    section.w3-container.bgoverlap {
        position: relative;
        background-color: transparent;
        top: -9vw;
        height: 55vw;
    }
}

.campo {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0;
    overflow: hidden;
}

.bee {
    position: absolute;
    width: 120px;
    height: 120px;
    background: url(/assets/img/home/ape-marigo-01.svg) no-repeat center / contain;
    pointer-events: none;
    background-color: rgba(17, 17, 17, 0.6);
    z-index: 10;
    transition: transform 0.2s ease;
    border-radius: 999px;
}

.bee.flip {
    transform: scaleX(-1); /* flip orizzontale */
}


svg#pathbee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.trail-path {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(251, 231, 143, 0.3));
}


@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.5); }
}

.DM {
    text-decoration: none;
}

.DM:hover {
    color: #CC0000;
}

.mappa {
    width: 100%;
    max-width: 100vw;
    height: 500px;
}

.socialico  {
    width: 25px;
}

.just {
    text-align: justify;
}

.boldino {
    font-weight: 500;
}

ul.tablist {
    margin-top: 0;
    margin-left: 40px;
    text-align: left;
}

p.prelist {
    margin-bottom: 10px;
}

.tabbino {
    padding-top: 20px;
}

.firstone {
    padding-top: 20px!important;
}

.lastone {
    padding-bottom: 20px!important;
}

.link {
    text-decoration: none;
}

.link:hover {
    color: #fbe3a2 !important;
}

/*SOCIAL WALL*/

article#post-1269 > div.e-content.entry-content {
	background-color:white;
}

@media (min-width: 1200px) {
    .container-social {
        max-width: 100% !important;
        padding: 2em;
    }
}

@media (min-width: 992px) {
    .container-social {
        max-width: 100% !important;
        padding: 2em;
    }
}

@media (min-width: 768) {
    .container-social {
        max-width: 100% !important;
        padding: 1em;
    }
}

@media (min-width: 576) {
    .container-social {
        max-width: 100% !important;
        padding: 1em;
    }
}

.page-id-1415 #main-content.container {
    padding-top: 0;
}

a.google {
    display: none;
}

.fullgallery {
    max-width: 92vw !important;
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    position: relative;
    left: 55%;
    right: 50%;
}

@media screen and (min-width:700px) {
    .fullgallery {
        max-width: 98vw !important;
        left: 55%;
    }
}

@media screen and (min-width:600px) {
  div.socialrow.firstone {
    margin-top:35px;
  }
}

.socialrow {
	padding-left:20px;
	padding-right:20px;
	display: block;
    max-width: 100vw !important;
	justify-content:center;
}

.socialcol {
    max-width: 20vw;
	width:19.2vw;
    overflow-y: hidden;
    border-top:1px solid #DBDBDB;
    vertical-align: top;
	display:inline-block;
}

iframe.instagram-media > html > body > div.embed > div.header > div.HeaderCta {
  display:none!important;
}

iframe.instagram-media > html > body > div.embed > div.HoverCard {
  display:none!important;
}

iframe.instagram-media {
  width:100% !important;
  min-width:1px !important;
  max-width:100% !important;
  margin-top: -55px!important
}

@media screen and (max-width:1000px) {
  .socialrow {
    display: block;
      max-width: 100vw!important;
  }

  .socialcol {
      max-width: 100%;
	  width:100%;
  }
}

.breakcage {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    position: relative;
    left: 50%;
    right: 50%;
}

/*EO SOCIAL WALL*/


img.bannerterritorio {
    width: 100vw;
}

@media screen and (max-width:768px) {
    .mobvertical {
        height: 100vh;
    }

    .mobvertical > div > div > div {    
        position: relative;
        top: -10vh;
    }

    div.nav-container > nav {
        padding:25px 0;
    }
}


a#gototop {
    -webkit-text-stroke: 6px #fbe3a2;
    color: #fbe3a2;
    text-decoration: none;
    border-bottom: 5px solid #fbe3a2;
    height: 50px;
}

#gototop {
  position: fixed;
  bottom: 3vmax;
  right: 3vmax;
  z-index: 10;
  font-size: 1.5em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#gototop.show {
  opacity: 1;
  visibility: visible;
}

.shady {
    text-shadow: 1px 5px 10px black;
    text-shadow: 1px 0px 3px black;
}