/* Modern and elegant styling for Humphree Italy */
:root {
    --primary-blue: #0892d0;
    --dark-bg: #141414;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --mid-gray: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--white);
    color: var(--dark-bg);
    line-height: 1.6;
}



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

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo sup {
    font-size: 0.8rem;
    vertical-align: super;
}

.logo span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 300;
    margin-top: -5px;
}

nav {
    display: flex;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover:after {
    width: 40%;
}

nav a:hover {
    color: var(--primary-blue);
}

.sea-energy-logo {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 1px;
    text-align: right;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--light-gray);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.7) 0%, rgba(8, 146, 208, 0.1) 100%);
  z-index: 1;
}

.boat-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 2;
    background-color: rgb(21 21 21 / 38%);
    padding: 3rem;
    border-radius: 0;
    max-width: 500px;
    margin-right: 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-blue);
}

.hero-text h2 {
    font-size: 16px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-text h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-blue);
}

.hero-text p {
    font-size: 13px;
    line-height: 1.8;
    color: #ffffff;
}
/* Feature Sections */
.feature-sections {
    display: flex;
    justify-content: space-around;
    padding: 5rem 2rem;
    background-color: var(--white);
}

.feature-section {
    text-align: center;
    cursor: pointer;
    padding: 2.5rem 1.5rem;
    border: none;
    border-radius: 0;
    transition: var(--transition);
    width: 28%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.feature-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.feature-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-section:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    transition: var(--transition);
}

.feature-section:hover h2 {
    color: var(--primary-blue);
}

.feature-section p {
    font-size: 0.95rem;
    color: #555;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border: none;
    width: 80%;
    max-width: 900px;
    border-radius: 0;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close {
    color: #888;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
}

.close:hover {
    color: var(--white);
    background-color: var(--primary-blue);
}

/* Sea Energy Info Section */
.sea-energy-info {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.sea-energy-info .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.company-image-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.sea-energy-info h2 {
  color: var(--primary-blue);
  font-weight: 600;
  letter-spacing: -1px;
}

.sea-energy-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
}

.info-boxes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 0;
    width: calc(33.333% - 4rem);
    min-width: 260px;
    box-sizing: border-box;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-weight: 500;
    letter-spacing: 1px;
}

.info-box img {
    width: 50px;
    height: 50px;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(118%) contrast(119%);
    margin-top: 1rem;
    transition: var(--transition);
}

.info-box:hover img {
    transform: scale(1.1);
}

/* Footer Styling */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 1.5rem 2rem;
}

.footer-section h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.8rem;
    color: #cbd2d5;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0.5rem 0;
    color: #aaa;
    transition: var(--transition);
}

.footer-section p:hover {
    color: var(--white);
}

