/*
Theme Name: Americana Dev
Author: Luca Grilli
Description: A custom WordPress theme.
Version: 1.0
*/

body {
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 3rem !important;
}

h2 {
    font-size: 2rem !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

hr {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    border: none !important;
    height: 1px !important;
    background-color: #e6007e !important;
}

.fucsia {
    color: #e6007e;
}
code {
    color: #e6007e;
    background: #dadada;
    padding: 10px;
}

pre {
    color: #e6007e;
    background: #dadada;
    padding: 10px;
}

@media screen and (min-width: 768px){
    .dropdown:hover .dropdown-menu, .btn-group:hover .dropdown-menu{
          display: block;
      }
      .dropdown-menu{
          margin-top: 0;
      }
      .dropdown-toggle{
          margin-bottom: 2px;
      }
      .navbar .dropdown-toggle, .nav-tabs .dropdown-toggle{
          margin-bottom: 0;
      }
  }


@media all and (min-width: 992px) {
	.navbar{ padding-top: 0; padding-bottom: 0; }
	.navbar .has-megamenu{position:static!important;}
	.navbar .megamenu{left:0; right:0; width:100%; padding:20px;  }
	.navbar .nav-link{ padding-top:1rem; padding-bottom:1rem;  }
}
.navbar {
 /* background-image: linear-gradient(to right, #2a3f6b, #17223a); */
  padding: 0;
}
.navbar-light .navbar-nav .nav-link {
    color: black;
  font-family: 'Poppins', sans-serif;
  margin-right: 20px;

}

.logo {
    margin-top: 10px;
    margin-left: 10px;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: #6BAD4D;
  font-family: 'Poppins', sans-serif;

}

#nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.titolomegamenu {
    color: #838383;
    font-size: 0.9rem;
    margin-bottom: -10px;
}

#mega-menu a {
    text-decoration: none;
    color: black;
}

.menu-app {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tit1 {
    color: black;
    font-size: 0.9rem;
}

.tit2 {
    color: #838383;
    font-size: 0.7rem;
}

/*------ banner section -----------*/

#banner1

{
    background-image: linear-gradient(to right, #49b749, #296b28);
  color: white;
  padding: 50px;
  padding-top: 100px;
}

#banner

{
    background-image: linear-gradient(to right, #2a3f6b, #17223a);
  color: white;
  padding: 50px;
  padding-top: 100px;
}

.promo-title
{
  font-size: 40px;
  font-weight: 600;

}

.play-btn {
  width: 45px;
  margin: 20px;
}

#banner a {
  color: white;
  text-decoration: none;
}

.bottom-img {
  width: 100%;
}

#banner .btn-primary {
    box-shadow: none !important;
    padding: 8px 25px !important;
    border: none !important;
    border-radius: 20px !important;
    background-image: linear-gradient(to right, #A3C264, #788f49);
  }

.pbanner {
    font-size: 1.5rem;
}


  #bianco {
      padding: 50px;
  }

  #grigio {
      background: #f2f6f5;
    padding: 50px;
}

#biancomain {
    padding: 50px;
}

#blu {
    background-image: linear-gradient(to right, #2a3f6b, #17223a);
  padding: 50px;
  color: white;
}

#biancofaq {
    padding: 50px;
}

#biancofaq .btn-link{
    color: white;
}

.acco {
    background-image: linear-gradient(to right, #49b749, #296b28);
}
#footer1 {
    background: #1D1D1D;
    padding-top: 30px;
    padding-bottom: 20px;
}

.titolofooter1 {
    color: #6BAD4D;
    font-size: 1rem;
}

.testofooter1 {
    color: white;
    font-size: 0.8rem;
}

.testofooter1 a {
    color: white;
    text-decoration: none;
}

#footer2 {
    background: black;
    padding-top: 30px;
    padding-bottom: 20px;
}


.testofooter2 {
    color: white;
    font-size: 0.8rem;
}

.testofooter2 a {
    color: white;
    text-decoration: none;
}

.immagine {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.pulsanteverde {
    background-color: #6BAD4D !important;
    text-transform: uppercase;
    color: white;
}

.pulsanteverde:hover {
    border: 1px solid #6BAD4D;
    border-radius: 5px;
    background-color: white !important;
    text-transform: uppercase;
    color: #6BAD4D;
}


@media only screen and (max-width: 600px) {
    .logo {
        width: 200px;
    }
    .hiddenmobile {
        display: none;
    }

    #contcards .card {
        margin-top:10px !important;
    }
  }

  @media only screen and (min-width: 601px) {

    .hiddendesktop {
        display: none;
    }
  }
  .oververde {
    box-shadow: 0 0 2px  #6BAD4D;
  }
  .oververde:hover {
    box-shadow: 0 0 8px 2px #6BAD4D;
  }


  .greyimg {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */    
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray; /* IE 6-9 */
  }

  .greyimg:hover {
    -webkit-filter: none;
    -moz-filter: none;
    -ms-filter: none;
    filter: none;
  }

  #verde {
    background-image: linear-gradient(to right, #49b749, #296b28);
  padding: 50px;
  color: white;
}

