/* ============================================================
   TV SOLUZIONI IMMOBILIARI - KERESPONSIVE.CSS
   Custom theme - mobile/tablet breakpoints
   ============================================================ */

/* === HEADER MOBILE === */
@media (max-width: 1399px) {
    .header .bar { padding: 0 28px; gap: 16px; }
    .header .link, .header .menu a { padding: 0 14px; font-size: 15px; }
    .header .logo { width: auto; height: 46px; }
}

@media (max-width: 991px) {
    .header .bar .nav { display: none; }
    .header .toggle { display: inline-flex; }
    .header .bar { height: 88px; padding: 0 24px; }
    .header .logo { width: auto; height: 56px; max-width: 70vw; }
    .header .language { display: none; }
    .mobile-menu_wrapper .harmic-offcanvas-body .inner-body .offcanvas-menu_area .offcanvas-navigation .mobile-menu li:not(:last-child),
    .mobile-menu_wrapper .harmic-offcanvas-body .inner-body .offcanvas-menu_area .offcanvas-navigation .mobile-menu li:last-child {
        padding-bottom: 0;
        padding: 10px 0;
    }
    .mobile-menu_wrapper .harmic-offcanvas-body .inner-body .offcanvas-menu_area .offcanvas-navigation .mobile-menu li a{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .menu-item-has-children > a::after {
        margin-top: 8px;
    }
    .header .mobile .language {
        border-top: none;
    }
    .header .mobile .language .language-link.is-active {
        color: #fff!important;
    }
}

@media (max-width: 575px) {
    .header .bar { padding: 0 16px; height: 80px; }
    .header .logo { width: auto; height: 48px; max-width: 65vw; }
}

/* === FOOTER MOBILE === */
@media (max-width: 991px) {
    .footer .grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .footer .top { padding: 56px 0 56px; }
}

@media (max-width: 575px) {
    .footer .grid { grid-template-columns: 1fr; gap: 28px; }
    .footer .top { padding: 48px 0 32px; }
    .footer .bottom-container { flex-direction: column; align-items: flex-start; text-align: left; }
    .footer .legal { flex-wrap: wrap; }
}

/* === HOME BODY MOBILE === */
@media (max-width: 1199px) {
    .home .search .form { padding: 12px 12px 12px 20px; }
    .home .about .container { grid-template-columns: 1fr; gap: 48px; }
    .home .section-heading .title, .home .visit .title, .home .about .title { font-size: 26px; }
}

@media (max-width: 991px) {
    .home .hero { height: 460px; }
    .home .hero .media { height: 460px; }
    .home .search { margin-top: -136px; }
    .home .search .form { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 18px; }
    .home .search .field, .home .search .submit { padding: 0; border: 0; width: 100%; min-width: 0; }
    .home .search .field .kk-select, .home .search .field .kk-obj, .home .search .control, .home .search .submit .kk-button, .home .search .button { width: 100%; box-sizing: border-box; }
    .home .search .button { min-height: 52px; min-width: 0; }
    .home .search .submit { grid-column: auto; align-self: stretch; }
    .home .featured { padding: 56px 0; }
    .home .featured .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .home .about { padding: 60px 0; }
    .home .about .container { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
    .home .about .media { gap: 8px; }
    .home .about .figure.primary { flex: 1 1 70%; height: auto; aspect-ratio: 1 / 1; }
    .home .about .figure.secondary { flex: 1 1 30%; height: auto; aspect-ratio: 1 / 3; }
    .home .about .swiper { height: 320px; }
    .home .about .title { font-size: 28px; max-width: 100%; }
    .home .about .text { max-width: 100%; }
    .home .cities .logo-circle { width: 140px; height: 140px; right: -40px; }
    .home .cities { padding: 60px 0; }
    .home .cities .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .home .visit { padding: 60px 0; }
    .home .visit .grid { grid-template-columns: 1fr; gap: 18px; }
    .home .testimonial { padding: 56px 0; }
    .home .testimonial .text { font-size: 18px; }
}

@media (max-width: 575px) {
    .home .hero { height: 360px; }
    .home .hero .media { height: 360px; }
    .home .search { margin-top: -134px; padding: 0 16px; }
    .home .search .form { grid-template-columns: repeat(2, 1fr); gap: 10px 12px; padding: 14px 16px; }
    .home .search .field, .home .search .submit { padding: 0; border: 0; width: 100%; min-width: 0; }
    .home .search .field .kk-select, .home .search .field .kk-obj, .home .search .control, .home .search .submit .kk-button, .home .search .button { width: 100%; box-sizing: border-box; }
    .home .search .button { min-height: 52px; min-width: 0; }
    .home .search .submit { grid-column: auto; align-self: stretch; }
    .home .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
    .home .section-heading .title, .home .visit .title, .home .about .title { font-size: 22px; }
    .home .featured .grid { grid-template-columns: 1fr; }
    .home .cities .grid { grid-template-columns: 1fr; }
    .home .about { padding: 48px 0; }
    .home .about .container { padding: 0 16px; gap: 28px; }
    .home .about .media { flex-direction: column; gap: 10px; }
    .home .about .figure.primary, .home .about .figure.secondary { flex: 1 1 auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .home .about .swiper { height: 260px; }
    .home .about .title { font-size: 24px; margin-bottom: 18px; }
    .home .about .link { width: 100%; min-width: 0; }
    .home .cities .logo-circle { display: none; }
    .home .visit .heading { flex-direction: column; align-items: flex-start; }
    .home .visit .contacts { flex-direction: column; gap: 10px; padding: 14px 18px; }
    .home .testimonial .text { font-size: 16px; }
}

@media (max-width: 991px) {
    .estates .hero { height: 360px; }
    .estates .hero .title { font-size: 48px; }
    .estates .grid-section .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .estates .filters { padding: 0 16px; }
    .estates .filters .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .estates .filters .field.submit { grid-column: 1 / -1; }
    .estates .filters .row { flex-wrap: wrap; }
    .estates .filters .field { border-right: 0; }
    .estates .filters .control { height: 48px; line-height: 48px; font-size: 15px; padding: 0 36px 0 14px; background-position: right 14px center; }
    .estates .filters .button, .estates .filters .map-toggle { height: 48px; font-size: 13px; padding: 0 14px; }
    .estates .filters .select .selectize-input, .estates .filters .select .kk-select-input { min-height: 48px; font-size: 15px; padding: 12px 36px 12px 14px; line-height: 1.3; }
    .estates .filters .select .selectize-dropdown, .estates .filters .select .kk-select-dropdown { font-size: 15px; }
}

@media (max-width: 575px) {
    .estates .hero { height: 280px; }
    .estates .hero .title { font-size: 36px; }
    .estates .grid-section .grid { grid-template-columns: 1fr; gap: 20px; }
    .estates .filters .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .estates .filters .field.submit { grid-column: 1 / -1; flex-direction: column; }
    .estates .toolbar .inner { flex-direction: row; align-items: center; padding: 0 16px; }
}

/* estates map view responsive (wave 2) */
@media (max-width: 991px) {
    .estates .map { grid-template-columns: 1fr; height: auto; }
    .estates .map .sidebar { max-height: 400px; border-right: none; border-bottom: 1px solid #ebebeb; }
    .estates .map .canvas { height: 500px; }
}
@media (max-width: 575px) {
    .estates .map .card .link { grid-template-columns: 110px 1fr; }
    .estates .map .card .media { width: 110px; height: 110px; }
}

/* ==========================================================================
   .estate — Estate single page responsive
   ========================================================================== */
@media (max-width: 991px) {
  .estate .hero { height: 360px; }
  .estate .hero .cta { left: 16px; bottom: 16px; padding: 10px 14px; font-size: 13px; }
  .estate .hero .share { right: 16px; bottom: 16px; }
  .estate .header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .estate .header .code,
  .estate .header .price { text-align: left; }
  .estate .details .grid { grid-template-columns: repeat(2, 1fr); }
  .estate .row.two { grid-template-columns: 1fr; }
  .estate .related .grid { grid-template-columns: repeat(2, 1fr); }
  .estate .gallery .swiper .swiper-slide { width: calc(50% - 12px); }
  .estate .related .title { font-size: 28px; }
}

@media (max-width: 575px) {
  .estate .hero { height: 280px; }
  .estate .details .grid { grid-template-columns: 1fr; }
  .estate .related .grid { grid-template-columns: 1fr; }
  .estate .features { flex-wrap: wrap; gap: 16px; }
  .estate .gallery .swiper .swiper-slide { width: 100%; }
  .estate .header .title { font-size: 24px; }
  .estate .header .price { font-size: 22px; }
  .estate .container { padding: 0 16px; }
  .estate .details,
  .estate .gallery,
  .estate .floorplans,
  .estate .video,
  .estate .location,
  .estate .contact { padding: 20px; }
  .estate .contact { padding-top: 40px; }
  .estate .related { padding: 40px 0 60px; margin-top: 60px; }
  .estate .related .title { font-size: 24px; }
}

/* ==========================================================================
   .about — Chi Siamo page responsive
   ========================================================================== */
@media (max-width: 1399px) {
  .about .hero .container { max-width: 1124px; padding-left: 24px; padding-right: 24px; }
  .about .selling .mark { right: 24px; }
  .about .testimonial .container { padding: 0 48px; }
}

@media (max-width: 1199px) {
  .about .intro,
  .about .selling,
  .about .agency,
  .about .testimonial { height: auto; }
  .about .intro { padding: 64px 0; }
  .about .intro .grid,
  .about .selling .grid { grid-template-columns: minmax(320px, 425px) minmax(420px, 590px); gap: 42px; }
  .about .intro .figure { width: 100%; }
  .about .intro .content,
  .about .intro .content .text,
  .about .selling .content,
  .about .selling .list { width: 100%; }
  .about .intro .content .title,
  .about .selling .content .title { width: 100%; }
  .about .agency { padding: 48px 0 88px; }
  .about .agency .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 31vw; }
  .about .testimonial { padding: 58px 0; }
}

@media (max-width: 991px) {
  .about .hero { height: 340px; }
  .about .hero .container { padding-top: 82px; }
  .about .hero .title { font-size: 48px; line-height: 54px; }
  .about .intro .grid,
  .about .selling .grid { grid-template-columns: 1fr; gap: 34px; }
  .about .intro .figure { height: 420px; }
  .about .intro .content { padding-top: 0; }
  .about .intro .content .title { font-size: 40px; line-height: 44px; }
  .about .manifesto { height: auto; padding: 56px 0; }
  .about .manifesto .title,
  .about .selling .content .title,
  .about .agency .head .title { font-size: 30px; line-height: 36px; }
  .about .manifesto .text { margin-top: 32px; }
  .about .selling { padding: 64px 0; }
  .about .selling .mark { width: 180px; height: auto; top: 12px; right: -40px; }
  .about .selling .figure { width: 100%; height: 300px; }
  .about .agency .head { height: auto; margin-bottom: 36px; }
  .about .agency .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; gap: 18px; }
  .about .agency .figure.wide,
  .about .agency .figure.small { grid-column: span 1; }
  .about .agency .actions { margin-top: 42px; flex-wrap: wrap; }
  .about .testimonial .quote .text { font-size: 26px; line-height: 32px; }
}

@media (max-width: 575px) {
  .about .container { padding: 0 16px; }
  .about .hero { height: 280px; }
  .about .hero .container { padding: 62px 16px 0; }
  .about .hero .breadcrumb { font-size: 13px; }
  .about .hero .title { margin-top: 22px; font-size: 38px; line-height: 44px; }
  .about .intro { padding: 48px 0; }
  .about .intro .figure { height: 340px; }
  .about .intro .content .title { font-size: 32px; line-height: 36px; }
  .about .intro .content .text,
  .about .manifesto .text { text-align: left; font-size: 15px; line-height: 22px; }
  .about .manifesto .title,
  .about .selling .content .title,
  .about .agency .head .title { font-size: 26px; line-height: 32px; }
  .about .selling .figure { height: 240px; }
  .about .selling .mark { display: none; }
  .about .selling .list { font-size: 15px; line-height: 22px; }
  .about .agency { padding: 44px 0 60px; }
  .about .agency .head .text { font-size: 15px; line-height: 22px; }
  .about .agency .grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .about .agency .actions { gap: 14px; }
  .about .button,
  .about .button.large,
  .about .button.regular { width: 100%; max-width: 348px; font-size: 13px; letter-spacing: .5px; }
  .about .testimonial { padding: 44px 0; }
  .about .testimonial .container { padding: 0 16px; }
  .about .testimonial .quote .text { font-size: 21px; line-height: 27px; }
  .about .testimonial .quote .author { font-size: 14px; }
}

/* ==========================================================================
   .services — Servizi page responsive
   ========================================================================== */
@media (max-width: 1399px) {
  .services .hero .container { max-width: 1128px; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1199px) {
  .services .intro { height: auto; padding: 72px 0; }
  .services .intro .text { margin-top: 44px; }
  .services .list .card,
  .services .list .card.h280,
  .services .list .card.h288,
  .services .list .card.h285,
  .services .list .card.h313,
  .services .list .card.h312,
  .services .list .card.h316 { height: auto; min-height: 285px; padding: 48px 0; }
  .services .list .card .inner { display: grid; grid-template-columns: minmax(220px, 235px) minmax(420px, 632px); gap: 56px; align-items: center; height: auto; }
  .services .list .card.image-right .inner { grid-template-columns: minmax(420px, 632px) minmax(220px, 236px); }
  .services .list .card .media,
  .services .list .card .content,
  .services .list .card.image-left .media,
  .services .list .card.image-left .content,
  .services .list .card.image-right .media,
  .services .list .card.image-right .content,
  .services .list .card.h316.image-right .media,
  .services .list .card.h316.image-right .content { position: static; width: 100%; }
  .services .list .card .media { height: 181px; }
  .services .list .card.image-right .media { grid-column: 2; grid-row: 1; }
  .services .list .card.image-right .content { grid-column: 1; grid-row: 1; }
  .services .contact { padding-top: 48px; }
  .services .contact .panel { min-height: 0; padding-bottom: 64px; transform: none; }
}

@media (max-width: 991px) {
  .services .hero { height: 340px; }
  .services .hero .container { padding-top: 82px; }
  .services .hero .title { font-size: 48px; line-height: 54px; }
  .services .intro .title { font-size: 40px; line-height: 44px; }
  .services .list .card .inner,
  .services .list .card.image-right .inner { grid-template-columns: 1fr; gap: 28px; }
  .services .list .card.image-right .media,
  .services .list .card.image-right .content { grid-column: auto; grid-row: auto; }
  .services .list .card .media,
  .services .list .card.image-right .media { width: 235px; max-width: 100%; }
  .services .list .card.image-right .media { justify-self: start; }
  .services .list .card .content { width: 100%; }
  .services .list .card .title { min-height: 0; font-size: 30px; line-height: 36px; }
  .services .list .card .text,
  .services .list .card.image-left .text { margin-top: 24px; }
}

@media (max-width: 575px) {
  .services .hero { height: 280px; }
  .services .hero .container { padding: 62px 16px 0; }
  .services .hero .breadcrumb { font-size: 13px; }
  .services .hero .title { margin-top: 22px; font-size: 38px; line-height: 44px; }
  .services .intro { padding: 48px 0; }
  .services .intro .container { padding: 0 16px; }
  .services .intro .title { font-size: 32px; line-height: 36px; }
  .services .intro .text { margin-top: 28px; font-size: 15px; line-height: 22px; text-align: left; }
  .services .list .card,
  .services .list .card.h280,
  .services .list .card.h288,
  .services .list .card.h285,
  .services .list .card.h313,
  .services .list .card.h312,
  .services .list .card.h316 { padding: 42px 0; }
  .services .list .card .inner { max-width: calc(100% - 32px); }
  .services .list .card .media,
  .services .list .card.image-right .media { width: 100%; height: 210px; }
  .services .list .card .title { font-size: 26px; line-height: 32px; }
  .services .list .card .text { font-size: 15px; line-height: 22px; text-align: left; }
  .services .contact { padding: 36px 0 10px; }
  .services .contact .panel { padding: 36px 16px 52px; }
  .services .contact .title { font-size: 30px; line-height: 36px; }
  .services .contact .intro { margin-top: 32px; line-height: 22px; }
  .services .contact .form { margin-top: 44px; }
  .services .contact .grid { grid-template-columns: 1fr; gap: 16px; }
  .services .contact .textarea { margin-top: 16px; }
  .services .contact .submit { width: 180px; height: 48px; font-size: 14px; }
}
