/*
Theme Name:  Jampaa
Theme URI: https://www.jampaa.it/
Description:  Tema Jampaa
Author:  Jampaa
Author URI: https://www.jampaa.it/
Template:  hello-elementor
Version:  1.0.2
*/

/*
*   INDICE
*   1.0 PAGINA 404
*   2.0 GALLERY SINGOLA CAMERA
*   3.0 SERVIZI E DOTAZIONI
*   4.0 OCCUPANCY CAMERA
*   5.0 ALTRE CAMERE (slider)
*   6.0 TUTTE LE CAMERE (griglia + paginazione)
*   7.0 TABELLA COMPARATIVA CAMERE
*   8.0 GRAVITY FORMS
*   9.0 PHOTOSWIPE (lightbox)
*   10.0 ROTATE DEVICE
*   11.0 WPML
*/


:root {
    --color-tertiary: #8A93A7;
    --color-tertiary-dark: #6F7788;
    --link-color: #484B5C;
    --link-color-hover: #2F3240;
    --brown: #7A5C46;
    --green: #7E9C8C;
}


/* =========================================
*   1.0 PAGINA 404
* ========================================= */

.error404 .hero-image {
    display: none;
}


/* =========================================
*   2.0 GALLERY SINGOLA CAMERA
* ========================================= */

.single-rooms-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
}

.single-rooms-gallery-wrapper .single-image a.image {
    overflow: hidden;
    border-radius: 0px;
    display: flex;
    align-items: center;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-rooms-gallery-wrapper .single-image:nth-child(1) {
    grid-area: 1 / 1 / 3 / 3;
    max-height: 430px;
}

.single-rooms-gallery-wrapper .single-image:nth-child(2) {
    grid-area: 1 / 3 / 2 / 4;
    max-height: 200px;
}

.single-rooms-gallery-wrapper .single-image:nth-child(3) {
    grid-area: 1 / 4 / 2 / 5;
    max-height: 200px;
}

.single-rooms-gallery-wrapper .single-image:nth-child(4) {
    grid-area: 2 / 3 / 3 / 4;
    max-height: 200px;
}

.single-rooms-gallery-wrapper .single-image:nth-child(5) {
    grid-area: 2 / 4 / 3 / 5;
    max-height: 200px;
}

.single-rooms-gallery-wrapper .single-image.hide-image {
    display: none !important;
}

.single-rooms-gallery-wrapper .single-image a.image figure.full-width {
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.single-rooms-gallery-wrapper .single-image a.image figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.pswp__button {
    width: 50px !important;
}


/* =========================================
*   3.0 SERVIZI E DOTAZIONI
* ========================================= */

.services-list {
    column-count: 3;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    break-inside: avoid;
    color: #000;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.service-item.on-evidence {
    color: #BC1548;
    font-weight: bold;
}

.service-icon {
    margin-right: 12px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
}

span.service-icon i {
    font-size: 15px;
    line-height: 1;
}

.service-icon img {
    max-width: 32px;
    max-height: 32px;
    display: block;
}

span.service-label {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
}


/* =========================================
*   4.0 OCCUPANCY CAMERA
* ========================================= */

ul.room-occupancy-list {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 5px;
}

ul.room-occupancy-list li {
    display: list-item;
    padding-left: 10px;
}

ul.room-occupancy-list li:not(:first-child) {
    border-left: 1px solid #DCDFE5;
}


/* =========================================
*   5.0 ALTRE CAMERE (slider)
* ========================================= */

#altre-camere .swiper-container {
    padding-bottom: 40px;
    overflow-x: hidden;
}

#altre-camere .swiper-wrapper {
    display: flex;
}

#altre-camere .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}

#altre-camere .card {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#altre-camere .card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

#altre-camere .card-content {
    padding: 20px;
    color: #222;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#altre-camere .card-content h3 {
    font-size: 1.6em!important;
    line-height:1.2!important;
    margin: 0 0 10px 0;
    color: #BC1548;
}

#altre-camere .card-content p {
    font-size: 1em;
    margin-bottom: 16px;
    color: #444;
}

#altre-camere .card-content .btn-camere {
    background: #BC1548;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 0;
    font-weight: bold;
    align-self: flex-start;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: block;
    border: 1px solid #BC1548;
}

#altre-camere .card-content .btn-camere:hover {
    color: #BC1548;
    background-color: #fff;
}

