/* Shared layout fixes; desktop presentation remains in agriox.css/custom.css. */
.page-wrapper img { max-width: 100%; height: auto; }
.page-wrapper .row > * { min-width: 0; }
.footer-one .footer-widget__about-logo { display: block; max-width: 255px; }
.footer-one__bottom-logos img { display: block; width: 100%; max-width: 100%; height: auto; }
.about-three__content-box-inner,
.about-two__content-box-text,
.services-details__content,
.services-details__sidebar,
.team-details__content,
.blog-details,
.page-header__inner,
.about-section { overflow-wrap: anywhere; }
.services-details__content img,
.team-details__image img { width: 100%; height: auto; }
.services-details__sidebar a { overflow-wrap: anywhere; }
.produttori .features-one__single:focus-visible { outline: 3px solid var(--agriox-base); outline-offset: 4px; border-radius: 10px; }
.produttori .features-one__single:focus-visible .features-one__single__more { top: 100%; opacity: 1; }
.scroll-to-top i {
    position: absolute; top: 50%; left: 50%; display: block; line-height: 1;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.sidebar__latest-posts-list-item .img-box { width: 60px; flex: 0 0 60px; }
.sidebar__latest-posts-list-item .img-box img { width: 60px; height: 66px; object-fit: cover; }
.storia-ter .about-two__img-box-img1 { width: 75%; }
.storia-ter .about-two__img-box-img2 { left: 0; width: 65%; }
.storia-ter .about-two__img-box img { width: 100%; }
.logoCredits { max-width: 100%; height: auto !important; }
.logoCredits img { max-width: 100%; height: auto; }
.about-section { padding: 60px 0; }
.about-section table,
.blog-details table { display: block; max-width: 100%; overflow-x: auto; }
.blog-details iframe,
.about-section iframe { max-width: 100%; }
.main-slider__title,
.video-one__title,
.cta-one__left-title h2 { overflow-wrap: anywhere; }
.main-menu button.mobile-nav__toggler {
    border: 0; background: transparent; padding: 8px; min-width: 44px; min-height: 44px;
}
.mobile-nav__overlay { border: 0; padding: 0; }
.mobile-nav__content { max-width: calc(100vw - 36px); }
.mobile-nav__wrapper { height: 100dvh; transition: transform 250ms ease, opacity 250ms ease; }
.mobile-nav__close {
    border: 0; background: transparent; width: 44px; height: 44px;
    font-size: 32px; line-height: 1; padding: 0;
}
.mobile-nav__content .logo-box { margin: 40px 0 24px; }
.mobile-nav__content .logo-box a { display: block; background: #fff; border-radius: 8px; padding: 12px; }
.mobile-nav__content .logo-box img { width: 170px; max-width: 100%; height: auto; }
.mobile-nav__content .main-menu__list li a {
    min-height: 48px; height: auto; padding: 10px 0; line-height: 1.4;
}
.mobile-nav__content .main-menu__list li.current > a { color: var(--agriox-base); font-weight: 700; }
.mobile-nav__languages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mobile-nav__languages a { color: #fff; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.main-menu__list a:focus-visible,
.mobile-nav__content a:focus-visible,
.mobile-nav__content button:focus-visible,
.mobile-nav__toggler:focus-visible,
.comment-one__form :is(input, select, textarea, button):focus-visible { outline: 3px solid var(--agriox-base); outline-offset: 3px; }
.comment-form__privacy input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 5px; }
.comment-form__privacy label { flex: 1; min-width: 0; line-height: 1.7; }
.comment-form__privacy a { overflow-wrap: anywhere; }
.comment-form__input-box input { cursor: text; }
.comment-form__input-box :is(input, select, textarea) { max-width: 100%; }
.c-prodotti { gap: 20px; align-items: flex-start; }
.c-prodotti > img { width: 130px; max-width: 35%; object-fit: contain; }
.c-prodotti > div { min-width: 0; margin-left: 0 !important; }
.services-one > .container > .row > [class*="col-"] { display: flex; }
.services-one > .container > .row .services-one__single { display: flex; flex-direction: column; width: 100%; }
.services-one > .container > .row .services-one__single-content { flex: 1; display: flex; flex-direction: column; align-items: center; }
.services-one > .container > .row .read-more-btn { margin-top: auto; flex-shrink: 0; }
#colorbox #cboxTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1199px) {
    .wow { visibility: visible !important; animation: none !important; }
    .storia-ter .about-two__img-box { padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .storia-ter :is(.about-two__img-box-img1, .about-two__img-box-img2) { position: static; float: none; margin: 0; min-width: 0; width: auto; }
    .storia-ter .about-two__img-box-img2-inner { top: 0; }
    .about-two__bg, .about-two__img-box__shape, .about-two__img-box-img2__shape { display: none; }
    .main-header--one { padding: 12px 0; }
    .main-header--one__bottom { padding: 0; }
    .main-header--one__bottom .auto-container { padding: 0 20px; }
    .main-header--one__bottom-inner { min-height: 84px; flex-wrap: nowrap; gap: 12px; }
    .main-header--one__bottom-left { width: auto; flex: 0 1 180px; }
    .main-header--one__bottom-left .logo img { width: 160px; max-width: 100%; height: auto; }
    .main-header--one__bottom .main-menu--1 {
        position: static; width: auto; height: auto; margin-left: auto; flex: 0 0 auto; order: 3;
    }
    .main-header--one__bottom .header-language-switcher { display: flex; flex: 0 0 auto; }
    .header-language-switcher .search-cart { display: flex; padding: 0; gap: 4px; }
    .header-language-switcher .search-cart a {
        min-width: 36px; min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 0;
    }
    .main-slider .container { padding-top: 95px; padding-bottom: 110px; }
    .main-slider__title { font-size: clamp(40px, 7vw, 76px); line-height: 1.12; }
    .sec-title__title { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.2; }
    .page-header { padding: 70px 0; }
    .page-header__inner h2 { font-size: clamp(30px, 4.8vw, 46px); line-height: 1.2; }
    .about-three, .about-two, .features-one, .services-one, .blog-one,
    .services-details, .team-details, .news-details, .contact-page,
    .projects-details, .projects-one { padding-top: 65px; padding-bottom: 65px; }
    .video-ter.projects-details { padding-top: 0; }
    .video-one { padding: 80px 0; }
    .video-one__title { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.2; }
    .video-one__right { padding-top: 36px; }
    .video-one__wrpper:not(:has(.video-one__left)) .video-one__right { padding-top: 0; }
    .cta-one { padding: 50px 0; }
    .cta-one__wrapper { gap: 28px; }
    .cta-one__left { min-width: 0; flex: 1; gap: 20px; }
    .cta-one__left-icon { flex: 0 0 85px; width: 85px; height: 85px; }
    .cta-one__left-title { min-width: 0; padding-left: 0; }
    .cta-one__left-title h2 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.25; }
    .cta i { padding: 22px 0; }
    .footer-one__top { padding-top: 60px; padding-bottom: 25px; }
    .footer-one .footer-widget__about-logo img { width: 160px; max-width: 100%; }
    .footer-widget__column { margin-bottom: 30px; }
    .footer-widget__explore { margin-top: 0; }
    #colorbox #cboxLoadedContent { margin-bottom: 68px; }
    #colorbox #cboxTitle { bottom: 44px; left: 4px; right: 4px; width: auto; height: 24px; line-height: 24px; font-size: 13px; }
    #colorbox #cboxCurrent { bottom: 0; left: 100px; height: 44px; line-height: 44px; font-size: 13px; }
    #colorbox :is(#cboxPrevious, #cboxNext, #cboxClose) {
        width: 44px; height: 44px; bottom: 0; background: none; text-indent: 0; font-size: 0;
    }
    #colorbox #cboxPrevious { left: 0; }
    #colorbox #cboxNext { left: 46px; }
    #colorbox :is(#cboxPrevious, #cboxNext, #cboxClose)::before { font-size: 30px; line-height: 44px; color: #555; }
    #colorbox #cboxPrevious::before { content: '\2039'; }
    #colorbox #cboxNext::before { content: '\203a'; }
    #colorbox #cboxClose::before { content: '\00d7'; }
}

