/**
Theme Name: AMMotori
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ammotori
Template: astra
*/
/*FORM DI CONTATTO

.cf7-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.cf7-col{ width:calc(50% - 8px); }
.cf7-col-full{ width:100%; }

@media (max-width:768px){
  .cf7-col{ width:100%; }
}

/* Box auto */
.auto-info{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:12px;
}
.auto-info__label{
  font-size:14px;
  color:rgba(255,255,255,0.75);
}
.auto-info__value{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(52,181,64,0.45);
  background:rgba(52,181,64,0.12);
}

/* Spazio tra box auto e primo campo */
.auto-info{
  margin-bottom:20px;
}

/* Spazio uniforme tra righe */
.cf7-col{
  margin-bottom:4px;
}

/* Input / textarea (FORZATI dark) */
.wpcf7 form .field-input{
  width:100% !important;
  padding:12px 14px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,0.12) !important;
  background:rgba(255,255,255,0.06) !important;
  color:#fff !important;
  font-size:15px !important;
  box-sizing:border-box !important;
  transition:all .2s ease;
  outline:none !important;
  box-shadow:none !important;
}

/* Placeholder */
.wpcf7 form .field-input::placeholder{
  color:rgba(255,255,255,0.45) !important;
}

/* Textarea compatta */
.wpcf7 form textarea.field-input{
  min-height:110px !important;
  resize:vertical;
}

/* Focus */
.wpcf7 form .field-input:focus{
  border-color:rgba(52,181,64,0.65) !important;
  box-shadow:0 0 0 2px rgba(52,181,64,0.18) !important;
}

/* Privacy */
.cf7-grid .wpcf7-acceptance{
  font-size:13px;
  color:rgba(255,255,255,0.70);
}

/* Bottone */
.wpcf7 form input[type="submit"]{
  width:100%;
  background:#34B540 !important;
  color:#fff !important;
  border:none !important;
  padding:14px 16px !important;
  font-size:16px !important;
  font-weight:700 !important;
  border-radius:12px !important;
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease;
}
.wpcf7 form input[type="submit"]:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}


/* =========================
   AMMOTORI CARD PREMIUM
   ========================= */

/* DESKTOP */
@media (min-width: 1025px) {

    /* card generale */
    .card-auto-hover {
        position: relative;
        transition: transform 0.35s ease;
    }

    /* bordo premium */
    .card-auto-hover::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 1px solid rgba(46, 204, 64, 0);
        box-shadow: 0 0 0 rgba(46, 204, 64, 0);
        transition: all 0.35s ease;
        z-index: 8;
        pointer-events: none;
    }

    .card-auto-hover:hover::before {
        border-color: rgba(46, 204, 64, 0.65);
        box-shadow: 0 0 18px rgba(46, 204, 64, 0.08);
    }

    /* immagine */
    .card-auto-image {
        overflow: hidden;
    }

    .card-auto-image,
    .card-auto-image img {
        transition: transform 0.45s ease, filter 0.45s ease;
        transform-origin: center center;
    }

    .card-auto-hover:hover .card-auto-image,
    .card-auto-hover:hover .card-auto-image img {
        transform: scale(1.03);
        filter: brightness(1.1) contrast(1.05) saturate(1.05);
    }

    /* blocco sotto immagine */
    .card-auto-hover .card-auto-bottom {
        position: relative;
        overflow: hidden;
        min-height: 140px;
        padding: 14px 14px 12px;
        transition: all 0.35s ease;
    }

    /* overlay nero premium */
    .card-auto-hover .card-auto-bottom::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.94) 50%,
            rgba(0, 0, 0, 0.86) 100%
        );
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 1;
        pointer-events: none;
    }

    /* linea verde premium */
    .card-auto-hover .card-auto-bottom::after {
        content: "";
        position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 1px;
        background: linear-gradient(
            to right,
            rgba(46, 204, 64, 0),
            rgba(46, 204, 64, 0.7),
            rgba(46, 204, 64, 0)
        );
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 2;
        pointer-events: none;
    }

    .card-auto-hover .card-auto-bottom > * {
        position: relative;
        z-index: 3;
    }

    /* titolo */
    .card-auto-hover .elementor-heading-title,
    .card-auto-hover .elementor-widget-theme-post-title a {
        transition:
            color 0.35s ease,
            transform 0.35s ease,
            opacity 0.35s ease;
    }

    /* info auto */
    .card-auto-hover .elementor-widget-icon-list,
    .card-auto-hover .elementor-widget-post-info,
    .card-auto-hover .info-auto-hover {
        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    /* bottone dettagli */
    .card-auto-hover .btn-dettagli-hover {
        position: absolute;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%) translateY(18px);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.35s ease,
            visibility 0.35s ease,
            transform 0.35s ease;
        z-index: 4;
        margin: 0 !important;
        width: auto;
    }

    .card-auto-hover .btn-dettagli-hover .elementor-widget-container,
    .card-auto-hover .btn-dettagli-hover .elementor-button-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* bottone premium */
    .card-auto-hover .btn-dettagli-hover .elementor-button {
        min-width: 180px;
        justify-content: center;
        border-radius: 999px;
        padding: 14px 30px;
        border-width: 2px;
        letter-spacing: 1px;
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            background-color 0.3s ease,
            color 0.3s ease,
            border-color 0.3s ease;
    }

    .card-auto-hover .btn-dettagli-hover .elementor-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 16px rgba(46, 204, 64, 0.18);
    }

    /* hover effetti */
    .card-auto-hover:hover .card-auto-bottom::before,
    .card-auto-hover:hover .card-auto-bottom::after {
        opacity: 1;
        visibility: visible;
    }

    .card-auto-hover:hover .btn-dettagli-hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .card-auto-hover:hover .elementor-heading-title,
    .card-auto-hover:hover .elementor-widget-theme-post-title a {
        color: #ffffff !important;
        transform: translateY(-2px);
    }

    .card-auto-hover:hover .elementor-widget-icon-list,
    .card-auto-hover:hover .elementor-widget-post-info,
    .card-auto-hover:hover .info-auto-hover {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }
}