.pulsantebianco {
    background-color: white !important;
    text-transform: uppercase;
    color: #6BAD4D;
}

.pulsantebianco:hover {
    border: 1px solid white;
    border-radius: 5px;
    background-color: #002768 !important;
    text-transform: uppercase;
    color: white;
}


.page-banner {
    background-image: linear-gradient(to right, #002768, #be0b31);
    color: white;
    padding: 50px;
    padding-top: 100px;
    text-align: center;
}
.page-banner .container {
    max-width: 800px;
    margin: 0 auto;
}
.page-banner h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.page-banner .subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
}
.page-banner .btn-primary {
    padding: 10px 20px;
    background-color: white;
    color: #002768;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.page-banner .btn-primary:hover {
    background-color: #f1f1f1;
}

.page-content {
    padding-right: 100px;
    padding-left: 100px;
}


/* Blog Posts Grid Styles */
.blog-posts.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-posts .post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-posts .post:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-thumbnail .featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .featured-image {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h2 {
    margin: 0 0 1rem !important;
    font-size: 1.5rem !important;
}

.post-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    color: #e6007e;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #444;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e6007e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #c4006b;
    color: white;
    text-decoration: none;
}

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

/* WordPress Menu Styles */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .main-menu {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.main-menu > li {
    position: relative;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 320px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 1000;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}

.main-menu > li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu li {
    display: block;
    width: 100%;
}

.main-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.875rem;
}

.main-menu .sub-menu a:hover {
    background-color: #f3f4f6;
}

/* Single Post Styles */
.featured-image-container {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    width: 100vw;
    max-height: 70vh;
    overflow: hidden;
}

.featured-image-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 70vh;
}

.featured-image-caption {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.post-content.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

.post-content.prose img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content.prose p {
    margin-bottom: 1.5rem;
}

/* Comments Section Styles */
.comments-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 4rem;
}

.comments-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

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

.comment {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment .comment {
    margin-left: 2rem;
    margin-top: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-right: 1rem;
}

.comment-author .fn {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.reply a:hover {
    background: #dee2e6;
}

/* Comment Form Styles */
.comment-respond {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #e6007e;
    box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.1);
}

.comment-form input[type="submit"] {
    background-color: #e6007e;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #cc006f;
}

/* Post Meta Styles */
.post-meta {
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
    margin-top: 3rem;
}

.cat-links,
.tags-links {
    margin-bottom: 1rem;
    color: #495057;
}

.cat-links span,
.tags-links span {
    font-weight: 600;
    margin-right: 0.5rem;
}

.cat-links a,
.tags-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-links a:hover,
.tags-links a:hover {
    color: #0056b3;
}

/* Featured Image Banner */
.featured-image-banner {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.featured-image-banner .featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.featured-image-banner .featured-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #e6007e;
    box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-submit {
    background-color: #e6007e;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: #cc006f;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Contacts Page Specific Styles */
.contacts-text-column {
    position: relative;
}

.contacts-form-column {
    position: relative;
}

.contacts-text-column figure.wp-block-image {
    margin: 1rem 0 !important;
    height: auto !important;
}

.contacts-text-column figure.wp-block-image img {
    height: auto !important;
    display: block;
}

@media (min-width: 768px) {
    .contacts-text-column {
        padding-right: 2rem;
    }
    
    .contacts-form-column {
        padding-left: 2rem;
        border-left: 1px solid #eee;
    }
}

@media (max-width: 767px) {
    .contacts-text-column {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #eee;
    }
}

/* Dropdown menu styles */
.dropdown-menu {
    min-width: 300px !important;
    width: auto !important;
    white-space: normal !important;
}

.dropdown-item {
    white-space: normal !important;
    padding: 0.5rem 1rem !important;
    line-height: 1.4 !important;
}

/* Ensure submenus don't wrap text unnecessarily */
.navbar .nav-item .dropdown-menu {
    min-width: 300px !important;
    width: auto !important;
}

.navbar .dropdown-menu .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Mobile Menu Styles */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.mobile-menu li {
    display: block;
    width: 100%;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}

.mobile-menu .sub-menu {
    display: block;
    position: static;
    width: 100%;
    box-shadow: none;
    background: #f3f4f6;
    padding-left: 1rem;
}

.mobile-menu .sub-menu a {
    padding-left: 2rem;
}

#mobile-nav {
    z-index: 50;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

@media (max-width: 767px) {
    .main-menu .sub-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        min-width: 100%;
        padding-left: 1.5rem;
    }
}