@media (max-width: 991px) {
    .about-three__content-box { margin: 0; max-width: none; }
    .about-three__img-box { margin: 32px auto 0; }
    .about-three__img-box-img::before,
    .about-three__shape, .about-two__bg, .about-two__img-box__shape,
    .about-two__img-box-img2__shape, .footer-one__bg { display: none; }
    .about-two__content-box { margin-top: 32px; }
    .services-details > .container > .row > .col-xl-8,
    .news-details > .container > .row > .col-xl-8 { order: 0; }
    .services-details > .container > .row > .col-xl-4,
    .news-details > .container > .row > .col-xl-4 { order: 1; margin-top: 36px; }
    .services-details__content { margin-top: 0; }
    .team-details__content { margin-top: 26px; }
    .team-details > .container > .row + .row { margin-top: 48px; }
    .contact-page__left { max-width: none; margin-bottom: 30px; }
    .contact-page__left .sec-title { margin-bottom: 20px; }
    .sidebar__latest-posts-list-item { display: flex; gap: 16px; margin-bottom: 18px; }
    .sidebar__latest-posts-list-item .img-box { width: 60px; flex: 0 0 60px; margin-bottom: 0; }
    .sidebar__latest-posts-list-item .title { padding-left: 0; }
}

@media (max-width: 767px) {
    .main-header--one { padding: 8px 0; }
    .main-header--one__bottom .auto-container { padding: 0 16px; }
    .main-header--one__bottom-inner { min-height: 76px; gap: 6px; }
    .main-header--one__bottom-left { flex-basis: 145px; }
    .main-header--one__bottom-left .logo img { width: 135px; }
    .main-header--one__bottom .header-language-switcher { display: none; }
    .main-slider .container { padding-top: 70px; padding-bottom: 90px; }
    .main-slider__title { font-size: clamp(32px, 9vw, 50px); margin-top: 0; margin-bottom: 22px; }
    .main-slider__text { font-size: 17px; line-height: 1.7; }
    .main-slider__button-box { margin-top: 25px; }
    .main-slider__nav { width: auto; right: 15px; bottom: 15px; display: flex; gap: 10px; }
    .main-slider__nav :is(.swiper-button-next, .swiper-button-prev) { margin: 0; width: 44px; height: 44px; }
    .main-slider .swiper-pagination { width: auto; left: 16px; right: auto; bottom: 28px; }
    .page-header { padding: 45px 0; }
    .page-header__inner .thm-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; justify-content: center; font-size: 11px; line-height: 1.6; color: #fff; }
    .page-header__inner .thm-breadcrumb li { font-size: 11px; letter-spacing: .04em; line-height: 1.6; }
    .page-header__inner .thm-breadcrumb li + li { padding-left: 0; }
    .about-three, .about-two, .features-one, .services-one, .blog-one,
    .services-details, .team-details, .news-details, .contact-page,
    .projects-details, .projects-one { padding-top: 44px; padding-bottom: 44px; }
    .video-ter.projects-details { padding-top: 0; }
    .about-three__content-box-inner { text-align: left; }
    .about-three__products-list ul li { display: block; border: 0; }
    .about-three__products-list ul li .icon,
    .about-three__products-list ul li h3,
    .about-three__products-list ul li p { display: block; text-align: center; }
    .about-three__products-list { margin-top: 16px; }
    .services-details__sidebar { max-width: none; }
    .sidebar__latest-posts { padding: 28px 22px; }
    .services-details__sidebar-single-contact-box { padding: 28px 20px; }
    .services-details__sidebar-single-contact-box p { line-height: 1.75; margin-bottom: 14px; }
    .team-details__name { font-size: 30px; line-height: 1.25; }
    .team-details__text { margin-top: 16px; }
    .c-prodotti { flex-direction: column; }
    .c-prodotti > img { width: 130px; max-width: 60%; }
    .blog-one__single-content { padding-left: 22px; padding-right: 22px; }
    .blog-one__single-content h2 { font-size: 24px; line-height: 1.35; }
    .cta-one__wrapper { flex-direction: column; text-align: center; }
    .cta-one__left { flex-direction: column; }
    .cta-one__left-title h2 { font-size: 28px; }
    .cta-one__right { margin-top: 0; }
    .thm-btn { max-width: 100%; padding-left: 24px; padding-right: 24px; white-space: normal; }
    .comment-form__input-box :is(input, select, textarea) { font-size: 16px; padding-left: 18px; padding-right: 18px; }
    .comment-form__input-box :is(input, select) { height: 56px; }
    .comment-form__privacy label { font-size: 14px; }
    .contact-page__social-link ul { flex-wrap: wrap; }
    .footer-widget__links { text-align: right; }
    .footer-one__bottom-inner { row-gap: 20px; text-align: center; padding: 20px 0; }
    .footer-one__bottom-text p { line-height: 1.7; }
    .footer-one__bottom-social-links { margin: 0; }
    .scroll-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; line-height: 44px; }
}

@media (max-width: 359px) {
    .g-recaptcha { transform: scale(.85); transform-origin: left top; margin-bottom: -10px; }
}

/* Keep the slider crop when its content image is rendered as an accessible img. */
.main-slider img.image-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

@media (prefers-reduced-motion: reduce) {
    .wow { visibility: visible !important; animation: none !important; }
    .main-slider :is(.main-slider__title, .main-slider__text, .main-slider__button-box, .image-layer),
    .mobile-nav__wrapper { transition: none !important; }
    .video-one__right .border-animation { animation: none; }
}