/* TABLET E MOBILE */
@media (max-width: 1024px) {

    .card-auto-hover::before {
        display: none !important;
    }

    .card-auto-hover .card-auto-bottom {
        min-height: auto;
        padding: 20px 0 0 0;
    }

    .card-auto-hover .btn-dettagli-hover {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 18px;
    }

    .card-auto-hover .card-auto-bottom::before,
    .card-auto-hover .card-auto-bottom::after {
        display: none !important;
    }

    .card-auto-image,
    .card-auto-image img {
        transform: none !important;
        filter: none !important;
    }
}


/* ==================================================
   MENU ASTRA - VOCI SPECIALI
   Auto d'Epoca + Officina AM Service
================================================== */

/* Transizione generale */
.main-header-menu .menu-item > a.menu-link,
.ast-sticky-active .main-header-menu .menu-item > a.menu-link,
.ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link,
.ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link {
  transition: color 0.25s ease;
}

/* ==================================================
   AUTO D'EPOCA
   Link esterno: https://www.am-classic.it/
================================================== */

/* Default bianco - desktop, sticky e mobile */
.main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"],
.ast-sticky-active .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"],
.ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"],
.ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"] {
  color: #ffffff !important;
}

/* Hover rosso - desktop, sticky e mobile */
.main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"]:hover,
.ast-sticky-active .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"]:hover,
.ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"]:hover,
.ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"]:hover {
  color: #ff2a1f !important;
}

/* Active rosso - se WordPress/Astra assegna stato corrente */
.main-header-menu .current-menu-item > a.menu-link[href="https://www.am-classic.it/"],
.main-header-menu .current_page_item > a.menu-link[href="https://www.am-classic.it/"],
.main-header-menu .current-menu-ancestor > a.menu-link[href="https://www.am-classic.it/"],
.ast-sticky-active .main-header-menu .current-menu-item > a.menu-link[href="https://www.am-classic.it/"],
.ast-mobile-popup-content .main-header-menu .current-menu-item > a.menu-link[href="https://www.am-classic.it/"] {
  color: #ff2a1f !important;
}


/* ==================================================
   OFFICINA AM SERVICE
   Link interno: /servizi/
================================================== */

/* Default bianco - desktop, sticky e mobile */
.main-header-menu .menu-item > a.menu-link[href*="/servizi/"],
.ast-sticky-active .main-header-menu .menu-item > a.menu-link[href*="/servizi/"],
.ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href*="/servizi/"],
.ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href*="/servizi/"] {
  color: #ffffff !important;
}

/* Hover verde/acqua - desktop, sticky e mobile */
.main-header-menu .menu-item > a.menu-link[href*="/servizi/"]:hover,
.ast-sticky-active .main-header-menu .menu-item > a.menu-link[href*="/servizi/"]:hover,
.ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href*="/servizi/"]:hover,
.ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href*="/servizi/"]:hover {
  color: #65d6c8 !important;
}

/* Active verde/acqua */
.main-header-menu .current-menu-item > a.menu-link[href*="/servizi/"],
.main-header-menu .current_page_item > a.menu-link[href*="/servizi/"],
.main-header-menu .current-menu-ancestor > a.menu-link[href*="/servizi/"],
.ast-sticky-active .main-header-menu .current-menu-item > a.menu-link[href*="/servizi/"],
.ast-mobile-popup-content .main-header-menu .current-menu-item > a.menu-link[href*="/servizi/"],
.ast-mobile-popup-content .main-header-menu .current_page_item > a.menu-link[href*="/servizi/"],
.ast-mobile-popup-content .main-header-menu .current-menu-ancestor > a.menu-link[href*="/servizi/"] {
  color: #65d6c8 !important;
}

/* ==================================================
   MOBILE ASTRA - VOCI SPECIALI SEMPRE COLORATE
================================================== */

@media screen and (max-width: 921px) {

  /* AUTO D'EPOCA - sempre rosso da mobile */
  .ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"],
  .ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href="https://www.am-classic.it/"],
  .ast-builder-menu-mobile .main-navigation .menu-item > a[href="https://www.am-classic.it/"] {
    color: #ff2a1f !important;
  }

  /* OFFICINA AM SERVICE - sempre verde/acqua da mobile */
  .ast-mobile-popup-content .main-header-menu .menu-item > a.menu-link[href*="/servizi/"],
  .ast-mobile-header-wrap .main-header-menu .menu-item > a.menu-link[href*="/servizi/"],
  .ast-builder-menu-mobile .main-navigation .menu-item > a[href*="/servizi/"] {
    color: #65d6c8 !important;
  }

}