@import url('https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&family=Poppins:wght@300;400;600;700&family=Roboto:wght@400;600;700&display=swap');

/* AREA9 — GeneratePress / Gutenberg. CSS consolidato e aggiornato. */
:root { --area9-ink:#273744; --area9-blue:#93acbd; }
body.home .site-content,body.home .inside-article { padding:0; }
body.home .entry-header { display:none; }
body:has(.area9-hero),body:has(.area9-hero) :is(.site,.site-content,.content-area,.site-main,.inside-article,.entry-content) { background-color:#fff!important; }
body:has(.area9-hero) :is(.site-content,.content-area,.site-main,.inside-article,.entry-content) { margin-top:0!important;padding-top:0!important; }
body:has(.area9-hero) .site-main { margin-bottom:0!important; }
body:has(.area9-hero) .entry-header { display:none; }
body:has(.area9-hero) .entry-content>.wp-block-group:first-child { margin-top:0!important; }
.separate-containers :is(.comments-area,.inside-article,.page-header,.paging-navigation) { padding:0; }

/* Sezioni */
:is(.area9-hero,.area9-about,.area9-story,.area9-shops,.area9-trends,.area9-contacts,.area9-message,.area9-whatsapp,.area9-bottom) { box-sizing:border-box;width:100%;padding:65px max(24px,calc((100% - 1120px)/2)); }
.area9-hero { min-height:470px;display:flex;align-items:center;justify-content:center;background:#708596 url('/wp-content/uploads/2019/05/AREA9HP-4.webp') center/cover no-repeat!important; }
.area9-hero-logo { display:none!important; }
.area9-about { background:#25394b;color:#fff;text-align:center;padding-bottom:100px; }
.area9-about h2,.area9-about h3 { color:#fff; }
.area9-about h3 { font-size:19px;font-weight:400; }
.area9-about-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;max-width:1160px;margin:0 auto;text-align:left;align-items:start;font-family:Poppins,Arial,sans-serif; }
.area9-about-col { color:#fff;font-size:15px;line-height:1.8;font-weight:300; }
.area9-about-lead { font:700 40px/1.5 'Pathway Gothic One',Arial,sans-serif; }

/* Titoli principali — COMMUNITY inclusa su desktop e smartphone */
body:has(.area9-hero) .entry-content :is(.area9-about,.area9-shops,.area9-trends,.area9-contacts,.area9-message) h2.wp-block-heading,
body:has(.area9-hero) .entry-content .area9-community h2 { font-family:'Pathway Gothic One',sans-serif!important;font-size:48px!important;font-weight:400!important;font-style:normal!important;letter-spacing:12px!important;line-height:1.2!important;text-transform:uppercase!important;text-align:center!important;margin:0 0 35px;color:var(--area9-ink)!important; }
body:has(.area9-hero) .entry-content .area9-about h2.wp-block-heading { color:#fff!important; }

/* Fashion Story */
.area9-story { position:relative;padding-top:0;padding-bottom:40px; }
.area9-story-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start;margin-bottom:-100px; }
.area9-story-grid img { display:block;width:100%;height:auto; }
.area9-story-grid img:first-child { position:relative;transform:translateY(-148px); }
.area9-story-grid img:last-child { margin-top:12px; }

/* Negozi */
.area9-shops,.area9-contacts,.area9-message { text-align:center;background:#fff; }
.area9-shop-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:45px 40px;max-width:1120px;margin:auto; }
.area9-shop { min-width:0; }
.area9-shop h3 { font-size:18px;letter-spacing:.12em;margin:12px 0 3px; }
.area9-shop p { font-size:12px;letter-spacing:.06em; }
.area9-shop-photo { position:relative;overflow:hidden;background:#263847; }
.area9-shop-photo>img { display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .4s ease,filter .35s ease; }
.area9-shop-overlay { position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:22px;background:rgba(14,25,35,.68);color:#fff;opacity:0;transition:opacity .3s ease; }
.area9-shop-photo:is(:hover,:focus-within) .area9-shop-overlay { opacity:1; }
.area9-shop-photo:hover>img { transform:scale(1.035); }
.area9-shop-overlay h3 { color:#fff;font-family:'Pathway Gothic One',Arial,sans-serif;font-size:clamp(18px,1.9vw,27px);line-height:1.25;font-weight:400;letter-spacing:.1em;text-transform:uppercase;margin:0 0 10px; }
.area9-shop-overlay p { color:#fff;font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;font-size:14px;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;margin:0; }

/* Fashion Trends e social */
.area9-trends { position:relative;isolation:isolate;text-align:center;padding-top:15px!important;padding-bottom:105px!important; }
.area9-trends>p { font-size:12px;letter-spacing:.2em; }
body:has(.area9-hero) .area9-trends p { font-family:'Pathway Gothic One',sans-serif!important;color:var(--area9-ink)!important;letter-spacing:2px!important; }
.area9-trends::before { content:'';position:absolute;z-index:-1;inset:auto 0 0;height:400px;background:var(--area9-blue); }
.area9-trends .wp-block-gallery { position:relative;z-index:1;background:transparent!important; }
.area9-trends .area9-social-links { position:absolute;z-index:5;left:50%;bottom:0;transform:translateX(-50%);display:flex!important;align-items:center!important;justify-content:center!important;gap:42px!important;width:max-content;min-height:0;margin:0!important;padding:0 0 60px!important;background:transparent!important; }
.area9-trends .area9-social-links a { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#263b4d!important;background:transparent!important;text-decoration:none!important;transition:transform .2s ease,color .2s ease; }
.area9-trends .area9-social-links a:hover { color:#fff!important;transform:scale(1.1); }
.area9-trends .area9-social-links svg { width:56px;height:56px; }
.area9-trends .area9-social-links img { display:block;width:50px!important;height:50px!important;object-fit:contain;max-width:none; }

/* Contatti: 4 elementi nella prima riga, 3 centrati nella seconda */
.area9-contact-grid { display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:35px 22px;font-family:Poppins,Arial,sans-serif; }
.area9-contact-grid>.area9-contact { grid-column:span 3; }
.area9-contact-grid>.area9-contact:nth-child(5) { grid-column:3/span 3; }
.area9-contact h3 { font-family:'Pathway Gothic One',Arial,sans-serif;font-size:16px;font-weight:400;letter-spacing:.18em;margin-bottom:10px; }
.area9-contact :is(p,a) { font-size:13px;color:#333;line-height:1.6; }

/* Inviaci un messaggio */
.area9-message { max-width:none; }
.area9-message :is(.wp-block-shortcode,.gpsk-contact) { width:min(100%,640px);margin-left:auto!important;margin-right:auto!important;text-align:left; }
.area9-message .gpsk-contact form { width:100%; }
.area9-message .gpsk-contact :is(input:not([type='checkbox']):not([type='hidden']),textarea) { max-width:100%;box-sizing:border-box; }
body:has(.area9-hero) .area9-message h2.wp-block-heading { max-width:650px;margin:0 auto 30px!important;line-height:1.25!important;text-align:center!important; }
body:has(.area9-hero) .area9-message p.wp-block-paragraph,body:has(.area9-hero) .area9-message>p { font-family:'Pathway Gothic One',sans-serif!important;font-size:24px!important;font-weight:500!important;letter-spacing:2px!important;color:var(--area9-ink)!important;text-align:center!important;margin-bottom:35px!important; }
body:has(.area9-hero) .area9-message>.wp-block-group p { font-family:'Pathway Gothic One',sans-serif!important;font-size:24px!important;font-weight:500!important;letter-spacing:2px!important;color:var(--area9-ink)!important;text-align:center!important;margin-bottom:35px!important; }
body:has(.area9-hero) .area9-message .area9-message-email { font-family:'Pathway Gothic One',sans-serif!important;font-size:24px!important;font-weight:500!important;letter-spacing:2px!important;color:var(--area9-ink)!important;text-align:center!important;margin-bottom:35px!important; }
body:has(.area9-hero) .area9-message .gpsk-contact :is(button[type='submit'],input[type='submit']) { display:block;width:100%!important;max-width:100%!important;box-sizing:border-box;padding:15px 20px!important;text-align:center; }


/* WhatsApp e fondo pagina */
.area9-whatsapp {
    text-align: center;
    background: #fff !important;
    padding-top: 40px;
    padding-bottom: 60px;
}

.area9-whatsapp-bottom {
    background: #fff !important;
}

/* COMMUNITY — Font uniforme ad AREA9 */
.area9-community {
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
}

.area9-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.area9-community-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 20px;
    text-align: center;
    transition: transform .2s ease-in-out;
}

.area9-community-card:hover {
    transform: translateY(-5px);
}

.area9-community-city {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.area9-community-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: #25d366;
}

.area9-community-cta {
    background: #e8f5e9;
    border: 2px dashed #25d366;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.area9-community-cta p {
    margin: 10px 0 20px;
    color: #2c3e50;
}

.area9-community-btn {
    display: inline-block;
    background: #25d366;
    color: #fff !important;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
}

.area9-community-btn:hover {
    background: #1ebd5a;
    color: #fff;
}

/* Fondo pagina */
.area9-bottom {
    text-align: center;
}

.area9-footer-logo {
    width: 240px;
    max-width: 75%;
    height: auto;
}

.area9-bottom p {
    font-size: 12px;
    margin-top: 15px;
}


/* Footer personalizzato */
.site-footer { display:none; }
.area9-custom-footer { background:#f5f5f5;color:#333;font-family:Arial,sans-serif; }
.area9-custom-footer-main { max-width:1160px;margin:auto;padding:65px 25px;display:grid;grid-template-columns:1.7fr 1fr;gap:55px;align-items:center; }
.area9-custom-footer-logo { width:min(100%,420px);height:auto;display:block; }
.area9-custom-footer-address { font-size:15px;line-height:1.8; }
.area9-custom-footer-address strong { display:block;font-size:18px;font-weight:500; }
.area9-custom-footer-bottom { border-top:1px solid rgba(0,0,0,.1);padding:22px 24px 35px;text-align:center;font-size:12px;line-height:1.75; }
.area9-custom-footer-bottom p { max-width:1080px;margin:14px auto 0; }
.area9-custom-footer-bottom a { color:var(--area9-ink); }
.area9-custom-footer-privacy { font-size:16px;font-weight:700;text-decoration:none; }

/* Header e navigazione */
body:has(.area9-hero) .site-header { position:sticky;top:0;z-index:999;background:#d3dfe7;box-shadow:none; }
body.admin-bar:has(.area9-hero) .site-header { top:32px; }
body:has(.area9-hero) .site-header .inside-header { display:flex;justify-content:space-between;align-items:center;gap:25px;min-height:0;padding:10px 25px;max-width:1200px; }
body:has(.area9-hero) .site-header .site-logo img { width:auto;height:auto;max-height:150px;max-width:min(260px,38vw);object-fit:contain; }
body:has(.area9-hero) :is(.main-navigation,.main-navigation .inside-navigation) { background:transparent; }
body:has(.area9-hero) .main-navigation .main-nav ul li a { font-family:Poppins,Arial,sans-serif;font-size:15px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#253746;background:transparent; }
body:has(.area9-hero) .main-navigation .main-nav ul li:is(:hover,:focus-within)>a,
body:has(.area9-hero) .main-navigation .main-nav ul li[class*='current-menu-']>a,
body:has(.area9-hero) .main-navigation .main-nav ul li.current_page_item>a { color:#fff;background:transparent; }

/* Raccolta cellulare */
.area9-cellulare { width:100%;max-width:480px;margin:30px auto;padding:0 20px;box-sizing:border-box;font-family:Poppins,Arial,sans-serif;text-align:center; }
.area9-cellulare form { display:flex;flex-direction:column;align-items:center;gap:15px;width:100%; }
.area9-cellulare label { display:block;width:100%;color:#333;font-size:15px;font-weight:400;line-height:1.5;text-align:center; }
.area9-cellulare input[type='tel'] { display:block;width:100%;max-width:400px;min-height:48px;padding:12px 15px;margin:0 auto;box-sizing:border-box;border:1px solid #ccc;border-radius:3px;background:#fff;color:#333;font-family:inherit;font-size:16px;text-align:center;outline:none; }
.area9-cellulare input[type='tel']:focus { border-color:#263746;box-shadow:0 0 0 2px rgba(38,55,70,.1); }
.area9-cellulare :is(button[type='submit'],input[type='submit']) { display:inline-block;min-width:150px;padding:12px 30px;border:0;border-radius:3px;background:#263746;color:#fff;font-family:Poppins,Arial,sans-serif;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:1px;cursor:pointer;transition:background-color .2s ease; }
.area9-cellulare :is(button[type='submit'],input[type='submit']):hover { background:#465d70; }
.area9-cellulare button[type='submit']:disabled { opacity:.6;cursor:wait; }
.area9-cellulare .area9-cellulare-message { margin:15px auto 0;font-size:14px;line-height:1.6;text-align:center; }
.area9-cellulare .area9-cellulare-message.success { color:#247a37; }
.area9-cellulare .area9-cellulare-message.error { color:#b42318; }
.area9-cellulare-hp { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.area9-cellulare-form { max-width:480px;margin:30px auto;text-align:center; }
.area9-cellulare-form input[type='tel'] { display:block;width:100%;margin:12px auto 20px;box-sizing:border-box; }

/* Desktop */
@media (min-width:769px) {
  body:has(.area9-hero) .site-header { position:absolute!important;top:45px!important;left:3%!important;right:3%!important;width:94%!important;background:rgba(190,209,220,.78)!important;box-shadow:none!important; }
  body.admin-bar:has(.area9-hero) .site-header { top:77px!important; }
  body:has(.area9-hero) .site-header .inside-header { max-width:1200px!important;min-height:75px!important;padding:10px 22px!important;box-sizing:border-box;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px; }
  body:has(.area9-hero) .site-header .site-logo img { display:block;width:auto!important;height:45px!important;max-height:45px!important;max-width:190px!important;object-fit:contain; }
  body:has(.area9-hero) :is(.main-navigation,.main-navigation .inside-navigation) { background:transparent!important; }
  body:has(.area9-hero) .main-navigation .main-nav ul li a { font-size:14px!important;font-weight:400!important;letter-spacing:1px;line-height:34px!important;padding:0 10px!important;color:#344957!important;background:transparent!important; }
  body:has(.area9-hero) .main-navigation .main-nav ul li:is(:hover,[class*='current-menu-'])>a { color:#fff!important; }
  body:has(.area9-hero) .area9-hero { min-height:650px!important; }
  body:has(.area9-hero) .area9-story { margin-bottom:0!important;padding-bottom:0!important; }
  body:has(.area9-hero) .area9-shops { padding-top:10px!important; }
  body:has(.area9-hero) .area9-shops h2.wp-block-heading { margin-bottom:70px!important; }
  body:has(.area9-hero) .area9-shop-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 30px;max-width:1000px;align-items:start; }
  body:has(.area9-hero) .area9-shop-photo { width:100%;height:auto!important; }
  body:has(.area9-hero) .area9-shop-photo>img { width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important; }
  body:has(.area9-hero) .entry-content :is(.area9-about,.area9-shops,.area9-trends,.area9-contacts,.area9-message) h2.wp-block-heading,
body:has(.area9-hero) .entry-content .area9-community h2 { font-size:65px!important;font-weight:600!important;letter-spacing:14px!important; }
}

/* Tablet e mobile */
@media (max-width:900px) { .area9-about-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:782px) { body.admin-bar:has(.area9-hero) .site-header { top:46px; } }
@media (max-width:768px) {
  body:has(.area9-hero) .site-header .inside-header { padding:10px 15px; }
  body:has(.area9-hero) .site-header .site-logo img { max-height:100px;max-width:175px; }
  body:has(.area9-hero) .main-navigation .menu-toggle { font-weight:700;color:#253746; }
  body:has(.area9-hero) .main-navigation.toggled .main-nav { background:#d3dfe7; }
  body:has(.area9-hero) .entry-content :is(.area9-about,.area9-shops,.area9-trends,.area9-contacts,.area9-message) h2.wp-block-heading,
body:has(.area9-hero) .entry-content .area9-community h2 { font-size:34px!important;letter-spacing:6px!important; }
  .area9-trends { padding-bottom:90px!important; }
  .area9-trends::before { height:175px; }
  .area9-trends .area9-social-links { gap:30px!important;padding-bottom:35px!important; }
  .area9-trends .area9-social-links svg { width:30px;height:30px; }
  .area9-trends .area9-social-links img { width:40px!important;height:40px!important; }
  .area9-cellulare { max-width:100%;padding:0 15px; }
  .area9-cellulare input[type='tel'] { max-width:100%; }
}
@media (max-width:767px) {
  .area9-hero { min-height:310px; }
  :is(.area9-about,.area9-shops,.area9-trends,.area9-contacts,.area9-message) { padding-top:45px;padding-bottom:45px; }
  .area9-about { padding-bottom:55px; }
  .area9-about-grid { grid-template-columns:1fr;gap:18px; }
  .area9-story-grid { gap:12px; }
  .area9-story-grid img:first-child { transform:translateY(-20px); }
  /* NEGOZI: una sola colonna su smartphone */
  .area9-shop-grid { grid-template-columns:minmax(0,1fr);gap:36px; }
  .area9-shop h3 { font-size:14px; }
  .area9-shop p { font-size:11px; }
  .area9-shop-overlay { opacity:1;background:linear-gradient(transparent 35%,rgba(14,25,35,.85));justify-content:flex-end; }
  .area9-shop-overlay h3 { font-size:16px; }
  .area9-shop-overlay p { font-size:11px; }
  .area9-contact-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px; }
  .area9-contact-grid>.area9-contact { grid-column:auto; }
  .area9-custom-footer-main { grid-template-columns:1fr;gap:25px;padding:45px 24px;text-align:center; }
  .area9-custom-footer-logo { margin:auto;max-width:260px; }
}
@media (prefers-reduced-motion:reduce) { .area9-shop-photo>img,.area9-shop-overlay,.area9-community-card,.area9-trends .area9-social-links a { transition:none; } }

/* SPAZIO SOTTO IL TITOLO CONTATTI */
body:has(.area9-hero) .area9-contacts h2.wp-block-heading {
    margin-bottom: 80px !important;
}

/* ========================================
   AREA9 - STILE FOOTER
   ======================================== */

/* Sfondo bianco come le sezioni precedenti */
.area9-custom-footer,
.area9-custom-footer-main,
.area9-custom-footer-bottom {
    background-color: #ffffff !important;
}

/* Carattere e colore come info@area9.it */
.area9-custom-footer,
.area9-custom-footer p,
.area9-custom-footer a,
.area9-custom-footer strong,
.area9-custom-footer-address {
    font-family: "Pathway Gothic One", sans-serif !important;
    color: #273744 !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
}

/* AREA9 - Testi a destra del logo nel footer */
.area9-custom-footer-address,
.area9-custom-footer-address p,
.area9-custom-footer-address strong {
    font-size: 22px !important;
	
}
.area9-custom-footer-address strong {
	font-weight: 600 !important;
}

/* AREA9 - Spaziatura lettere sezione PRIVACY */
.area9-custom-footer-bottom,
.area9-custom-footer-bottom p,
.area9-custom-footer-bottom a {
    letter-spacing: 0.5px !important;
}

/* AREA9 - CONTATTI: una colonna su smartphone */
@media (max-width: 767px) {

    .area9-contact-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 45px !important;
        width: 100% !important;
    }

    .area9-contact-grid > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-column: auto !important;
        text-align: center !important;
    }

    .area9-contact-grid p,
    .area9-contact-grid h3,
    .area9-contact-grid a {
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

/* AREA9 - Blocca solo lo scorrimento laterale su desktop */
@media (min-width: 769px) {
    html,
    body {
        overflow-x: clip;
    }
}

/* AREA9 — Header non fisso su smartphone e tablet.
   Il menu scorre via insieme alla pagina e non copre i titoli. */
@media (max-width: 768px) {
  body:has(.area9-hero) .site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
  }

  body.admin-bar:has(.area9-hero) .site-header {
    top: auto !important;
  }

  /* Nessun offset per un header che non resta in sovrimpressione. */
  html { scroll-padding-top: 0; }
  body:has(.area9-hero) .entry-content [id] {
    scroll-margin-top: 12px;
  }
}

/* AREA9 — Torna su: smartphone, tablet e desktop dopo lo scroll */
.area9-back-to-top {
  position:fixed;
  right:25px;
  bottom:calc(30px + env(safe-area-inset-bottom, 0px));
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#273744;
  color:#fff;
  font-size:25px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(0,0,0,.2);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
}
.area9-back-to-top.is-visible {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.area9-back-to-top:focus-visible {
  outline:3px solid #93acbd;
  outline-offset:3px;
}
@media (max-width:768px) {
  .area9-back-to-top {
    right:20px;
    bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion:reduce) {
  .area9-back-to-top { transition:none; }
}


/* AREA9 – Freccia Back to Top uniforme */

.area9-back-to-top {
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center;
}