.company-info {
    text-align: center;
    font-size: 0.8rem;
    padding: 1.5rem 0;
    background-color: #0a0a0a;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-text {
        max-width: 450px;
    }
    
    nav a {
        padding: 1.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container, .sea-energy-logo {
        margin-bottom: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        padding: 0.8rem;
    }
    
    .hero-section {
        height: auto;
        flex-direction: column;
        padding: 3rem 1rem;
    }
    
    .hero-text {
        margin: 2rem 0 0;
        max-width: 100%;
        padding: 2rem;
    }
    
    .boat-image {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    .feature-sections {
        flex-direction: column;
        padding: 3rem 1rem;
    }
    
    .feature-section {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .info-box {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        padding: 0 1rem 2rem;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feature-section, .info-box, .hero-text {
    animation: fadeIn 0.6s ease-out;
}




/* Modifica per la sezione sea-energy-info */
.sea-energy-info {
    background-image: url('../foto/sfondohome.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

/* Aggiunta di un overlay per migliorare la leggibilità del testo sopra l'immagine */
.sea-energy-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.7); /* Overlay scuro semi-trasparente */
    z-index: 1;
}

/* Assicuriamo che il contenuto sia sopra l'overlay */
.sea-energy-info .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}










/* News Section Styles */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.news-card {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 20px;
}

.news-label {
    font-size: 12px;
    font-weight: 600;
    color: #c1272d; /* Red color from the image */
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-container {
        justify-content: center;
    }
    
    .news-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .news-card {
        flex: 0 0 100%;
    }
}













/* Stili aggiuntivi per il menu UIkit header */

/* Personalizzazioni navbar */
.uk-navbar-container {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Personalizzazioni logo */
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0892d0;
}

.logo sup {
    font-size: 0.6rem;
    top: -0.8em;
}

.logo span {
    display: block;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Stile dei link nel menu */
.uk-navbar-nav > li > a {
    color: #333;
    font-weight: 500;
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li.uk-active > a {
    color: #0892d0;
}

/* Stile del logo Sea Energy */
.sea-energy-logo {
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Stile del logo nel menu offcanvas */
.sea-energy-logo-mobile {
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #fff;
}

/* Stili per il menu offcanvas */
.uk-offcanvas-bar {
    background-color: #0892d0;
}

.uk-nav-default > li > a {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 10px 0;
}

.uk-nav-default > li.uk-active > a,
.uk-nav-default > li > a:hover {
    color: #fff;
}

/* Regolazione spaziature */
.uk-navbar-left,
.uk-navbar-right {
    padding: 10px 20px;
}

/* Logo nel menu offcanvas */
.uk-offcanvas-bar .logo {
    color: #fff;
}

.uk-offcanvas-bar .logo span {
    color: rgba(255, 255, 255, 0.8);
}











/* Dark navbar style */
.dark-navbar {
    background-color: #141414 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.small-logo {
  max-width: 238px;
  height: auto;
}

/* White text for navbar links */
.dark-navbar .uk-navbar-nav > li > a {
    color: #ffffff;
    font-weight: 500;
    text-transform: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

/* Highlight active link */
.dark-navbar .uk-navbar-nav > li.uk-active > a {
    color: #0892d0; /* Highlight color for active page */
    font-weight: 600;
    position: relative;
}

/* Add underline to active link */
.dark-navbar .uk-navbar-nav > li.uk-active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: #0892d0;
}

/* Hover effect */
.dark-navbar .uk-navbar-nav > li:hover > a {
    color: #0892d0;
}

/* Make Sea Energy logo text white */
.dark-navbar .sea-energy-logo {
    color: #ffffff;
    text-align: right;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Mobile menu toggle button color */
.dark-navbar .uk-navbar-toggle {
    color: #ffffff;
}


















/* CSS per feature sections in stile simile alle immagini fornite */
.feature-background {
    background-image: url(foto/sea-background.jpg);
    background-size: cover;
    background-position: center;
    padding: 50px 0 30px;
    position: relative;
    height: 400px;
}
.feature-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.feature-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

/* Intestazioni delle feature */
.feature-headers {
    display: flex;
    justify-content: space-between;
}

.feature-header {
    width: 33%;
    text-align: center;
    color: #0892d0;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
}

/* Contenitori immagini */
.feature-items {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-item {
    width: 33%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Effetto hover */
.feature-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.hover-button {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover .hover-button {
    opacity: 1;
}

.hover-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e74c3c; /* Rosso come nelle immagini di riferimento */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Banner Sea Energy */
.sea-energy-banner {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.sea-energy-banner h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.energy-text {
    color: #0892d0; /* Azzurro per la parola ENERGY come nelle immagini */
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .feature-headers,
    .feature-items {
        flex-direction: column;
    }
    
    .feature-header,
    .feature-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .feature-header {
        border-bottom: none;
    }
    
    .sea-energy-banner {
        margin-top: 30px;
    }
}







.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;  
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0892d0;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: #0892d0;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon i {
    font-size: 16px;
}

/* Adattamento per mobile */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
}


.fixed-contact-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fixed-contact-button a {
    background-color: #0892d0;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(8, 146, 208, 0.3);
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixed-contact-button a:hover {
    background-color: #076a9e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(8, 146, 208, 0.4);
}

.fixed-contact-button i {
    font-size: 1.1rem;
}

/* Per schermi mobili */
@media (max-width: 768px) {
    .fixed-contact-button {
        bottom: 20px;
        right: 20px;
    }
    
    .fixed-contact-button a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}