#altre-camere .slider-footer .nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

#altre-camere .slider-footer .swiper-button-prev,
#altre-camere .slider-footer .swiper-button-next {
    position: static;
    inset: auto;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 0px;
    border: 1px solid #BC1548;
    background: #BC1548;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

#altre-camere .slider-footer .swiper-button-prev:after,
#altre-camere .slider-footer .swiper-button-next:after {
    font-size: 16px;
    color: #fff;
}

#altre-camere .slider-footer .swiper-button-prev:hover,
#altre-camere .slider-footer .swiper-button-next:hover {
    background: #fff;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

#altre-camere .slider-footer .swiper-button-prev:hover:after,
#altre-camere .slider-footer .swiper-button-next:hover:after {
    color: #BC1548;
}

#altre-camere .slider-footer .swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

#altre-camere .card-image {
    position: relative;
}

#altre-camere span.card-image-label {
    position: absolute;
    top: 0px;
    left: 0;
    display: block;
    padding: 10px 10px;
    background-color: #BC1548;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 16px;
}

#altre-camere span.price {
    position: absolute;
    bottom: 0px;
    right: 0;
    display: block;
    padding: 10px 10px;
    background-color: #BC1548;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 16px;
}

#altre-camere .card-content hr {
    margin: 15px 0 !important;
    display: block;
}

#altre-camere .ev-services ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#altre-camere .ev-services ul li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}


/* =========================================
*   6.0 TUTTE LE CAMERE (griglia + paginazione)
* ========================================= */

#tutte-camere {
    --gap: 24px;
}

#tutte-camere .wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

#tutte-camere .wrapper .card {
    max-width: none;
    height: 100%;
}

#tutte-camere .footer-pagination {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tutte-camere .wp-pagenavi {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

#tutte-camere .wp-pagenavi a,
#tutte-camere .wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #BC1548;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}

#tutte-camere .wp-pagenavi span.current {
    background: #BC1548;
    color: #fff;
    border-color: #BC1548;
}

#tutte-camere .wp-pagenavi a {
    color: #BC1548;
    background: #fff;
}

#tutte-camere .wp-pagenavi a:hover {
    background: #BC1548;
    color: #fff;
}

#tutte-camere .wp-pagenavi span.pages {
    border: none;
    min-width: auto;
    padding: 0 4px;
    color: #666;
    font-weight: 400;
}

#tutte-camere .pagination {
    display: inline-flex;
    gap: 8px;
}

#tutte-camere .pagination .nav-previous a,
#tutte-camere .pagination .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #BC1548;
    color: #fff;
    background: #BC1548;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}

#tutte-camere .pagination .nav-previous a:hover,
#tutte-camere .pagination .nav-next a:hover {
    background: #fff;
    color: #BC1548;
}

#tutte-camere .swiper-container,
#tutte-camere .swiper-wrapper,
#tutte-camere .swiper-slide,
#tutte-camere .slider-footer .swiper-button-prev,
#tutte-camere .slider-footer .swiper-button-next {
    all: unset;
}

#tutte-camere .swiper-container {
    display: block;
    width: 100%;
}

#tutte-camere .card {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#tutte-camere .card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

#tutte-camere .card-content {
    padding: 20px;
    color: #222;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#tutte-camere .card-content h3 {
    font-size: 1.6em!important;
    line-height:1.2!important;
    margin: 0 0 10px 0;
    color: #BC1548;
}

#tutte-camere .card-content p {
    font-size: 1em;
    margin-bottom: 16px;
    color: #444;
}

#tutte-camere .card-content .btn-camere {
    background: #BC1548;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 0;
    font-weight: bold;
    align-self: flex-start;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: block;
    border: 1px solid #BC1548;
}

#tutte-camere .card-content .btn-camere:hover {
    color: #BC1548;
    background-color: #fff;
}

#tutte-camere .card-image {
    position: relative;
}

#tutte-camere span.card-image-label {
    position: absolute;
    top: 0px;
    left: 0;
    display: block;
    padding: 10px 10px;
    background-color: #BC1548;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 16px;
}

#tutte-camere span.price {
    position: absolute;
    bottom: 0px;
    right: 0;
    display: block;
    padding: 10px 10px;
    background-color: #BC1548;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    font-size: 16px;
}

#tutte-camere .card-content hr {
    margin: 15px 0 !important;
    display: block;
}

