/*
Theme Name: TEA ABB Theme
Theme URI: https://www.nostudio.it/
Author: NoStudio
Author URI: https://www.nostudio.it/
Description: A custom WordPress theme for TEA ABB Flame Scanners
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tea-abb
*/

:root {
  --primary-color: #FF000F;
  --secondary-color: #2D373C;
  --text-color: #333333;
  --background-color: #FFFFFF;
}

@font-face {
    font-family: 'ABBvoice';
    src: url('fonts/ABBvoice_W_Rg.woff2') format('woff2'),
         url('fonts/ABBvoice_W_Rg.woff') format('woff'),
         url('fonts/ABBvoice_W_Rg.eot') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABBvoice';
    src: url('fonts/ABBvoice_W_Bd.woff2') format('woff2'),
         url('fonts/ABBvoice_W_Bd.woff') format('woff'),
         url('fonts/ABBvoice_W_Bd.eot') format('embedded-opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

h1 {
    font-family: 'ABBvoice', Arial, sans-serif;
    font-weight: bold;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'ABBvoice', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.main-navigation a {
    font-family: 'ABBvoice', Arial, sans-serif;
    font-size: 14px;
    color: var(--secondary-color);
    padding: 8px 0;
    font-weight: 400;
}

.site-header {
    background-color: var(--background-color);
    height: 70px;
    position: fixed;
    width: 100vw;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 #ebebeb;
}

.header-container {
    height: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
    transition: all 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 250px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
        background-color: #FFFFFF;
        width: 100vw; /* Assicura che copra tutta la larghezza */
        margin: 0; /* Rimuove eventuali margini */
        padding: 20px 0; /* Padding verticale ma non orizzontale */
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 10px 0;
    }
}

.logo-container > div {
  display: flex;
  align-items: center;
}

.logo-container > div:nth-child(1) {
  flex: 0 0 auto;
  padding-left: 40px;
}

.logo-container > div:nth-child(3) {
  flex: 0 0 auto;
  padding-right: 40px;
}

.logo-container > div:nth-child(2) {
  flex: 1;
  justify-content: center;
}

.logo-container > div:nth-child(3) {
  flex: 0 0 auto;
}

.main-navigation {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 768px) {
    .site-logo,
    .abb-logo-img {
        max-width: 88px;
        height: auto;
    }
}

.site-logo,
.abb-logo-img {
    height: 33px;
    width: auto;
}

.main-navigation {
  background-color: transparent;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  gap: 30px;
}

.main-navigation li {
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.main-navigation li:hover {
  border-bottom: none;
}

.main-navigation li:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.main-navigation a {
  font-size: 14px;
  color: var(--secondary-color);
  padding: 8px 0;
}

.site-logo {
  max-width: 200px;
  height: auto;
}

@media screen and (max-width: 768px) {
  .site-logo,
  .abb-logo-img {
      max-width: 88px;
      height: auto;
  }
  
  .logo-container {
      padding: 0 20px;
  }
}

@media screen and (min-width: 1024px) {
}

.main-navigation {
  background-color: transparent;
  height: 45px;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
}

.main-navigation li {
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 5px solid transparent;
  /*transition: border-color 0.3s ease;*/
}

.main-navigation li:hover {
  border-bottom: 2px solid var(--primary-color);
}

.main-navigation a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.hero-section {
  padding: 0 0 0px 0;
  color: var(--text-color);
}

.hero-image {
  margin: 40px 0;
  text-align: center;
}

.full-width-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-section .hero-title {
    font-size: 64px;
    line-height: 68px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.hero-section .hero-title:before {
    content: "\2014"; /* Em dash Unicode */
    font-size: inherit;
    color: var(--primary-color);
    display: block;
}

.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.download-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin-top: 15px;
}

.download-btn:hover {
    opacity: 0.9;
}

.site-footer {
  background-color: #696969;
  color: #ffffff;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
/* Flame Scanners Page Styles */
.product-overview {
  padding: 40px 0;
  text-align: center;
}

.product-features {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.feature-card li:before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.product-details {
  padding: 40px 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.specs-table th,
.specs-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.specs-table th {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

.contact-section {
  text-align: center;
  padding: 60px 0;
  background-color: #f5f5f5;
  margin: 40px 0;
}

/* Product Section Styles */
.product-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: left;
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--secondary-color);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Miglioramenti per le Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-image {
    height: 150px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card .product-image img {
    object-fit: contain;
    max-height: 200px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.product-content {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

/* Rimuoviamo la definizione duplicata di product-grid e manteniamo solo quella corretta */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-card .product-image {
        height: 200px;
    }
    
    .product-card h2 {
        font-size: 1.3em;
        margin: 15px;
    }
    
    .product-content {
        padding: 0 15px 15px;
    }
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin: 0 0 10px;
  color: var(--secondary-color);
  font-size: 24px;
}

.product-info p {
  margin: 0 0 20px;
  color: var(--text-color);
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6000d;
}

/* Stili per la sezione Soluzioni Prodotti Flame Scanners */
.product-solutions-section {
    padding: 0 0 60px 0;
    background-color: #f8f9fa;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stili per la sezione Soluzioni Prodotti Flame Scanners */
.product-solutions-section .section-title {
    text-align: left;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-size: 2.5em;
    position: relative;
}

.product-solutions-section .section-title:before {
    content: "\2014"; /* Em dash Unicode */
    font-size: inherit;
    color: var(--primary-color);
    display: block;
    font-weight: bold;
}

/* Stili per la sezione Download */
.download-section {
    padding: 0 0 60px 0;
    background-color: #f8f9fa;
}

.download-section .section-title {
    text-align: left;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-size: 2.5em;
    position: relative;
}

.download-section .section-title:before {
    content: "—";
    font-size: inherit;
    color: var(--primary-color);
    display: block;
}

.download-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon img {
    width: 60px;
    height: auto;
}

.file-details h2 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.file-info {
    font-size: 1.1em;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.file-meta {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 20px 0;
}

.download-content {
    margin-top: 20px;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: var(--secondary-color);
}

.download-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-icon {
        margin-bottom: 20px;
    }
}

.video-section {
    padding: 0 0 60px 0;
    background-color: var(--background-color);
}

.video-promo-section {
    padding: 60px 0;
    background-color: var(--background-color);
    text-align: center;
}

.video-promo-content {
    max-width: 800px;
    margin: 0 auto;
}

.video-promo-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .video-container iframe {
        height: 300px;
    }
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.benefits-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.benefit-card h3 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.benefit-card p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.4;
    font-size: 0.9em;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-section {
    padding: 60px 0;
    background-image: url('img/desktop-contact-us-widget-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-form-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.contact-form-section .section-container {
    position: relative;
    z-index: 1;
}

.contact-form-section .section-title h2 {
    color: white;
}

.contact-form-section .section-title:before {
    color: var(--primary-color);
}

/* Stili per il form di Contact Form 7 */
.contact-form-section .wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-section .wpcf7-form input[type="text"],
.contact-form-section .wpcf7-form input[type="email"],
.contact-form-section .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.contact-form-section .wpcf7-form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-section .wpcf7-form input[type="submit"]:hover {
    background-color: #e6000d;
}

.image-text-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.image-text-section .flex-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.image-text-section.reverse .flex-container {
    flex-direction: row-reverse;
}

.image-text-section .image-side {
    flex: 1;
}

.image-text-section .image-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.image-text-section .text-side {
    flex: 1;
}

.image-text-section .text-side h2 {
    color: var(--secondary-color);
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
}

.image-text-section .text-side h2:before {
    content: "\2014";
    font-size: inherit;
    color: var(--primary-color);
    display: block;
}

.image-text-section .text-side p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .image-text-section .flex-container {
        flex-direction: column;
    }

    .image-text-section.reverse .flex-container {
        flex-direction: column;
    }

    .image-text-section .image-side,
    .image-text-section .text-side {
        width: 100%;
    }
}
h2 {
    font-family: 'ABBvoice', Arial, sans-serif;
    font-size: 48px;
    line-height: 52px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: transform 0.3s;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    bottom: -6px;
}

.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media screen and (max-width: 768px) {
    .logo-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
        align-items: center;
    }

    .logo-container > div {
        width: auto;
        margin: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 250px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
        background-color: #FFFFFF;
        width: 100vw; /* Assicura che copra tutta la larghezza */
        margin: 0; /* Rimuove eventuali margini */
        padding: 20px 0; /* Padding verticale ma non orizzontale */
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}