/*
 * Theme Name: AMYPet
 * Description: Starter Theme to use with Timber
 * Author: MonkeySpace3
*/

html{scroll-behavior: auto;}

body {
    font-family: "Exo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    background-color: #fff;
}

.absolute{position: absolute;}
.fixed{position: fixed;}
.relative {position: relative;}

.mt-section-custom{margin-top:6rem;}
.mt-section-custom-banner{margin-top: 7rem;}

h1, .titolo{font-size: 42px; line-height: 46px;}
h2{font-size: 28px;}
h3{font-size: 22px;}
h4{font-size: 18px;}

.fullheight{height: 100vh;}

a, a:visited{text-decoration: none; color: #000;}
a:hover{color: #9EFF1F;}

.testo_bianco{color:#ffffff;}
.testo_dark{color:#222222;}
.testo_ottanio{color:#003E52;}
.testo_zucchero{color:#82A0BE;}
.testo_rosa{color:#FFF5E6;}

.mini_text{font-size:12px; line-height: 14px;}

.bg{background-size: cover; background-repeat: no-repeat; background-position: center;}

.bg_bianco{background-color: #fff;}
.bg_sabbia{background-color: #F9E4AC;}
.bg_verde{background-color: #D7E7C0;}
.bg_verde_acido{background-color: #9EFF1F;}
.bg_cachi{background-color: #D4AE81;}
.bg_caramello{background-color: #F2B57E;}
.bg_dark{background-color: #000; color:#F9E4AC;}

.circle{border-radius: 50%;}
.bordered{border: 5px solid #fff;}

.btn {
    border-radius: 20px;
    border: 1px solid #000;
    text-transform: uppercase;
    padding: 8px 30px;
    font-weight: bold;
}
.btn:hover{background-color: #9EFF1F; color:#000;}
.btn:hover a{color:#000;}
.btn:active, .btn:focus{outline: none;box-shadow: none;}
.btn-sabbia{background-color: #F9E4AC;}
.btn-bianco{background-color: #ffffff; color: #003E52;}

.uppercase {text-transform: uppercase;}
.italic {font-style: italic;}

.light {font-weight: 300;}
.regular {font-weight: 400;}
.medium {font-weight: 500;}
.semibold {font-weight: 600;}
.bold {font-weight: 700;}
.extrabold {font-weight: 800;}
.black {font-weight: 6900;}

.overflow-h{overflow: hidden;}

header.sticky{transition: max-height 0.3s ease-out;}
header.sticky .logo{transition: width 0.3s ease-out;}

header{width: 100%; top:0; background-color: #fff; z-index:101;}
header.sticky{transition: max-height 0.3s ease-out;}
header.sticky .logo{transition: width 0.3s ease-out;}
header ul, footer ul{list-style: none; padding-left: 0; margin-bottom: 0;}
header li, footer li{display: inline-block; margin-right: 15px;}
header li:last-child, footer li:last-child{margin-right: 0;}
header .nav-main a{color:#3E556B; font-size: 16px;}

header.sticky{
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
}
header:not(.sticky){
    transform: translateY(0);
}

.mega-menu{display: none;}
.mega-menu ul{list-style: none; font-size: 1.8rem;}
.mega-menu .menu a{color:#fff;}
.mega-menu nav{margin-top: 100px;}

/*
.mega-menu {
    transition: .3s ease-in-out;
    position: fixed;
    padding-bottom: 78px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    opacity: 0;
    display: none;
    overflow-y: auto;
    text-align: right;
}
.mega-menu nav {
    padding-top: 70px;
}
.mega-menu.reveal {
    opacity: 1;
    background:#000;
}
.close-menu {
    height: 30px;
    cursor: pointer;
    display: none;
}
*/

.menu_panel {
    position: fixed;
    top: 140px; /* regola in base all'altezza header */
    right: 20px;
    width: 25vw;
    max-width: 350px;
    min-width: 250px;

    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    padding: 20px;
    z-index: 999;

    display: none;
}

.menu_panel .pittogramma_cat img{width: 50px;}

.menu_panel.active {
    display: block;
}

.menu_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_list ul {list-style: none; padding-left: 0;}

.menu_list li {
    margin-bottom: 5px;
}

.menu_list a {
    text-decoration: none;
    color: #000;
}

.footer{font-size:16px; line-height: 24px; background-color: #fff;}
.footer .social_footer{list-style: none;}
.footer .social_footer li{display: inline-block; margin-right: 5px;}
.footer .social_footer li:last-child{margin-right: 0;}
.footer .ico_social{width: 40px;}
.footer .pittogramma_footer{width: 150px; transform: translateY(10px);}
.footer .separatore{width:100%; height: 1px; background-color: #707070;}
.footer li.menu-item{width:100%;}
.footer input{padding:10px 20px; border-radius: 30px; border:1px solid #000; width:100%;}
.footer .wpcf7-acceptance input{width: auto;}
.footer .footer_menu a{text-transform: capitalize;}

/*.ico_menu .menu{width: 100px;}*/
header img.hamburger_menu{/*width: 30%;*/ width: 80%;}

.titolo_grande{text-transform: uppercase; font-size: 66px; line-height: 70px;}
.testo_grande{font-size: 26px; line-height: 36px;}

.content_box{border-radius: 20px;}
.px-6{padding-left:5.5rem; padding-right: 5.5rem;}

.content_dx .titolo_riga01{transform: translateX(-10%);}
.content_box .titolo_box{text-transform: unset; font-weight: 700;}
.content_box .cta_list button{margin-bottom:10px;}
.content_box .cta_list button:last-child{margin-bottom:0;}

.content_dx #gatto_01{max-width: 115%; z-index: 2;}
.content_sx #gatto_03{max-width: 125%; transform: translateX(-20%);}
.content_dx #gatto_06{max-width: 110%; transform: translateX(3%);}
.content_sx #gatto_05{max-width: 125%; transform: translateX(-15%);}

/* Video in HP */
.video-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}
.bg-video {
    pointer-events: none;

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.4s ease;

    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
}
.bg-video.active {
    opacity: 1;
    z-index: 1;
}
.content_page {
    position: relative;
    z-index: 1;
}
.bg-video.active {
    opacity: 1;
}
.finestra {
    height: 700px;
    background: transparent;
    position: relative;
    z-index: 2;
}

/*section#content, footer{position: relative; top:-10px;}*/

.cube-word {
    display: none;
}
.cube-word.active {
    display: inline;
}
.cube-rotate {
    display: inline-block;
    perspective: 600px;
    height: 1.2em;
    vertical-align: middle;
}
.cube-inner {
    display: block;
    position: relative;
    height: 1.2em;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.cube-word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1.2em;
    line-height: 1.2em;
    backface-visibility: hidden;
}
.cube-word:nth-child(1) {
    transform: rotateX(0deg) translateZ(10px);
}
.cube-word:nth-child(2) {
    transform: rotateX(-90deg) translateZ(10px);
}
.cube-word.active {
    display: block;
}

.typewriter::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
}

.footer_logo{
    width: 100px;
}

.video-layer,
.bg-video {
    pointer-events: none;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.article-body {
    display: flow-root;
}

.hero_page .main_img{height: 700px; border-radius: 30px;}
.hero_page .card_page_title{background-size: contain; background-position: center bottom; background-repeat: no-repeat; height: 400px; transform: translateY(50px);}
.card_page_title.card_pt_giallo{background-image: url("/wp-content/themes/amypet/static/img/bg_card_title_giallo.svg");}
.card_page_title.card_pt_verde{background-image: url("/wp-content/themes/amypet/static/img/bg_card_title_verde.svg");}
.card_page_title.card_pt_verde_acido{background-image: url("/wp-content/themes/amypet/static/img/bg_card_title_verde_acido.svg");}
.card_page_title.card_pt_cachi{background-image: url("/wp-content/themes/amypet/static/img/bg_card_title_cachi.svg");}

.banner .testimonial{position: absolute; left:0; bottom:0;}
.banner .col_banner{border-radius: 30px; overflow: hidden;}

.card_animale .img_card{height: 350px; border-radius: 30px; overflow: hidden;}
.card_animale .animal_name{font-size: 32px; line-height: 36px;}

.lista_animali .animal_razza{text-transform: capitalize;}

.scheda_animale .img_card{height: 600px; border-radius: 30px; overflow: hidden;}
.scheda_animale .dato_animale{border-bottom: 1px solid #707070; line-height: 40px;}
.scheda_animale .dato_animale{font-weight: 700;}
.scheda_animale .dato_animale .label{font-weight: 400;}
.scheda_animale .descrizione{font-size: 20px; line-height: 30px;}

.card_servizio{border-radius: 30px; overflow: hidden; min-height: 160px;}
.card_servizio img{max-height: 70px;}

.operatori .nome_operatore{font-size: 36px; line-height: 40px;}
.operatori .citta_operatore{font-size: 26px; line-height: 30px;}
.operatori .toggle-servizi{cursor:pointer;}
.operatori .card_operatore .servizi{display: none; user-select: none;}
.operatori .card_operatore .toggle-servizi.close { display: none; }
.operatori .toggle-servizi{font-weight: 700; text-decoration: underline;}

.offerta .ico_lista{max-height: 100px;}
.offerta{font-size: 24px; line-height: 32px;}

.article_preview .article_thumb{height: 300px; border-radius: 30px;}
.article_preview .article_title{font-weight: bold; font-size: 26px; line-height: 30px;}
.news .news_link:hover,.news .news_link:hover *{color: inherit !important; text-decoration: none !important;}

.sedi .sede_foto, .sedi .sede_card{min-height: 300px; border-radius: 30px;}
.sedi .sede_luogo{font-size:80px; line-height: 84px;}




/* form */

    /* Input & Textarea base */
    .cf7-pet-form .form-control,
    .cf7-pet-form .wpcf7-form-control-wrap input,
    .cf7-pet-form .wpcf7-form-control-wrap textarea,
    .cf7-pet-form .wpcf7-form-control-wrap select {
      border: 1.5px solid #000;
      border-radius: 50px;
      padding: 12px 22px;
      font-size: 14px;
      color: #000;
      background-color: #fff;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      height: auto;
      line-height: 1.4;
    }
 
    .cf7-pet-form .form-control:focus,
    .cf7-pet-form .wpcf7-form-control-wrap input:focus,
    .cf7-pet-form .wpcf7-form-control-wrap textarea:focus {
      border-color: #000;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
      outline: none;
    }
 
    .cf7-pet-form .form-control::placeholder {
      color: #000;
      font-size: 14px;
    }
 
    /* Textarea — pill top, rounded bottom */
    .cf7-pet-form textarea.form-control,
    .cf7-pet-form .wpcf7-form-control-wrap textarea {
      border-radius: 22px;
      min-height: 120px;
      resize: vertical;
    }
 
    /* Date input — fix altezza */
    .cf7-pet-form input[type="date"].form-control {
      padding: 10px 22px;
    }
 
    /* File upload wrapper */
    .cf7-file-wrapper {
      position: relative;
      border: 1.5px solid #000;
      border-radius: 50px;
      padding: 8px 22px;
      display: flex;
      align-items: center;
      gap: 12px;
      background: #fff;
      min-height: 48px;
      transition: border-color 0.2s ease;
    }
 
    .cf7-file-wrapper:focus-within {
      border-color: #000;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }
 
    .cf7-file-label {
      font-size: 14px;
      color: #000;
      white-space: nowrap;
      flex-shrink: 0;
    }
 
    .cf7-file-wrapper .wpcf7-form-control-wrap {
      flex: 1;
    }
 
    .cf7-file-wrapper input[type="file"],
    .cf7-file-wrapper .wpcf7-form-control-wrap input[type="file"] {
      border: none !important;
      padding: 0 !important;
      font-size: 13px;
      border-radius: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    .cf7-file-wrapper .wpcf7-form-control-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    }

    .cf7-file-wrapper .wpcf7-form-control-wrap input[type="file"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }
 
    /* Privacy checkbox */
    .cf7-privacy-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: #000;
      cursor: pointer;
      padding-top: 4px;
    }
 
    .cf7-privacy-label input[type="checkbox"] {
      margin-top: 2px;
      flex-shrink: 0;
      width: 16px;
      height: 16px;
      accent-color: #000;
    }
 
    .cf7-privacy-label .wpcf7-list-item {
      margin: 0;
    }

    .cf7-privacy-label a{
      color: #9EFF1F;
      text-decoration: underline;
    }
 
    /* Submit */
    .cf7-submit-btn,
    .cf7-pet-form input[type="submit"] {
      background-color: #fff;
      color: #333;
      border: 1.5px solid #c5c5c5;
      border-radius: 50px;
      padding: 12px 40px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
      margin-top: 4px;
    }
 
    .cf7-submit-btn:hover,
    .cf7-pet-form input[type="submit"]:hover {
      border-color: #888;
      background-color: #f9f9f9;
    }
 
    .cf7-submit-btn:active,
    .cf7-pet-form input[type="submit"]:active {
      transform: scale(0.98);
    }
 
    /* CF7 validation messages */
    .cf7-pet-form .wpcf7-not-valid-tip {
      font-size: 12px;
      color: #d32f2f;
      padding-left: 22px;
      margin-top: 4px;
    }
 
    .cf7-pet-form .wpcf7-response-output {
      border-radius: 12px;
      padding: 14px 22px;
      font-size: 13px;
      margin-top: 16px;
    }

    .cf7-file-wrapper p{
        display: flex;
        margin-bottom: 0;
    }
 
    /* Responsive */
    @media (max-width: 575.98px) {
      .cf7-pet-form {
        padding: 20px 16px;
      }
 
      .cf7-pet-form .form-control,
      .cf7-pet-form .wpcf7-form-control-wrap input,
      .cf7-pet-form .wpcf7-form-control-wrap textarea {
        font-size: 16px; /* evita zoom su iOS */
        padding: 12px 18px;
      }
    }

    





@media screen and (min-width: 992px) {
    .banner .testo{font-size: 20px; line-height: 30px;}
}


@media screen and (min-width: 768px) {
    .banner .banner_card{padding-left:5rem !important;}

    .testo{font-size: 20px; line-height: 30px;}
    .card_servizio .descrizione_servizio{font-size: 20px; line-height: 30px;}
    .card_servizio .descrizione_servizio p{margin-bottom:0;}

    .banner .col_banner{padding-left: 10%;}
}

@media screen and (max-width: 1399px) {
    .titolo_grande{font-size: 52px; line-height: 56px;}
    .section_city .pittogramma_titolo{width: 120px;}

    html, body{overflow-x: hidden !important;}
}

@media screen and (max-width: 991px) {
    .section_city .pittogramma_titolo{width: 100px;}
    .testo_grande{font-size: 22px; line-height: 32px;}
    .finestra {height: 500px;}

    header img.hamburger_menu{/*width: 50%;*/ width: 100%;}

    .content_dx #gatto_01{max-width:100%; transform: translateX(0);}
    .content_sx #gatto_03{max-width:100%; transform: translateX(0);}
    .content_dx #gatto_06{max-width:100%; transform: translateX(0);}
    .content_sx #gatto_05{max-width:100%; transform: translateX(0);}

    footer{margin-bottom: 0 !important;}

    .bg-video {will-change: opacity;}

    .scheda_animale .img_card{height: 400px;}
}

@media screen and (max-width: 767px) {
    .mt-section-custom-banner{margin-top:4rem;}

    .titolo_grande{font-size: 46px; line-height: 50px;}
    .section_city .pittogramma_titolo{width: 80px;}
    .content_dx .titolo_riga01{transform: translateX(0);}
    .px-6{padding-left:3.5rem; padding-right: 3.5rem;}
}

@media screen and (max-width: 480px) {
    .titolo_grande{font-size: 28px; line-height: 32px;}
    .section_city .pittogramma_titolo{width: 50px;}
    .testo_grande{font-size: 22px; line-height: 32px;}
    .ico_menu .menu{/*width: 35%;*/ width: 80%;}
    .finestra {height: 400px;}

    footer{margin-bottom: 0 !important;}

    .hero_page .main_img{height: 600px;}

    .menu_panel {top: 80px;}
}
/* ================================
   Safari/mobile + sticky setup
================================ */

html { scroll-behavior: auto; }

html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  position: static !important;
  overscroll-behavior-y: auto;
}

main, .site-main, .content_page {
  overflow-x: hidden !important;
  overflow-y: initial !important;
}

/* base header */
header, .header {
  width: 100%;
  top: 0;
  background-color: #fff;
  z-index: 101;
}

/* video bg mobile */
@media (max-width: 991px) {
  .video-layer{
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100svh;
    z-index: -1;
    pointer-events: none;
    transform: none !important;
    will-change: auto !important;
  }

  .bg-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
  }

  .bg-video.active{
    opacity: 1;
    z-index: 1;
  }

/* Sticky desktop + Android mobile ON */
@media (min-width: 992px), (max-width: 991px) {
  header.sticky, .header.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transform: none !important;
  }
}

/* iOS Safari OFF (evita freeze) */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 991px) {
    header, .header,
    header.sticky, .header.sticky {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
    }
  }
}/* default: sticky ON */
header.sticky, .header.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transform: none !important;
}

/* iOS Safari: sticky OFF */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 991px) {
    header, .header,
    header.sticky, .header.sticky {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
    }
  }
}/* default: sticky ON */
header.sticky, .header.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transform: none !important;
}

/* iOS Safari: sticky OFF */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 991px) {
    header, .header,
    header.sticky, .header.sticky {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
    }
  }
}