#tutte-camere .ev-services ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#tutte-camere .ev-services ul li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#tutte-camere .numbered-pagination {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
}

#tutte-camere .numbered-pagination .page-item a,
#tutte-camere .numbered-pagination .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #BC1548;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1;
}

#tutte-camere .numbered-pagination .page-item a.page-numbers {
    color: #BC1548;
    background: #fff;
}

#tutte-camere .numbered-pagination .page-item a.page-numbers:hover {
    background: #BC1548;
    color: #fff;
}

#tutte-camere .numbered-pagination .page-item span.page-numbers.current {
    background: #BC1548;
    color: #fff;
    border-color: #BC1548;
}

#tutte-camere .numbered-pagination .page-item span.page-numbers.dots {
    border-color: transparent;
    min-width: 24px;
    height: 40px;
    padding: 0 4px;
    color: #666;
}

#tutte-camere .numbered-pagination .page-item a:focus {
    outline: 2px solid #BC1548;
    outline-offset: 2px;
}

#tutte-camere.is-loading .wrapper {
    position: relative;
    opacity: .6;
    pointer-events: none;
}

#tutte-camere.is-loading .wrapper::after {
    content: 'Caricamento…';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #BC1548;
    background: rgba(255,255,255,.6);
}


/* =========================================
*   7.0 TABELLA COMPARATIVA CAMERE
* ========================================= */

.compare-wrap {
    margin-top: 32px;
}

.compare-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.compare-scroller::-webkit-scrollbar {
    height: 8px;
}

.compare-scroller::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 4px;
}

.compare-scroller::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 4px;
}

.compare-scroller:hover::-webkit-scrollbar-thumb {
    background: #c2c2c2;
}

.table.camere {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 860px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.table.camere thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    color: #222;
    font-weight: 700;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.table.camere tbody td:first-child,
.table.camere thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background-color: #fff!important;
    box-shadow: 1px 0 0 #eee;
    min-width: 180px;
    max-width: 200px;
    white-space: nowrap;
}

.table.camere td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: left;
}

.table.camere thead th:not(:first-child),
.table.camere tbody td:not(:first-child) {
    min-width: 120px;
    text-align: center;
}

.table.camere td img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.table.camere tbody tr:nth-child(odd) td {
    background-color: #fafafa!important;
}

.table.camere tbody tr.active td {
    background: #fdf6f8;
}

.table.camere tbody tr:hover td {
    background: #f7f7f7;
}

.table.camere thead th a {
    color: #BC1548;
    text-decoration: none;
    font-weight: 700;
}

.table.camere thead th a:hover {
    text-decoration: underline;
}

.table.camere a.button,
.table.camere a.button-small {
    display: inline-block;
    padding: 10px 18px;
    background: #BC1548;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    transition: background .2s ease;
    white-space: nowrap;
}

.table.camere a.button:hover,
.table.camere a.button-small:hover {
    background: #a81340;
}

.table.camere .col_full {
    margin: 0;
}

.table.camere td:first-child br {
    display: none;
}

.table.camere tr.tab-comp_ultimariga td {
    border-bottom: 2px solid #e9e9e9;
}

.table.camere a:focus,
.table.camere button:focus,
.table.camere [href]:focus {
    outline: 2px solid #BC1548;
    outline-offset: 2px;
}

.table.camere td:empty::before {
    content: "—";
    color: #bbb;
}


/* =========================================
*   8.0 GRAVITY FORMS
* ========================================= */

.elementor-widget-container {
    word-break: break-word;
}

.gform_fields {
    position: relative;
    row-gap: 1rem!important;
}

label.gfield_label.gform-field-label {
    font-family: "DM Sans", Sans-serif!important;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    color: #BC1548;
}

#input_2_9,
#input_2_11,
#input_2_4,
#input_2_7,
#input_2_3,
.gfield input[typr="text"],
.gfield input[type="email"] {
    font-size: 18px !important;
    padding: 5px 10px;
    margin-bottom: 0;
    margin-top: 0;
    border: 1px solid #BC1548;
    background-color: #FFFFFF;
    font-weight: 400;
    font-family: "DM Sans", Sans-serif!important;
    outline: none;
    border-radius: 0px;
    display: block;
    height: 100%;
}

