/* Layout more responsive */	
.karte {
  width: 100% !important;
  max-width: 400px;
}

@media (max-width: 767px) {
  body { font-size: 14px !important; }
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.2rem !important; }
  h3 { font-size: 1.1rem !important; }
  h4 { font-size: 1rem !important; }
  h5 { font-size: 0.95rem !important; }
  h6 { font-size: 0.9rem !important; }
		
/* hero banner more responsive */			
@media (max-width: 767px) {
		.sow-slider-image-wrapper {
    height: auto !important;
    min-height: unset !important;
  }

  .sow-slider-image-wrapper h2,
  .sow-slider-image-wrapper h2 strong,
  .sow-slider-image-wrapper h2 span {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .sow-slider-image-wrapper p,
  .sow-slider-image-wrapper p span,
  .sow-slider-image-wrapper p strong {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .sow-slider-image-wrapper a.button,
  .sow-slider-image-wrapper .sowb-button.ow-icon-placement-right.ow-button-hover {
    font-size: 1.3rem !important;
  }
}


/* Layout mega Menu */

@media (max-width: 768px) {
    #mega-menu-wrap-primary {
        display: block !important;
    }

    .mega-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 9999;
        background: #ffffff;
        padding: 10px;
        cursor: pointer;
    }

    #mega-menu-primary {
        display: none;
    }

    .mega-menu-toggle + #mega-menu-primary.mega-menu-open {
        display: block !important;
    }
}

/* Layout griglia calendario avvento */
.grid-1 {
  display: grid;
  width: 96%;
  max-width: 900px;
  margin: 2% auto;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
  grid-template-areas:    
      "d23 d20 d12"
      "d2  d14 d4"
      "d5  d22 d16"
      "d1  d7  d9"
      "d10 d11 d18"
      "d13 d3  d15"
      "d6  d17 d8"
      "d19 d24 d21";
}

/* Layout su schermi grandi */
@media only screen and (min-width: 500px) {
  .grid-1 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas: 
      "d4  d11 d12 d19 d9  d13"
      "d6  d1  d2  d24 d21 d20"
      "d17 d18 d7  d8  d5  d22"
      "d3  d23 d16 d14 d10 d15";
  }
}

/* Posizioni delle caselle (day-x = dX) */
.day-1  { grid-area: d1; }
.day-2  { grid-area: d2; }
.day-3  { grid-area: d3; }
.day-4  { grid-area: d4; }
.day-5  { grid-area: d5; }
.day-6  { grid-area: d6; }
.day-7  { grid-area: d7; }
.day-8  { grid-area: d8; }
.day-9  { grid-area: d9; }
.day-10 { grid-area: d10; }
.day-11 { grid-area: d11; }
.day-12 { grid-area: d12; }
.day-13 { grid-area: d13; }
.day-14 { grid-area: d14; }
.day-15 { grid-area: d15; }
.day-16 { grid-area: d16; }
.day-17 { grid-area: d17; }
.day-18 { grid-area: d18; }
.day-19 { grid-area: d19; }
.day-20 { grid-area: d20; }
.day-21 { grid-area: d21; }
.day-22 { grid-area: d22; }
.day-23 { grid-area: d23; }
.day-24 { grid-area: d24; }

/* Nasconde la checkbox */
.grid-1 input {
  display: none;
}

/* Etichetta = "porta cliccabile" */
label {
  perspective: 1000px;
  cursor: pointer;
  display: flex;
  width: 100%;
  height: 120px;
}

/* Porta che si apre */
.door {
  width: 100%;
  transform-style: preserve-3d;
  transition: all 300ms;
  border-radius: 10px;
  border: 2px solid transparent;
}

/* Faccia della porta */
.door div {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(255,104,4,1) 0%, rgba(255,170,0,1) 100%);
  font-family: 'Ubuntu', sans-serif;
  color: #fff;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

/* Retro della porta */
.door .back {
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotateY(180deg);
  border: none;
}

/* Hover effetto */
label:hover .door {
  border-color: #fff;
}

/* Porta aperta */
:checked + .door {
  transform: rotateY(180deg);
}

	



/* style formidable form */
body .frm_style_formidable-style .frm_form_field {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

body .frm_style_formidable-style .frm_form_field.frm_left_container,
body .frm_style_formidable-style .frm_form_field.frm_half {
    grid-auto-rows: auto !important;
    row-gap: 20px !important;
}

body .frm_style_formidable-style label,
body .frm_style_formidable-style .frm_primary_label {
    height: auto !important;
}

/* Allinea il bottone con il campo/checkbox accanto */
body .frm_style_formidable-style .frm_submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: 100% !important;
}

/* Centra verticalmente il bottone rispetto all'input */
body .frm_style_formidable-style .frm_form_field .frm_submit {
    min-height: 30px !important;
}

/* Allinea il container del bottone */
body .frm_style_formidable-style .frm_form_field:has(.frm_submit) {
    display: flex !important;
    align-items: center !important;

	/* Fix per mobile - aggiungi spazio sopra il bottone */
@media (max-width: 768px) {
    body .frm_style_formidable-style .frm_submit {
        margin-top: 15px !important;
    }
    
    body .frm_style_formidable-style .frm_form_field:has(.frm_submit) {
        display: block !important;
        margin-top: 15px !important;
    }
		

	
	/* ingrandisce immagini site anything carousel startseite */
	
@media (max-width: 767px) {
  .so-widget-sow-anything-carousel-base-d0b5d007cd2c-23274 .sow-carousel-item {
    width: 100% !important;
    max-width: 100% !important;
  }
}