.gfield input:placeholder {
    font-family: "DM Sans", Sans-serif!important;
    font-weight: 400;
    font-size: 18px !important;
}

input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    position: relative;
    cursor: pointer;
    vertical-align: top;
}

input[type="submit"] {
    width: 100%!important;
    border: 1px solid #BC1548!important;
    padding: 20px!important;
    background-color: #BC1548!important;
    font-family: "DM Sans", Sans-serif!important;
    color: #fff!important;
    cursor: pointer!important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    transition: all .2s linear;
    border-radius: 0px;
    position: relative;
    text-transform: uppercase!important;
}

input[type="submit"]:hover {
    color: #BC1548!important;
    background-color: #fff!important;
    transition: all .2s linear;
}

.gform-theme--framework .gfield--input-type-datepicker .ginput_container_date input {
    width: 100%;
}


/* =========================================
*   9.0 PHOTOSWIPE (lightbox)
* ========================================= */

body button.pswp__button {
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
}

body button.pswp__button.pswp__button--close,
body button.pswp__button.pswp__button--zoom {
    margin: 0 20px 0 0 !important;
}

body .pswp__custom-caption {
    background-color: rgba(255, 255, 255, .9);
    width: 100%;
    max-width: 500px;
    padding: 2px 10px;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    color: #000;
    font-size: 14px;
    border-radius: 1px;
}

.pswp__button {
    width: 50px !important;
}

.pswp__360-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pswp__360-image-container iframe {
    background: #444;
    width: 100%;
    height: 100%;
    max-width: calc(100vw - 20rem);
    max-height: 100vh;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
}

.pswp__video-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pswp__video-container video {
    width: 100%;
    height: 100%;
    max-width: calc(100vw - 100px);
    max-height: 100vh;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* =========================================
*   10.0 ROTATE DEVICE
* ========================================= */

.rotate-device {
    position: fixed;
    background-color: #000000;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
    color: #fff;
}

.rotate-device.show {
    display: flex;
}

.rotate-device .phone {
    height: 5rem;
    width: 10rem;
    border: 0.3rem solid white;
    border-radius: 1rem;
    animation: rotate-device 4s ease-in-out infinite;
}

.rotate-device a,
.rotate-device a:active,
.rotate-device a:focus,
.rotate-device a:visited,
.rotate-device a:hover {
    color: #fff;
    letter-spacing: normal;
    padding: 10px 30px;
}

@keyframes rotate-device {
    0%   { transform: rotate(-90deg) }
    70%  { transform: rotate(0deg) }
    100% { transform: rotate(-90deg) }
}


/* new tutte le camere ajax */

/* ====== GRIGLIA 3/2/1 ====== */ 
#tutte-camere { --gap: 24px; }

#tutte-camere .wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

#tutte-camere .wrapper .card {
  max-width: none;
  height: 100%;
}



/* ====== PAGINAZIONE NUMERATA ====== */
#tutte-camere .footer-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tutte-camere .numbered-pagination {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}

#tutte-camere .numbered-pagination .page-item a,
#tutte-camere .numbered-pagination .page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #BC1548;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}

#tutte-camere .numbered-pagination .page-item a.page-numbers {
  color: #BC1548;
  background: #fff;
}
#tutte-camere .numbered-pagination .page-item a.page-numbers:hover {
  background: #BC1548;
  color: #fff;
}

#tutte-camere .numbered-pagination .page-item span.page-numbers.current {
  background: #BC1548;
  color: #fff;
  border-color: #BC1548;
}

#tutte-camere .numbered-pagination .page-item span.page-numbers.dots {
  border-color: transparent;
  min-width: 24px;
  height: 40px;
  padding: 0 4px;
  color: #666;
}

#tutte-camere .numbered-pagination .page-item a:focus {
  outline: 2px solid #BC1548;
  outline-offset: 2px;
}

/* ====== STATO LOADING (AJAX) ====== */
#tutte-camere.is-loading .wrapper {
  position: relative;
  opacity: .6;
  pointer-events: none;
}
#tutte-camere.is-loading .wrapper::after {
  content: 'Caricamento…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #BC1548;
  background: rgba(255,255,255,.6);
}
 /*header text mobile: vedi style-mobile.css */


/* =========================================
*   11.0 WPML
* ========================================= */

.wpml-ls-legacy-list-horizontal a span {
    vertical-align: middle;
    width: 50px;
    display: block;
}
